by muaaz9329
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.
# Add to your Claude Code skills
git clone https://github.com/muaaz9329/cheap-agGuides for using ai agents skills like cheap-ag.
Last scanned: 11/1/2026
{
"issues": [
{
"type": "npm-audit",
"message": "body-parser: body-parser vulnerable to Denial of Service via trailing bytes after a compressed request body",
"severity": "high"
},
{
"type": "npm-audit",
"message": "fast-uri: fast-uri vulnerable to URI scheme spoofing via percent-encoded scheme decoding",
"severity": "medium"
}
],
"status": "WARNING",
"scannedAt": "2026-11-01T11:03:11.247Z",
"npmAuditRan": true,
"pipAuditRan": true,
"promptInjectionRan": true
}See how cheap-ag compares with popular alternatives.
cheap-ag is an open-source ai agents skill for AI coding assistants such as Claude Code, Codex CLI, and ChatGPT, built by muaaz9329. 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 has 332 GitHub stars.
cheap-ag returned warnings in SkillsLLM's automated security scan. It has no critical vulnerabilities, but review the flagged issues in the Security Report section before adding it to your workflow.
Clone the repository with "git clone https://github.com/muaaz9329/cheap-ag" and add it to your Claude Code skills directory (see the Installation section above).
cheap-ag is primarily written in TypeScript. It is open-source under muaaz9329 on GitHub, so you can review or fork the full source.
Yes. SkillsLLM lists many other AI Agents skills you can browse and compare side by side. Open the AI Agents category from the badge at the top of this page, or use the Related Skills and comparison links further down to weigh cheap-ag against similar tools.
No comments yet. Be the first to share your thoughts!
Requires a passing catalog security scan.
⚠️ Third-Party Software Notice
This skill is third-party open-source software developed and hosted independently on GitHub. SkillsLLM is an informational directory and does not control or maintain the underlying repository.
Any security checks, ratings, or warnings displayed by SkillsLLM are automated and limited in scope. They do not constitute a security certification or guarantee that the software is safe, error-free, or free from malicious code, vulnerabilities, compromised dependencies, or prompt-injection risks.
Review the source code, permissions, dependencies, and configuration before installing or running any third-party skill. Use is at your own risk. To the maximum extent permitted by applicable law, SkillsLLM is not liable for losses arising from third-party software.
Works in Claude Code and Codex. One login covers both.
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.
Set up Cheap Agent (npm: cheap-agent) for me.
1. Ask me which provider (OpenCode Go, OpenRouter recommended for a hosted one, DeepSeek,
Ollama for a local model with no key, Command Code, OpenCode Zen, or Custom endpoint for any OpenAI-compatible API)
and which models (balanced is the default; cheapest, strongest, or my own provider/model).
2. Check that node is 20+, and whether I use Claude Code (claude CLI), Codex (codex CLI) or both.
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 provider to pick with the arrow keys or its number (1 OpenCode Go, 2 OpenRouter,
3 DeepSeek, 4 Ollama, 5 Command Code, 6 OpenCode Zen, 7 Custom endpoint). If I picked Ollama Cloud, tell me to
export OLLAMA_API_KEY before running it. If I don't use Claude Code, tell me
to say no when it offers to add itself there. I run it and type my API key there. Never ask for my key.
5. When I say done: for Claude Code, check `claude mcp list` shows cheapag. For Codex, run
`codex plugin marketplace add muaaz9329/cheap-ag` and `codex plugin add cheapag@cheap-agent`.
6. Tell me to open a new session in my project and run /cheapag:allow in Claude Code, or
$cheapag:allow in Codex (trusting the 3 cheapag hooks when it asks).
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.
Log in (say no when it offers to add itself to Claude Code, if you don't use Claude):
npx cheap-agent
Add the plugin:
codex plugin marketplace add muaaz9329/cheap-ag
codex plugin add cheapag@cheap-agent
Start codex in your project and trust the 3 cheapag hooks when it asks. Then, in each project, once:
$cheapag:allow
That's it. Ask Codex for changes like you always do.
It runs on macOS, Linux and Windows.
Windows: you also need Git for Windows (Git Bash). Known so far:
opencode.exe in Task Manager) until you end it or restart.node_modules) inside its copy of the project. Your tests still run normally.| # | Provider | Get a key | Good to know |
|---|---|---|---|
| 1 | OpenCode Go | opencode.ai | Set Regions to Global in its console for the DeepSeek models. |
| 2 | OpenRouter | openrouter.ai/keys | Pick this if unsure. |
| 3 | DeepSeek | platform.deepseek.com | |
| 4 | Ollama | None for this machine; ollama.com for cloud | Local or cloud. Used by default when set up. How |
| 5 | Command Code | commandcode.ai | Needs a plan with API access. |
| 6 | OpenCode Zen | opencode.ai/zen | Pay-as-you-go. |
| 7 | Custom endpoint | Your own, if it needs one | Any OpenAI-compatible API. How |
The number is what you press at login. Log in to more than one and switch any time with /cheapag:provider.
Run npx cheap-agent login, pick Ollama, then one of its two endpoints:
http://127.0.0.1:11434 (it asks for the URL if yours differs). No key. It lists the models you have pulled and asks which one to use. Nothing leaves the machine, so /cheapag:allow treats it as zero retention.https://ollama.com/v1. Export OLLAMA_API_KEY where Claude Code (or Codex) starts, then log in: it checks the key, lists the cloud model ids, and saves a preset (cheapest, balanced or strongest). Jobs fall back to the next cloud model when one hits a limit, and escalate to the strongest. The key stays in your environment and OpenCode reads it; Cheap Agent never sees or stores it.Once set up, Ollama is used by default, even if you logged in to another provider earlier. To use another one, pick it with /cheapag:provider or set "provider" in ~/.config/cheapag/config.json.
On this machine's endpoint one model implements and researches. If models in a project's cheapag.json names a model from another provider, it is ignored, and ping, status and delegate say which model actually runs.
| Claude Code | Codex | What it does |
|---|---|---|
/cheapag:allow |
$cheapag:allow |
Your OK to send this project's code to the cheap model. Once per project. |
/cheapag:status |
$cheapag:status |
Recent jobs, and what the cheap model has cost you. |
/cheapag:hook on |
$cheapag:hook on |
No more "I'll just do it myself": your frontier model must hand code changes to the cheap model. |
/cheapag:clean |
$cheapag:clean |
Tidy up old job folders. |
/cheapag:model |
$cheapag:model |
Pick the worker's main and fallback models, each with an effort. |
/cheapag:provider |
$cheapag:provider |
Switch to another provider you've already logged in to, with no key prompt. This project's consent moves with it, and you see what it now covers. If the new provider fails its check, nothing changes. Add a new provider with npx cheap-agent login. |
While a job runs, Claude Code shows the worker's latest step under the tool call, and Codex shows it each time it checks in (about every 15 seconds). To follow every step in a second terminal, run npx cheap-agent watch.
Optional. Put a cheapag.json in a project:
| Setting | Default | What it does |
|---|---|---|
takeover |
"ask" |
What happens when the cheap model couldn't finish a step. "ask": Claude asks you first, so nothing is spent without your choice. "sonnet": a Sonnet helper takes over automatically, often several hundred thousand Claude tokens on a hard task. "self": Claude does it, capped at 15 tool calls (limits.takeover_calls). Claude Code only; Codex asks in chat ("ask") or finishes it itself. |
limits.max_turns |
25 |
The most turns the cheap model gets per step. |
limits.repro_by_turns |
30 |
A bug-fix step that has edited nothing by this turn is stopped early (×2 medium, ×3 hard). The default lands past the 25-turn cap, so by default the worker runs to its cap; set it lower to stop sooner. |
models |
from setup | Which cheap models to use. Switch with npx cheap-agent login --preset strongest. |
retention |
{ "unlanded_worktree_days": 2, "job_log_days": 7 } |
Days cleanup keeps an unlanded worktree and a job's log folder. It runs at server start and every hour. |
Not in the list of providers? Run npx cheap-agent login and pick Custom endpoint. It works with anything that speaks the OpenAI API: llama.cpp, LM Studio, vLLM, LiteLLM, Azure, or a vendor's API. For Ollama, pick Ollama instead; it does the URL, model and context questions for you. The custom endpoint asks for:
http://127.0.0.1:8080/v1 for llama.cpp. Plain http only works on this machine