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/projectsWant this count kept right every day, across every AI company? NeverPayTwice keeps it 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, 14-day money-back promise.
At Anthropic's API rates. When caching pays off, and when it costs more →
| 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. Is a plan or the API cheaper for you?
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 the made-up sample log in our free scripts repo, a plain sum says 5.3M tokens; the real figure is 1.8M.
Read the full explanation, with a script you can run yourself →