Open source · Token reducer · Public beta
TokenPilot
Cut the tokens your AI coding CLI spends. Same model. Same tools.
- 76.50%fewer tokens, best resultGrok 4.7 Build Fast
- 4 of 4Grok Build modelsat or above 42% fewer tokens
- 6 of 9OpenAI Codex modelsat or above 42% fewer tokens
Oct 6, 2026 · one paired run per model on the same task, every check passing · total input plus output, cached input included · not a universal estimate
npm install -g @cesaremcasa/tokenpilot@0.5.6GitHub Benchmark
Measured on a real task, checks still passing.


| Model | Without | With | Cut |
|---|---|---|---|
| gpt-daybreak-blue-latest | 273,252 | 103,182 | 62.24% |
| gpt-6-sol | 329,492 | 126,459 | 61.62% |
| gpt-5.5 | 279,125 | 127,474 | 54.33% |
| gpt-5.6-luna | 228,427 | 104,417 | 54.29% |
| gpt-5.6-sol | 200,647 | 103,987 | 48.17% |
| gpt-6-luna | 338,034 | 177,040 | 47.63% |
| gpt-6.1-sol | 139,360 | 102,651 | 26.34% |
| gpt-5.6-terra | 211,652 | 160,555 | 24.14% |
| gpt-6-astra | 170,126 | 136,471 | 19.78% |
| Model | Without | With | Cut |
|---|---|---|---|
| grok-4.7-build-fast | 831,211 | 195,323 | 76.50% |
| grok-4.7 | 643,271 | 222,016 | 65.49% |
| grok-4.6 | 298,629 | 125,765 | 57.89% |
| grok-4.5 | 512,361 | 219,812 | 57.10% |
One pair per model, not a statistical guarantee; everyday workloads may differ. Claude, Kimi and Grok Bot are unproven. Evidence files.
How it runs
A local launcher in front of the CLI you already use.


Lower reasoning
Runs the session at low reasoning effort, and low verbosity where offered.
Less replay
Search first, read only what matters, avoid rereading unchanged files.
Batched checks
Related edits and every required check in one step, then stop.
Same model, same tools
Native tools, MCP and memory stay. Unsupported? Your CLI runs unchanged.
Usage
Install once. Keep typing the same commands.
Supports Claude Code, Codex and Grok Build on macOS and Linux. Kimi runs through unchanged.
# install the launchers, then check setup
$ tokenpilot install
$ tokenpilot doctor
# use your CLI exactly as before
$ codex --model gpt-5.5
# see this session's numbers
$ tokenpilot report --provider codex
# skip TokenPilot any time
$ TOKENPILOT_BYPASS=1 codex
Why we built it
Stop paying for tokens that do nothing.
Agents reread files, replay context and think longer than the task needs, and every one of those tokens is billed. TokenPilot is how Mycellium closes that leak in its own work. Now it is open source, so you can close it in yours.
Private by design
No proxy. No prompts, responses, code or credentials stored. Local, content-free counters only. tokenpilot mode off turns it off.
Limits
Public beta. macOS and Linux only. Session cache figures are not savings, and token usage is not a provider bill. MIT licensed; not affiliated with Anthropic, OpenAI, xAI or Moonshot AI.
Open source