Who it is forA team that uses Codex or the GitHub Copilot CLI instead of Claude Code.
The problemCost control tools are usually tied to one agent.
The outcomeToken Economizer running under Codex or Copilot CLI with the same mechanisms.
What you need first
- Claude Code, Codex (0.141.0 or later), GitHub Copilot CLI or Pi
- git
- No API key of its own: model calls run through your own agent
Steps
- For Codex run
codex plugin marketplace add "$PWD/TokenEconomizer"thencodex plugin add tokeneconomizer@tokeneconomizer - Start codex, choose Trust and continue, review the hooks, restart and check with
$tokeneconomizer:status - For Copilot CLI run
copilot plugin marketplace add "$PWD/TokenEconomizer"thencopilot plugin install tokeneconomizer@tokeneconomizer - For Pi run
pi install git:github.com/microsoft/TokenEconomizerand/te status
Prompt for your agent
Install TokenEconomizer for <codex|copilot|pi> following its README commands, then run its status command and show me the output.
Caveat. Codex before 0.141.0 does not run plugin hooks at all.
Use this in your AI agent
Ask your agent
Using the Deduped MCP, get the setup steps for microsoft/TokenEconomizer and "Add the same cost control to Codex or Copilot CLI"
Add Deduped to Claude Code once
claude mcp add --transport http deduped https://dedupedai.com/mcp
Every Monday: the 5 hottest repos and exactly how to use them. Free, one email a week, unsubscribe anytime.
Get them freeShare: X LinkedIn Hacker News Email Copy link
Third-party repos we don't own. AI-written use cases can be wrong. Disclaimer