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

  1. Run Claude Code as usual.
  2. The trim hook shortens tool output and spools long results to disk.
  3. The summarise hook compacts earlier conversation (the “compaction window”). This step is only available in the full install.
  4. 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

System requirements

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