tokentrim Python 3.9 plugin

tokentrim is a free, open‑source local toolkit that trims Claude Code output and saves tokens. Install it with git clone or as a plugin in Claude Code on macOS or Linux with Python 3.9+.

How to use it in a single session

  1. Clone the repo or add the plugin to your Claude Code setup.
  2. Run your prompt normally.
  3. tokentrim trims tool output and writes long results to disk.
  4. When earlier context is needed, it summarizes the conversation (the compaction window) and feeds the short version back, cutting the history re‑read by about 75 %.
  5. Use the replay command to view your own token‑saving numbers.

What you get

All features run locally unless you enable the hosted dashboard.

FAQ

Does the plugin need an internet connection? No. All processing stays on your machine. Only the optional hosted dashboard sends data out.

Can I see my savings? Yes. The replay command shows your token‑reduction numbers, and the dashboard visualizes daily usage.

What if I need more than three machines? Pro supports up to three machines. For larger setups, request a paid team audit at support@boltak.com.

Next step

Install the tokentrim Python 3.9 plugin now

Updated 2026-11-03