I kept burning through Claude Code tokens with no idea where they were going. No breakdown. No visibility. Just usage disappearing.
So I built Token Bleed.
Open source. Runs locally. Zero setup. One command and you get:
- Per-project, per-session, per-prompt cost breakdown
- Cache hit rate tracking (this is the biggest lever most builders are ignoring)
- Model distribution -- see if you're running Opus on work that doesn't need it
- Session compare -- diff two sessions side by side to find the cheaper approach
- Log retention fix -- Claude Code deletes your logs after 30 days by default, this stops that
The code is public on GitHub (MIT) and runs with a simple npx command. Watch the build, grab the command and run it against your own logs.
or, just run it from the terminal - npx token-bleed