Paste this into Claude Code on your machine. It is self-contained. (Or skip it and run the included token-audit.mjs directly: node token-audit.mjs 2026-08-18.)
Audit my Claude Code token usage and price it at Anthropic API list rates.
Data: every *.jsonl under ~/.claude/projects/ (recursive). Each line is JSON.
Only count lines where type == "assistant" and message.usage exists.
Dedup by message.id + ":" + requestId (skip repeats).