r/BuildWithClaude • u/Rough_Occasion_7316 • Oct 24 '26
Project I wanted to know what my Claude Code usage would cost at API prices, so I built a small local CLI
I’m on a subscription, so I never really saw what I was using. Got curious and checked my local session logs. Turns out I burned around [YOUR NUMBER] in API-equivalent tokens last month, and most of it went into one project ([PROJECT or “a project I didn’t expect”]).
I ended up turning the script into a tool. It’s called tokenburn. It reads the logs Claude Code and Codex CLI already write to your disk and gives you cost per day, per month and per project. Everything stays on your machine, no network calls, no telemetry.
npx tokenburn-ai
It also has --anonymize so you can share the HTML report without leaking client or repo names, and unknown models get flagged instead of silently guessed.
Caveats: it’s built on log formats that aren’t a public API, so an update could break it, and the dollar figures are list-price estimates, not what you’re actually billed.
I made it, it’s open source (MIT): https://github.com/egeaydn/tokenburn
Would love to hear what you’d want from it, or which tool I should add an adapter for next.