Claude Code Token Trimmer
Yes, this is the free, open‑source toolkit that trims Claude Code output and compacts conversation history. Install it as a plugin or clone the repo, then use the dashboard to manage tokens locally.
How it works for a single Claude Code session
- Run Claude Code with the tokentrim hook enabled.
- The hook trims each tool’s output and writes long results to disk.
- When the conversation reaches the compaction window, tokentrim summarizes earlier messages (full install only).
- The replay command shows your own token‑saving numbers.
What you get and the cost
- Free version: all hooks, three strength profiles, replay command, local dashboard, daily budget guard, cold‑cache alert.
- Pro lifetime: $49 (first 500 buyers) – adds a hosted dashboard usable on any device, Monday digest, weekly budget alert at 80%, Slack totals, and support for up to three machines.
- Pro monthly: $9 per month – same Pro features on a subscription basis.
FAQ
Does anything leave my machine? No. All processing stays on your computer unless you choose the hosted Pro dashboard.
What Python version do I need? Python 3.9 or newer. The toolkit is tested on macOS and Linux.
How much can I expect to save? In the author’s 135 real conversations, summarising the conversation cut history re‑read by 75%, extended limits by about 4.0×, and reduced billed cost by roughly 55‑70%. Trimming tool output alone saved 6.9%.
Get started with Claude Code Token Trimmer
Updated 2026-10-28