Available in
Marketplaces, most starred first
Tags
Add to README
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
By microsoft Verified Orgv0.1.0MITIn 1 marketplace
Cuts token spend by injecting short repository facts learned from earlier sessions, leaving out tools a repo never uses, and redirecting failing loops. Hooks run on every prompt, tool call and session start/end; needs Python 3.10+.
Trending plugins
7-day copy clicks
You run one by typing its /name in Claude Code.
2 cautions to review before installing
A hook runs when Claude uses the Bash tool
A hook runs when Claude writes or edits files
Static checks of hooks, mods, MCP servers and commands. Not a security audit.
1 marketplace, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Public GitHub repos that commit this plugin as enabled in their Claude Code settings
How to install and use TokenEconomizer in Claude Code, Codex, the GitHub Copilot CLI, Pi, Cursor
(experimental), Grok Build (experimental), opencode (experimental), Hermes Agent (experimental),
the Antigravity CLI (experimental) and Factory Droid (experimental). What the plugin does and
why is in the main README; its design and the verified behaviour of each agent are
in docs/PLUGIN.md.
PATH (or set TE_PYTHON=/path/to/python3.10+).github/copilot settings otherwiseNo extra API key is needed. Plugins load when a session starts, so start a new session after installing. Claude Code, Codex and the Copilot CLI install from a clone of this repository:
git clone https://github.com/microsoft/TokenEconomizer.git
Keep the clone where it is: the installed plugin runs from it.
Where commands go. Lines starting with
/or$(/plugin …,/tokeneconomizer:…,$tokeneconomizer:…,/te …) are typed into the agent's prompt, not your shell. Shell commands are inbashblocks.
1. Install.
claude plugin marketplace add /path/to/TokenEconomizer
claude plugin install tokeneconomizer@tokeneconomizer
claude plugin list # should show tokeneconomizer@tokeneconomizer ... enabled
(Inside Claude Code the same thing is /plugin marketplace add … and /plugin install ….)
On Windows, the hooks run under Git for Windows' sh, which Claude Code uses for its shell.
Give the marketplace as an absolute path with forward slashes (C:/path/to/TokenEconomizer)
and keep the clone in place: a checkout without symlinks has no package in the install copy,
which finds it in that clone. Python is taken as python3, python, then py -3; the
Microsoft Store alias is skipped when it runs nothing.
2. Check it. Start Claude Code in any project (cd my-project && claude) and type
/tokeneconomizer:status. It should print a short status block, not an error. Claude Code may ask
permission to run the plugin's script; allow it always.
3. Record the tool list, once.
/tokeneconomizer:toolprune refresh-catalog
This records which tools a Claude Code session loads, with no model call. Do it once on this machine, and again after Claude Code updates. Don't skip it: without it the deny list sees only the few tools Claude Code defers, not the ones every session loads.
4. Work normally. When the plugin leaves tools out (What to expect says when), the next session start says so once. To see or undo it:
/tokeneconomizer:toolprune # the tools it left out, and the evidence
/tokeneconomizer:toolprune restore # give them back, from your next session; they stay back
The deny rules go into this repository's .claude/settings.local.json, which the plugin keeps
out of git; deny rules you wrote are never touched. To approve each deny list yourself instead:
/tokeneconomizer:config set toolprune=propose, then /tokeneconomizer:toolprune apply.
Where its messages appear. Claude Code shows the plugin's one-line messages (facts added,
tools left out) only in its detailed transcript: press Ctrl+O, where they read
<event> says: TokenEconomizer: …. The exception is a turn that still looks stuck: the plugin
also asks Claude to repeat that line word for word, so it shows in Claude's reply (under
claude -p, in the final reply). Claude may word it differently or leave it out; the detailed
transcript always has it. Press Esc to stop the turn; under claude -p, Ctrl+C ends the
run. With --output-format stream-json --verbose, every message also arrives as a
hook_response event.
7-day copy clicks
Plugins from other owners that cover similar ground
Built from public signals: copy clicks on this site, GitHub stars and activity, the README and the manifest. Not a security audit or an endorsement.
npx claudepluginhub microsoft/tokeneconomizer --plugin tokeneconomizer