Cost Tracking
Review priced calls with the usage and model data available.
Availability
Partially implemented in stable. Read the limits below before relying on this workflow.
Reviewed against stable v0.5.1. Rust candidate additions are labeled separately. Release status.
The pain this solves
- Developers want a cost view alongside captured usage.
- A price estimate can be incomplete when a model price or usage record is missing.
What ships with it
- The proxy can estimate usage for some billable calls and calculate cost when it has a matching model price.
- Analytics aggregates available call costs by provider and model.
- Bundled prices may not match current provider rates; missing usage or model pricing can leave a call unpriced.
Questions this answers
- How much does Claude Code cost per session?
- LLM API cost monitor dashboard for terminal
- Track AI coding agent spending in real time
- How to see dollar cost of AI agent API calls?
- Why is my AI coding bill so high?
How it works
The API proxy records provider, model, token usage, and a cost value when it can calculate one for a supported billable HTTP request. The analytics store aggregates recorded call costs.
Cost calculation depends on usable token usage, either extracted from provider metadata or estimated on some billable endpoints, and a matching model entry in the bundled pricing table. If usage cannot be obtained or the model has no price entry, the call may have no cost; a cost based on estimated tokens is itself an estimate.
The dashboard can group available costs by provider and model. The stable feature does not claim that prices always match current provider rates, support every model, or let users define custom rates.
Why it matters
A cost column can help compare captured calls and spot which models account for more of the recorded spend. It is only as complete and current as the usage and price data available to the stable app.
Frequently asked questions
Does Chau7 know the exact current price for every model?
No. It uses a bundled model pricing table, so coverage and freshness can vary.
Why might a captured call have no cost?
The proxy can estimate usage for some billable HTTP endpoints when provider metadata is absent, but a call can still be unpriced if no usable usage or matching model price is available.
Are cost totals a provider invoice?
No. Costs are calculated from available usage and bundled prices; when input usage was estimated, the resulting cost is an estimate, and totals may be incomplete.