Drop in your Claude Code logs and see how many tokens you really used. Raw logs repeat each response several times, so a plain total can come out nearly double. This page counts each response once.
projects folder here.jsonl files inside it~/.claude/projects%USERPROFILE%\.claude\projects~/.claude/projects| Model | Tokens | Responses | At list prices |
|---|
Tokens include cache reads and writes. Dollar figures use Anthropic's published API rates; on a subscription plan they show what the same usage would cost at API rates, not what you were billed.
Want this every day, across every AI company? NeverPayTwice keeps this count up to date, flags every time you were charged again for an answer you already bought, and keeps a receipt for each purchase. Mac, Windows or Linux. $9 one-time.
Claude Code keeps a log of every session in ~/.claude/projects, one JSON line per event. Each AI
response records its token usage. Adding up every line gives the wrong answer, for three reasons:
The fix is to keep one record per response (by its message ID and request ID) and use its final output count. That is what this page and NeverPayTwice do. On our own test machine, a plain sum of 30 days of logs said 100M tokens; the real figure was 50.5M.
Read the full explanation, with a script you can run yourself →