tokentrim 55‑70% cost savings

tokentrim can reduce your Claude Code costs by roughly 55‑70 %. Install the free toolkit, enable the compaction window, and watch your token usage drop.

How it works for a single Claude Code project

  1. Clone the repo or add the plugin to your environment.
  2. Enable the “compaction window” hook (only in the full install).
  3. Run your code as usual; tokentrim trims tool output, reads files in ranges, and spools long output to disk.
  4. Use the replay command to see your own savings numbers.

What you get and the price

All features require Python 3.9+ and run on macOS or Linux.

FAQ

How much history does tokentrim actually skip? On the author’s 135 real conversations, the compaction window reduced history re‑read by 75 % and extended token limits by about 4.0 ×.

Do I need to send any data to a server? No. By default nothing leaves your machine. The hosted dashboard in Pro is optional.

Can I see the savings for my own runs? Yes. The replay command displays your personal cost‑reduction numbers after each session.

Get started with tokentrim

Updated 2026-11-02