cheap-ag
50x your Claude usage with cheap-ag. Opus 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.
Install / Use
npx skills add muaaz9329/cheap-agInstalls into whichever agent you are using.
SKILL.md
Installable skill definition
Quality Score
Category
AI & Machine LearningSupported Platforms
Our assessment of cheap-ag
cheap-ag scores 88/100 on our quality scale, 422nd of 945 AI & Machine Learning skills we index (top 45%).
Its SKILL.md is 10 KB long, well organised into 11 sections with 6 code examples: a thorough specification that gives an agent plenty to work with.
It has 151 GitHub stars, a meaningful sign that others use it.
Maintenance, license and trust
- The repository was last updated today, so cheap-ag is actively maintained.
- It is released under the MIT license, a permissive license that allows use, modification and commercial use with attribution.
- Its trust signals score 100/100, with no cautions. These come from repository metadata, not a code audit — read the skill file before letting an agent act on it.
Safety scan
No issues foundOur scan of the whole file found no instruction hijacking, hidden characters, credential access, data exfiltration or destructive commands. An AI review of the same text found nothing harmful.
AI review by kimi-k2.7-code on 2026-11-01. Automated pattern scan on 2026-11-01. It catches known dangerous patterns, not every risk — read a skill before letting an agent act on it.
cheap-ag compared with similar skills
All 4 of these similar skills score higher than cheap-ag; compare them before choosing.
| Skill | Score | Stars | Updated | Format |
|---|---|---|---|---|
| cheap-ag (this skill)by muaaz9329 | 88 | 151 | today | SKILL.md |
| claude-memby thedotmack | 100 | 108.0k | today | CLAUDE.md |
| Agent-Reachby Panniantong | 100 | 107.3k | 7d ago | CLAUDE.md |
| Understand-Anythingby Egonex-AI | 100 | 89.4k | 6d ago | CLAUDE.md |
| headroomby headroomlabs-ai | 100 | 78.5k | 1d ago | CLAUDE.md |
Frequently asked questions
- How do I install cheap-ag?
- Run
npx skills add muaaz9329/cheap-ag. The install tabs above show the steps for each supported agent. - Which AI agents does cheap-ag work with?
- It is written for Claude Code, as a SKILL.md file. Other agents that read the same format can often use it too.
- Is cheap-ag safe to use?
- Our scan of the whole file found no instruction hijacking, hidden characters, credential access, data exfiltration or destructive commands. An AI review of the same text found nothing harmful. It is MIT-licensed and scores 100/100 on trust signals. Skills are instructions an agent will follow, so read the file before installing it and do not approve commands you do not understand.
- Is cheap-ag still maintained?
- The repository was last updated today, so cheap-ag is actively maintained.
Skill content
View source on GitHubYou know the principal engineer. Twenty years in. Sees the whole system at once. Costs a fortune per hour.
You would never pay them to type out a CSV exporter.
But that's exactly what happens every time Opus writes your code: the most expensive model you have, reading files, typing boilerplate, re-running tests, burning through your plan.
Cheap Agent fixes the org chart. Opus plans and decides. A model that costs half a cent per task does the typing, in its own copy of your project, and has to prove its work with a test before anything reaches you.
Why I built this
The idea: get $200-plan usage out of the $100 Claude plan, and $50–70 worth out of the $20 plan, with a few dollars of DeepSeek doing the typing.
I've met a lot of students, mostly in developing countries, who really want Opus for the hard problems and simply can't afford $100 a month. I wanted to find something that helps them.
This is a small effort from my side. It won't make Opus ten times cheaper. But stretching the plan you already pay for is something, and something is better than nothing.
📖 The full story (why I built it, how it works step by step, and the SWE-bench numbers): Cheap Agent: how I made my Claude plan last 2.2–2.7x longer
Install
Easiest: paste this into Claude Code. It asks what you want, then gives you one command to run.
Set up Cheap Agent (npm: cheap-agent) for me.
1. Ask me: which provider (OpenRouter recommended, DeepSeek, OpenCode Go or Command Code), and which
models (balanced is the default; cheapest, strongest, or my own provider/model).
2. Check that node is 20+ and the claude CLI is installed.
3. If I picked my own model, save {"models":{"implement":"<model>"}} in
~/.config/cheapag/config.json, keeping what else is there.
4. Give me the command to run in my terminal: npx cheap-agent login --preset <my choice,
or custom>, and which number to pick for my provider (1 OpenCode Go, 2 OpenRouter,
3 DeepSeek, 4 Command Code). I run it and type my API key there. Never ask for my key.
5. When I say done, check `claude mcp list` shows cheapag, then tell me to run
/cheapag:allow in a new Claude Code session in my project.
Or do it yourself:
npx cheap-agent
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:
/cheapag:allow
That's it. Ask Claude for changes like you always do.
You need:
- Claude Code
- Node.js 20+
- An API key with a few dollars on it from OpenRouter, DeepSeek, OpenCode Go or Command Code (needs a plan with API access)
A few dollars lasts hundreds of tasks. It runs on macOS and Linux.
Windows (beta): tested in CI, not yet by a Windows user. 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.exein Task Manager) until you end it or restart. - The cheap model can't read your dependency folders (like
node_modules) inside its copy of the project. Your tests still run normally.
The numbers
Tested on SWE-bench Verified: real bugs from real open-source projects, graded by the official harness. Same prompts in Claude Code with Opus 5.5, with and without Cheap Agent.
<p align="center"> <img src="assets/chart.svg" width="880" alt="Opus tokens, Claude Code alone versus with Cheap Agent. Adding a feature: 154k vs 57k, 63% less, both pass all tests. 7 everyday bug fixes: 1.6M vs 655k, 59% less, 7 of 7 solved by both. 9 of the hardest bugs: 3.0M vs 1.3M, 55% less, 6 of 9 solved vs 7 of 9, with a Sonnet helper doing the leftovers."> </p>What I won't hide:
- On the very hardest bugs it solved 6 of 9 where plain Opus solved 7 (on a single run plain Opus averages about 6 too).
- On tiny jobs (a few lines, or a whole small app from nothing), Opus is already quick, so there's nothing to save.
Cheap Agent shines on the work in between: real features and real fixes in real code. That's most of your day.
Before / after
The ask: "Add monthly budgets to the expense tracker, plus a CSV export. Tests for everything."
| | Claude Code alone | Claude Code + Cheap Agent | |---|---|---| | Opus tokens | 154k | 57k | | Opus turns | 5 | 2 | | Who wrote the code | Opus | a cheap model, for $0.005 | | Tests | 33 passing | 38 passing |
Opus wrote one task. The cheap model did the rest, tests included.
Built with itself
Native Windows support (36 files, +753/−278 lines) was built with Cheap Agent. Claude found the problems and wrote the plans. The cheap model wrote the code in 30 jobs for $0.29 in total, Sonnet helpers finished what it couldn't and read OpenCode's source to find the two Windows-only bugs, and the full test suite now passes on Linux and Windows.
How it works
<p align="center"> <img src="assets/flow.svg" width="880" alt="How it works: Opus writes a short task; a cheap model works in its own copy of your project, writes a test that fails, fixes the code and makes the test pass; Cheap Agent runs the tests itself and only passing work lands, uncommitted; Opus reads a ten-line result and tells you. If the cheap model can't finish, a Sonnet helper finishes the step instead of Opus."> </p>- Every change is proven. The cheap model must write a test that fails before its fix and passes after. Cheap Agent runs the tests itself; it doesn't take the model's word for it.
- Your project stays clean. Work happens in a private copy (a git worktree). Only passing work lands, uncommitted, so you review the diff like any other.
- Opus stays in charge, but it's held to it: Cheap Agent's hooks stop Opus from quietly redoing work that already passed, or doing a failed step itself when Sonnet can.
Commands
| Command | What it does |
|---|---|
| /cheapag:allow | Your OK to send this project's code to the cheap model. Once per project. |
| /cheapag:status | Recent jobs, and what the cheap model has cost you. |
| /cheapag:hook on | No more "I'll just do it myself": Claude must hand code changes to the cheap model. |
| /cheapag:clean | Tidy up old job folders. |
Settings
Optional. Put a cheapag.json in a project:
| Setting | Default | What it does |
|---|---|---|
| takeover | "sonnet" | Who finishes a step the cheap model couldn't: a Sonnet helper, or "self" (Opus, capped at 15 tool calls). |
| limits.max_turns | 25 | The most turns the cheap model gets per step. |
| models | from setup | Which cheap models to use. Switch with npx cheap-agent login --preset strongest. |
FAQ
Is a half-cent model actually any good? On its own, no. With a written task from Opus, a test it has to pass, and a referee that runs that test, yes, most of the time. When it isn't, it says so and Sonnet takes over.
Does Claude check the work? The tests check the work, and Cheap Agent runs them. Opus checking every passing change cost three times the tokens and caught nothing in my runs, so it trusts a pass. You still review the diff before you commit.
Where does my code go?
To the provider you picked, only after you run /cheapag:allow in that project, which also shows exactly which models will see it. Your API key stays on your machine, in a hidden prompt and a local credential store, never in chat.
Will it commit or push anything? Never. Changes land uncommitted. Your git, your call.
Why not just use Sonnet for everything? Sonnet still costs real usage on every line it types. The cheap model types for half a cent. Sonnet only gets called when the cheap model is stuck.
Can I use it at work, or build on it? Yes. It's MIT licensed: use it, change it, share it, at any company, for free (MIT License).
Why "Cheap Agent"? Because your plan isn't.
Contributing
PRs are welcome, and I'm more than happy to merge them. Setup, where things live, and how to add a provider are in CONTRIBUTING.md.
Update or remove
New versions are announced on the Releases page. Cheap Agent also tells you when a session starts if a new minor or major version is out; set CHEAPAG_NO_UPDATE_CHECK=1 to turn that off.
Update:
npx cheap-agent@latest
Remove (two commands):
claude plugin uninstall cheapag@cheapag
claude mcp remove -s user cheapag
Related Skills
claude-mem
108.0kPersistent Context Across Sessions for Every Agent – Captures everything your agent does during sessions, compresses it with AI, and injects relevant context back into future sessions. Works with Claude Code, OpenClaw, Codex, Gemini, Hermes, Copilot, OpenCode + More
Agent-Reach
107.3kGive your AI agent eyes to see the entire internet. Read & search Twitter, Reddit, YouTube, GitHub, Bilibili, XiaoHongShu — one CLI, zero API fees.
Understand-Anything
89.4kGraphs that teach > graphs that impress. Turn any code into an interactive knowledge graph you can explore, search, and ask questions about. Works with Claude Code, Codex, Cursor, Copilot, Gemini CLI, and more.
headroom
78.5kCompress tool outputs, logs, files, and RAG chunks before they reach the LLM. 20% fewer tokens for coding agents, 60-95% fewer tokens for JSON, same answers. Library, proxy, MCP server.
Languages
Trust signals
From repository metadata: license, adoption, age and documentation. Not a code audit — see the Safety scan above for what the skill file itself contains.
