Fifty-five billion tokens
19 Aug 26
Every machine I work on ships its agent session logs to my home server: Claude
Code since July 2025, and before that Zed’s agent panel, which recorded the same
usage numbers.1 Each assistant message in there carries a usage block
recording what it cost to produce. Fifteen months of that comes to 23,851
transcript files and 532,027 API responses.2 Fifty-five billion
tokens—that’s a big number.
But mostly I just wanted to look at it.
The gap in January is a holiday. Everything after February is a change in how I work.
Fourteen models in fifteen months, each taking over from the last.
Sixteen projects, three-quarters of the total.3
About 86% of the total sits in the last five months.
The 6pm cliff is dinner and bedtime. The overnight floor never quite reaches zero, which is the scheduled agents working while I’m asleep.4
Tokens aren’t fungible, since a cached input token costs a fiftieth of what an output token does. So here is each model twice, by volume and by what it would have cost at list API prices:
Sonnet 5 has the largest token count by a distance and sits sixth on cost. Opus 4.1 and Opus 4 run the other way, at 7% of the calls and 11% of the money.
Ninety-six per cent of those 55 billion tokens are cache reads: the same conversation prefix, read back once per turn of the agent loop. Output, the part that actually writes the code, is 0.55%.
The whole lot comes to about US$50,000 at list prices, over half of it cache reads.5 Uncached, the same work would have run to roughly $289,000.
The charts are all Vega-Lite, rendered to static SVG when I wrote this. The specs, the data behind them, and the scripts that walk the transcripts are all there.
Footnotes#
-
Zed kept per-request token counts, models and project paths for its agent panel, so those months needed no more than a format conversion to sit alongside the Claude Code transcripts. The year before that — Zed’s older assistant panel, back to April 2024 — kept the conversation text and nothing else: no usage, no model. It is in the log archive with every figure marked as an estimate, and it stays off these charts, which count only numbers something actually reported. ↩
-
Deduplicated on the assistant message id, which matters more than it sounds: resuming a session from a different working directory files the same transcript under two project directories, and 455 files are duplicated that way. The count also includes 10,253 subagent transcripts, about 21% of the responses and 7% of the cost. I keep those out of my session counts, since one session fanning out to twelve agents is still one session. ↩
-
The COMP4020 work still lands in three of those entries, since the studio repo and the course website are separate checkouts from the workspace directory that holds everything else. Added together they would sit second on the list, above llms-unplugged. Below the sixteen is a long tail of worktrees and one-off directories, none of it individually worth a row. ↩
-
Which is also why that floor is so flat. A cron job has no opinion about what time it is. ↩
-
Current list prices applied retrospectively, so it’s an indicative figure and not a bill I paid: this all ran on a Max 20x subscription at a small fraction of the price. Transcripts written before Claude Code recorded the cache TTL split are counted at the cheaper five-minute write rate, which means the true number is a little above $50k, if anything. ↩
Cite this post
@online{swift2026fiftyFiveBillionTokens,
author = {Ben Swift},
title = {Fifty-five billion tokens},
url = {https://benswift.me/blog/2026/08/19/fifty-five-billion-tokens/},
year = {2026},
month = {08},
note = {AT-URI: at://did:plc:tevykrhi4kibtsipzci76d76/site.standard.document/2026-08-19-fifty-five-billion-tokens},
}