I'm a recent convent to AgentsView, Wes McKinney's (previously of Pandas fame) Python toolkit for analyzing transcripts of coding agents from your own computer.
AgentsView can calculate your token spending based on those transcripts, across multiple different coding agents (Claude Code, Codex, Pi and more.)
You can run it via uvx like this to get as ASCII table of spending numbers in your terminal:
uvx agentsview usage daily
Example output:
DATE INPUT OUTPUT CACHE_CR CACHE_RD COST MODELS
---- ----- ------ -------- -------- ---- ------
...
2026-06-04 5248968 387578 149428 78087993 $77.72 gpt-5.5, claude-opus-4-8
2026-06-05 963595 115773 0 8383360 $8.62 gpt-5.5, gpt-5.4-mini, deepseek/deepseek-v4-flash, meta-llama/llama-3.2-3b-instruct:free, nvidia/nemotron-nano-9b-v2:free
2026-06-06 324888 36869 0 3231872 $4.35 gpt-5.5
2026-06-07 669027 46379 0 7486464 $8.48 gpt-5.5
2026-06-08 3346262 253637 0 49214208 $48.95 gpt-5.5
2026-06-09 787043 427018 1098673 78305086 $97.79 claude-fable-5, gpt-5.5, claude-haiku-4-5-20251001
---- ----- ------ -------- -------- ---- ------
TOTAL 73610282 7260576 4399393 1717538611 $1472.87
Anthropic's latest model Claude Fable 5 came out today. The pricing data AgentsView uses doesn't yet include that model.
So I had Claude Fable 5 reverse engineer AgentsView with the following prompt against claude.ai:
Clone https://github.com/kenn-io/agentsview and tell me how I can set a price for a model that it does not know the price of yet
It turns out you can add custom pricing information to your ~/.agentsview/config.toml file. Here's what I added:
[custom_model_pricing."claude-fable-5"]
input = 10.0
output = 50.0
cache_creation = 12.50
cache_read = 1I think those numbers are right, I got them from this pricing page. Fable is 2x the price of Opus for input and output.
With the config file edited I can run Fable again to get pricing estimates. I used the serve command to get a web application on port 8080:
I've used the equivalent of $82.92 in tokens since getting access to Fable 5 about four and a half hours ago. This is all included in my $100/month Claude Max subscription though, which based on prior experience will likely give me around 10x the token usage compared to if I was paying list price.
Created 2026-06-09T14:35:31-07:00 · Edit