{
 "schema_version": 1,
 "generated": "2026-11-09",
 "id": "microsoft-tokeneconomizer--add-tokeneconomizer-to-codex-or-copilot",
 "repo": "microsoft/TokenEconomizer",
 "repo_url": "https://github.com/microsoft/TokenEconomizer",
 "repo_slug": "microsoft-tokeneconomizer",
 "title": "Add the same cost control to Codex or Copilot CLI",
 "page_title": "How to add the same cost control to Codex or Copilot CLI with Token Economizer",
 "summary": "Use each agent's plugin marketplace command and check status.",
 "who": "A team that uses Codex or the GitHub Copilot CLI instead of Claude Code.",
 "problem": "Cost control tools are usually tied to one agent.",
 "outcome": "Token Economizer running under Codex or Copilot CLI with the same mechanisms.",
 "steps": [
  "For Codex run `codex plugin marketplace add \"$PWD/TokenEconomizer\"` then `codex 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\"` then `copilot plugin install tokeneconomizer@tokeneconomizer`",
  "For Pi run `pi install git:github.com/microsoft/TokenEconomizer` and `/te status`"
 ],
 "agent_prompt": "Install TokenEconomizer for <codex|copilot|pi> following its README commands, then run its status command and show me the output.",
 "agents": [
  "codex"
 ],
 "difficulty": "Beginner",
 "time": "15 minutes",
 "basis": "readme",
 "caveat": "Codex before 0.141.0 does not run plugin hooks at all.",
 "category": "Software and DevOps",
 "tags": [
  "Software and DevOps"
 ],
 "lang": "python",
 "requirements": [
  "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"
 ],
 "risk": "none",
 "seen_in_the_wild": false,
 "mentioned_publicly": false,
 "risks": [],
 "best": false,
 "score": 0.9,
 "evidence": [],
 "url": "https://dedupedai.com/use-cases/microsoft-tokeneconomizer/add-tokeneconomizer-to-codex-or-copilot/",
 "md": "https://dedupedai.com/use-cases/microsoft-tokeneconomizer/add-tokeneconomizer-to-codex-or-copilot/index.md",
 "disclaimer": "Deduped lists open-source repositories that belong to other people. We do not own, maintain, audit, or vouch for any of them, and a repo appearing here is not an endorsement or a safety check. The use cases, steps, and prompts are written by AI and may be incomplete, outdated, or just wrong. Where a use case is marked \"Seen in the wild\", we link to public posts where someone described something similar, but we have not verified those posts and the use case itself is still our AI's own write-up. Use all of this at your own risk. Only run code, commands, or agents on systems and accounts you are authorized to use, and read the code and every command before you run it, especially anything that touches credentials, files, or the network. Nothing here is professional, security, legal, or financial advice. All trademarks and project names belong to their respective owners, and their use here does not imply affiliation. Content is provided as is, without warranties of any kind. Found a mistake, a safety problem, or something you want removed? Email hello@dedupedai.com and we will look at it promptly.",
 "api": "https://dedupedai.com/api/v1/usecases/microsoft-tokeneconomizer--add-tokeneconomizer-to-codex-or-copilot.json",
 "api_version": "v1"
}
