A Free Claude Code Cost Tracker
Manual spreadsheets fall behind in hours. A built-in tracker only covers the current window. Here's a free, local option that gives you full history with no account required.
Quick answer
npx whoburnedmore — it reads the usage logs Claude Code already writes to your machine, totals tokens and estimated cost by day and model, and optionally puts you on a shareable public dashboard. No account, no upload of your code, and no subscription required. 📊“Tracking Claude Code cost” sounds like it should be trivial — there's a /usage command right there in the CLI. The problem is that /usage only shows your current session window; it doesn't accumulate history across sessions, doesn't show you daily or weekly trends, and gives you no way to ask “how much did I spend in the last 30 days?” — which is the question that actually matters for budgeting.
What “tracking” actually means
A useful Claude Code cost tracker needs to answer four questions: How many tokens did I burn over a period (day, week, month)? Which model did I use most? Is my subscription saving me money compared to API rates? And what does my trend look like — am I burning more or less than last month?
The raw data to answer all four questions is already on your machine. Claude Code writes a detailed JSON usage log for every session, stored under ~/.claude/usage/. The only thing missing is a reader that aggregates across files and converts tokens to dollars.
Claude Code logs
~/.claude/usage/
whoburnedmore
parses + aggregates
Full history
days, models, cost
Dashboard
optional, shareable
Setting up your tracker in 30 seconds
There's nothing to configure. The tracker reads whatever logs exist and returns a breakdown immediately. You don't need to “start” tracking — if you've used Claude Code at all, the data is already there waiting.
$ npx whoburnedmore↳ found 47 usage sessions across 31 days CLAUDE CODE COST TRACKER (last 30 days) week sessions tokens est. cost ───────────────────────────────────────────────── Jun 9–15 14 sess. 122.4M $26.30 Jun 2–8 11 sess. 88.1M $19.00 May 26–Jun 1 9 sess. 61.2M $13.20 May 19–25 13 sess. 94.7M $20.40 ───────────────────────────────────────────────── 30-day total 47 sess. 366.4M $78.90 ↳ Claude Max ($100/mo): saving ~$21 this month 🔥
- 1
Run the tracker
npx whoburnedmorein any terminal. It reads your local logs without network access. - 2
Check the weekly trend
Look at whether cost is increasing week-over-week. A rising trend usually means longer sessions with bigger context — not more sessions. - 3
See the model split
If your usage is split between Sonnet and Haiku, the breakdown shows cost per model. Heavy Sonnet usage on simple tasks is usually the biggest savings opportunity. - 4
Share your leaderboard entry (optional)
Run without--localto upload your token totals (not your code) and appear on the whoburnedmore public leaderboard. You can share the link or keep your dashboard private.
How it compares to tracking manually
Developers who track cost manually usually do one of three things: copy numbers from/usageinto a spreadsheet after each session, check the Anthropic Console billing page periodically, or eyeball their credit card statement. All three approaches have the same flaw: they're reactive rather than proactive, and none of them give you session-level detail alongside a monthly total.
| Tracking method | History | Model split | Daily breakdown | Effort |
|---|---|---|---|---|
| Manual spreadsheet | if maintained | — | if you log it | High — per session |
| /usage command | — | — | — | Zero — already built in |
| Anthropic Console billing | — | daily graph | Zero — web dashboard | |
| whoburnedmore | full session log | Zero — one command |
Flat-plan users: why the Console doesn't help you
If you're on Claude Pro or Max, the Anthropic Console billing page shows one number: your flat subscription charge. It doesn't show you how many tokens you burned or whether you're getting value for your subscription fee. Whoburnedmore fills that gap by computing the API-equivalent cost of your actual usage and comparing it to what you pay.
Negative value means you might not need Max
If your API-equivalent usage is consistently below $40/month, the $100 Max plan may be more than you need. Downgrade to Pro or even API pay-as-you-go and save the difference. You can only make that call if you're tracking.Privacy: what stays local and what doesn't
Whoburnedmore is designed for developers who are cautious about what they send upstream. The default behavior sends only aggregate token counts and timestamps to the leaderboard — your code, prompts, and file names never leave your machine. If even that is too much,--local mode opens a browser dashboard directly from your local files without any network request.
What each mode does
$ npx whoburnedmore↳ uploads aggregate token totals, joins leaderboard $ npx whoburnedmore --local↳ opens browser dashboard, nothing sent upstream $ npx whoburnedmore --dry-run↳ prints what would be submitted, sends nothing
code or prompts uploaded
session history from day 1
no account or subscription
The shareable dashboard
When you run whoburnedmore without --local, you get a shareable URL for your personal dashboard — a public page showing your token burn and leaderboard rank. Some developers share this with their team to make AI usage visible; others share it socially to compare with other developers. The data shown is always aggregate (token counts and dates), never session content.
Full history
See every session from when you first started using Claude Code, not just the last billing period. Useful for seeing how your usage has grown.
Shareable URL
Your dashboard gets a stable URL you can bookmark, share with your team, or embed in a status page. Shows tokens, cost, and your rank on the leaderboard.
Private option
Run with --local to get the same dashboard in your browser with no data leaving your machine and no leaderboard entry. Same data, fully offline.
Zero friction
No account to create, no API key to manage, no dashboard to configure. One npx command gives you the full view immediately.
Tracking Claude Code as one tool among many
If you also use Codex CLI, Gemini CLI, Cursor, or other agents, whoburnedmore shows all of them in the same view. You're not just tracking Claude Code — you're tracking your entire AI coding spend. See also how whoburnedmore compares to ccusageif you're already using the underlying ccusage library for Claude Code-only tracking.The best cost tracker is one you actually use. Whoburnedmore requires no setup and takes under 10 seconds to run, which means it's low enough friction to become a genuine weekly habit. Run npx whoburnedmore right now and see where you stand — the logs have been accumulating since your first Claude Code session. 🔥
Related guides
How Much Does Claude Code Cost Per Month?
Stop guessing from averages — measure your own monthly Claude Code cost from real usage.
How to Check Claude Code Token Usage
See your Claude Code tokens by day, model, and project — and how the built-in /usage compares.
A ccusage Alternative With a Leaderboard
Built on the same data as ccusage — with a cross-tool dashboard and a leaderboard on top.