Open on desktop
This ledger is designed for a widescreen view. Please open the link on a desktop or laptop browser.
← Back to homePaste ccusage output
Run in terminal, then paste the full output below:
Daily spend · USD
What the ledger shows
Everything on the sheet is read from your own ccusage rows, and it tells a top-two story. Feed it all three supported sources — Claude Code under Anthropic, Codex CLI under OpenAI, and OpenCode as its own agent — and whichever two spent more take the stage: one card apiece carrying tokens, cost, share of usage, active days, and the model names found in your data, while the third source stays out of the cards, the chart, and every total on the page. Rankings are decided by API-equivalent spend, with tokens breaking ties. The stacked bar chart plots each day for the surviving pair, switchable between tokens and dollars, and the whole sheet renders in either of two print-inspired modes, Paper and Ink.
Feeding it your numbers
Pick a date range in the paste dialog and it assembles the exact npx ccusage commands covering all three sources — claude daily, codex daily, and opencode daily — chained into one line with a copy button beside it. Run that in a terminal and paste back everything it printed. Each report announces itself with a banner (“Claude Code Token Usage Report”, “Codex…”, “OpenCode…”), which is how the parser tells the tables apart — necessary because Claude and OpenCode share identical column layouts. Pastes without banners still parse via the older column-shape fallback. Until your first paste, the sheet displays built-in sample numbers so you can judge the layout before committing your own.
Nothing leaves the tab
Parsing runs in the browser, the parsed result sits in localStorage, and no server receives any of it. All three sources are kept so tomorrow's refresh can reshuffle the podium, but only the top two are ever displayed or shared. Once the numbers turn 24 hours old, the refresh button turns urgent and says exactly how stale they are — a shared poster should not quietly show last week. One caveat stated plainly: the dollar figures are API-equivalent prices computed by the CLI, not anyone's actual bill.
Built to be shared
Share draws the sheet to a PNG at double scale, puts the image on your clipboard, and opens an X compose window pre-filled with your token total, crediting only the two providers shown on the sheet; if the browser blocks clipboard access, the PNG downloads instead and you attach it yourself. The capture library ships from this site and is integrity-pinned, so a tampered copy refuses to run. The layout is built for widescreen — phones get a card pointing to a desktop. Free, no account. The ccusage CLI itself is a third-party tool you run locally, and this page never connects to a provider account, so there is nothing to authorize and nothing to revoke.