CodeBurn

Claude Code Cost Tracker

CodeBurn is a free, local tool that tracks your Claude Code token usage and cost. Run npx codeburn and it reads the Claude Code session files already on your machine, then breaks your spend down by model, project, and task. No signup, no API keys, nothing uploaded.

What you see

Total Claude Code cost for any day, week, or month; a per-model split (Opus vs Sonnet vs Haiku); and a per-task view so you can tell how much went to writing code versus delegation, exploration, and debugging. Cache reads and writes are priced correctly, so the numbers match how Anthropic actually bills.

On the Claude Max plan?

CodeBurn shows the API-equivalent value of your usage, what the same tokens would cost at API rates, so you can see whether your subscription is paying off. See subscription value for details.

Beyond Claude Code

If you also use Cursor, Codex, Copilot, or Gemini, CodeBurn tracks those in the same place. See the full list of supported tools, or compare CodeBurn vs ccusage.

Start tracking

One command, fully local. Your first Claude Code cost report takes about a minute.