Claude Code Budgeting Platform
tokentrim is a free, open‑source toolkit that trims Claude Code output and tracks your token budget. Install it as a plugin or clone the repo, then use the local dashboard and hooks to keep limits high and costs low.
How it works for a single Claude Code session
- Run Claude Code as usual.
- The trim hook shortens tool output and spools long results to disk.
- The summarise hook compacts earlier conversation (the “compaction window”). This step is only available in the full install.
- Open the local dashboard to see token usage, replay the session, and watch the daily‑budget guard warn you before you hit limits.
What you get
- Free tier – all hooks, three strength profiles, replay command, local dashboard, daily‑budget guard, cold‑cache alert. Nothing leaves your machine.
- Pro lifetime – $49 one‑time for the first 500 buyers. Adds a hosted dashboard you can reach from any device, a Monday digest, weekly budget alerts at 80 % usage, Slack totals, and support for up to three machines.
- Pro monthly – $9 per month, same Pro features on a subscription basis.
System requirements
- Python 3.9 or newer.
- Tested on macOS and Linux.
FAQ
How much can I expect to save? On the author’s 135 real conversations, summarising earlier conversation cut history re‑read by 75 % and extended limits by about 4.0 ×. Overall billed cost fell roughly 55‑70 %.
Is any data sent to external servers? By default nothing leaves your machine. Pro adds an optional hosted dashboard, but the core trimming and budgeting stay local.
Where do I get help? Email support@boltak.com. Payments are processed by Polar.
How do I see my own numbers? Run the replay command; it shows your token usage and savings.
Ready to start trimming and budgeting Claude Code tokens? Install tokentrim
Updated 2026-11-04