Claude Code model router

Cheap Ag

50x your usage with cheap-ag. Opus/Astra plans, a dirt-cheap model writes every line, and tests decide what ships. Your $20 plan stops hitting limits. One MCP server for Claude Code & Codex.

324 stars 30 forksModel routers & proxies Plugin marketplace Source

Install

Add the plugin marketplace
/plugin marketplace add muaaz9329/cheap-ag

Run inside Claude Code, then /plugin to pick what to install from it.

Install
npx cheap-agent

Found in the project README. Check it for setup steps after installing.

From source
git clone https://github.com/muaaz9329/cheap-ag.git

From the README

Cheap Agent

  Your frontier model is a principal engineer. Stop paying it to type.

  Same feature. Same prompt. 63% fewer Opus tokens.
  Your Claude or ChatGPT plan lasts longer. Your code still ships with tests.

  ⭐ Star it, and click Watch → Custom → Releases to hear when new versions ship.
  💬 Questions, ideas and setups: r/CheapAgent

Install

Works in Claude Code and Codex. One login covers both.

Let agent install

Copy this into Claude Code or Codex and let the agent take it from there. It asks what you want, sets things up, and gives you one command to run yourself, where you type your API key.

Claude Code

Pick a provider (OpenRouter if unsure), press Enter for the recommended models, paste your API key. It checks the key works, then adds itself to Claude Code for every project.

Then, in each project, once:

That's it. Ask Claude for changes like you always do.

Codex

Log in (say no when it offers to add itself to Claude Code, if you don't use Claude):

Add the plugin:

Start codex in your project and trust the 3 cheapag hooks when it asks. Then, in each project, once:

That's it. Ask Codex for changes like you always do.

You need

- Claude Code or Codex
- Node.js 20+
- An API key with a few dollars on it from one of the supported providers, or a local model with no key at all. A few dollars lasts hundreds of tasks.

It runs on macOS, Linux and Windows.

Windows: you also need Git for Windows (Git Bash). Known so far:
- The very first job can take about 2 minutes while the cheap model's engine (OpenCode) sets itself up. Later jobs start in seconds.
- If that engine crashes mid-session, Cheap Agent starts a new one, but the crashed copy can stay running (opencode.exe in Task Manager) until you end it or restart.
- The cheap model can't read your…
Read the full README on GitHub

Details

Language
TypeScript
License
MIT
Last updated
9 November 2026
Topics
agentic-codingai-agentsanthropiccheap-llmclaudeclaude-codeclaude-code-hooksclaude-code-pluginclaude-code-skillcost-optimizationdeepseekdeveloper-tools

FAQ

What is Cheap Ag?

50x your usage with cheap-ag. Opus/Astra plans, a dirt-cheap model writes every line, and tests decide what ships. Your $20 plan stops hitting limits. One MCP server for Claude Code & Codex. It is a model router for Claude Code, from muaaz9329/cheap-ag on GitHub.

How do I install Cheap Ag?

Run npx cheap-agent, then follow the setup in the README.

Is Cheap Ag popular?

muaaz9329/cheap-ag has 324 GitHub stars and 30 forks, and is included in 1 curated Claude Code list. It was last updated on 9 November 2026.

More model routers & proxies

Browse the most popular Claude Code mods, all model routers & proxies, or the skills and MCP server directories.