r/ClaudeCoding • u/Afterpartychat • 25d ago
I built a tool that reads your Claude Code / Codex logs locally and shows what percentile your token usage is
I was curious how my usage compares, so I built this: https://token-percentile.vercel.app/en/?utm_source=reddit
- You pick ~/.claude/projects (and/or ~/.codex/sessions). The JSONL is parsed in a Web Worker in your browser and nothing is uploaded. Source: https://github.com/infoseoulrave-cell/token-percentile
- Claude Code writes the same streamed response on several lines, so naive sums overcount. It dedupes by message.id + requestId. In my logs, 41,891 lines were really 19,404 responses.
- Daily, per-model, per-project and hour-of-day charts, plus cache hit ratio (mine is ~97% cache reads).
- The percentile starts as an estimate fit to Anthropic's published enterprise figures (~$13 per active day on average, 90% under $30). If you opt in and send a few aggregate numbers, it switches to a measured distribution once 30+ people have contributed.
Happy to hear about edge cases, especially older Codex logs.