TokenEconomizer
TokenEconomizer is an open-source Microsoft plugin that helps coding agents like Claude Code and Codex spend fewer tokens by learning from past repository sessions.
No visits from OpenBeat in the last 30 days yet. Every click on “Visit” is counted here.
Pricing and API checked by an OpenBeat editor on Nov 10, 2026 · facts from the maker’s own site ·
Tool insights
TokenEconomizer watches how your coding agent behaves in a repository and uses that history to trim wasted work. It learns repository facts, drops unused tools and redirects stuck turns, all with the aim of lowering token cost.
Coding agents often repeat the same mistakes in a repository and carry tools they never use, which adds token cost on every session. TokenEconomizer targets that waste by reusing what earlier sessions already revealed.
Developers who run coding agents often in the same repositories and want to lower token spend. It is less useful for one-off work in a new repository, or for people on agents where the main mechanisms are not supported.
What it does
TokenEconomizer is a plugin for coding agents, published by Microsoft. It learns from past sessions inside a repository and uses that history to reduce token cost. The main use case is a developer who returns to the same codebase again and again with an agent.
The maker's site does not state any savings figures, so treat the cost benefit as unmeasured until you test it on your own work.
Key features
- Micro-skills: learns repository facts from repeated failures and from earlier sessions.
- Tool pruning: leaves out tools that go unused.
- Loop guard: redirects turns that are stuck.
- Judge model: checks whether a turn is stuck.
- Per-mechanism settings: each mechanism can be configured with the
config setcommand. - Local data: learned data is stored on your machine in
~/.tokeneconomizer.
Pricing
TokenEconomizer is open source under the Apache-2.0 license. As of November 2026, the facts we have list no paid plans and no starting price. Whether there is a hosted or free plan is not stated on the maker's site. Note that the plugin's own proposer and judge calls run through your agent, so they count toward your token cost.
API and integrations
No public API or SDKs are stated on the maker's site. It works with these agents:
- Claude Code
- Codex
- GitHub Copilot CLI
- Pi
- opencode
- Cursor Agent
- Grok Build
- Hermes Agent
- Antigravity CLI
It runs from the command line on macOS, Linux and Windows. Docs and source are on GitHub.
Good to know
- Cursor support is experimental and limited to macOS and Linux.
- Antigravity CLI support is experimental, limited to macOS and Linux, and works without model calls.
- Tool pruning is not available on Grok Build, Pi, opencode, Hermes Agent or Antigravity CLI.
- The plugin's proposer and judge calls go through your own agent and add to cost, so net savings depend on your usage.
- No changelog or pricing page is linked in the facts.
FAQ
What is TokenEconomizer?
TokenEconomizer is an open-source plugin from Microsoft for coding agents. It learns from past sessions in a repository and uses that to reduce token cost.
Which coding agents does TokenEconomizer work with?
It lists Claude Code, Codex, GitHub Copilot CLI, Pi, opencode, Cursor Agent, Grok Build, Hermes Agent and Antigravity CLI. Cursor and Antigravity CLI support is experimental, and some features are missing on several agents.
Is TokenEconomizer free?
It is open source under the Apache-2.0 license. As of November 2026, no paid plans or prices are listed. Its own proposer and judge calls run through your agent, so they still count toward your token usage.
Where does TokenEconomizer store what it learns?
Learned data is stored locally in the ~/.tokeneconomizer folder on your machine.
Does TokenEconomizer have an API or SDK?
No API or SDKs are stated on the maker's site. It is used as a plugin through the command line, with docs on GitHub.
Releases
No tracked releases yet.
In the news
No coverage yet.