Skip to content

Add provider cost dashboard - #226

Merged
Siddhant-K-code merged 1 commit into
mainfrom
feat/provider-cost-208
Aug 16, 2026
Merged

Siddhant-K-code merged 1 commit into
mainfrom
feat/provider-cost-208

Conversation

@Siddhant-K-code

Copy link
Copy Markdown
Owner

Summary

  • add agent-strace cost --breakdown provider across stored Anthropic, OpenAI, AWS Bedrock, and Gemini sessions
  • infer providers from recorded model IDs and calculate spend from actual input/output token counters
  • bundle an explicitly dated offline pricing snapshot with official maintainer sources and no default network calls
  • support ISO/relative --since filters and exact raw CSV export columns
  • make --live-pricing fail explicitly when compatible authoritative pricing APIs are unavailable instead of scraping or inventing rates
  • document pricing limitations/update steps and bump agent-strace from 0.84.0 to 0.85.0

Closes #208

Verification

  • PYTHONPATH=src python -m unittest tests.test_cost tests.test_provider_cost tests.test_explain tests.test_timeline tests.test_telemetry -q — 139 tests passed
  • Ona test task — 1,682 Python tests and 3 VS Code extension tests passed
  • python -m compileall -q src/agent_trace && git diff --check
  • wheel build — agent_strace-0.85.0-py3-none-any.whl

Co-authored-by: Codex <noreply@openai.com>
@Siddhant-K-code Siddhant-K-code added the enhancement New feature or request label Aug 16, 2026
@Siddhant-K-code

Copy link
Copy Markdown
Owner Author

PR review completed: checked legacy pricing compatibility, provider inference precedence (including Bedrock profiles), token de-duplication, date filtering, unknown-model behavior, CSV stability, offline guarantees, pricing-source documentation, and aggregate session counts. One local review finding (total rows vs unique sessions) was fixed before opening the PR. No blocking findings remain; merge is gated on all five CI jobs.

@Siddhant-K-code
Siddhant-K-code merged commit ce6c969 into main Aug 16, 2026
5 checks passed
@Siddhant-K-code
Siddhant-K-code deleted the feat/provider-cost-208 branch August 16, 2026 16:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat: provider cost dashboard — unified spend across Anthropic, OpenAI, Bedrock, Gemini (no proxy)

1 participant