#25 · Primary category: AI Usage & Cost Monitoring

tokentab

ai claude claude-code cursor python token-optimization token-usage

A CLI that reads Claude Code, Codex, and Gemini CLI session logs and works out how much they cost, by model, project, and day.

Project last updated:08/27/26

GitHub Stars

537

Forks

100

Contributors

1

License

MIT

Why we included this project

Claude Code, Codex, and Gemini CLI each keep their own session logs on your machine, and tokentab reads those files to total token usage and cost by model, project, day, and the kind of work a session was doing. It runs fully offline, no account or API key, and it pulls cached tokens back out before pricing so the same context doesn't get billed twice. Output can be a terminal table, machine-readable JSON, or a localhost-only web dashboard with charts, and adding another provider is just one module that returns a shared record shape. If your AI coding spend only surfaces as a monthly invoice you can't trace back to a project, this is a quick, private way to see which codebase or model is actually driving the bill.

Articles for this project

No articles for this project yet.

To suggest a topic or contribute an article, contact us.

Related projects in this category