tokentrim python 3.9 install

You can install tokentrim on your local machine with Python 3.9 or newer. It trims Claude Code output, reads file ranges, and spools long responses to disk. This helps you save on your Claude Code usage by reducing the amount of data that needs to be processed.

How to install and use tokentrim for Claude Code

  1. Clone the repo

``bash git clone /tokentrim/tokentrim.git cd tokentrim ``

  1. Install dependencies – the toolkit needs Python 3.9+.

``bash pip install -r requirements.txt ``

  1. Activate the plugin – add the hook to your Claude Code configuration.
  2. Run a session – the dashboard appears locally.
  3. Use the replay command to see your own token savings and limits.

What you get and how it costs

Pro adds a hosted dashboard on any device, Monday digest, weekly budget with an 80 % alert, Slack totals, and support for up to 3 machines.

Nothing leaves your machine by default unless you enable the hosted dashboard.

FAQ

How much can I save with tokentrim? On 135 real conversations, the toolkit cut history re-read by 75 % and extended limits 4.0x. Billed cost falls roughly 55-70 %.

Does it work on macOS? Yes. It is tested on macOS and Linux with Python 3.9 or newer.

Can I use it with multiple machines? The Pro plan supports up to 3 machines.

Next, visit the tokentrim homepage to learn more about the toolkit and start saving on your Claude Code usage.

Updated 2026-11-04