Skip to content
AddHunt
MCP servers

Cheap Agent

Delegates coding from Claude Code to low-cost models

Open source

  • Open source
  • Licence: MIT

In short

Cheap Agent is a free, open-source MCP server and plugin for Claude Code and Codex that hands the actual coding to an inexpensive model while the frontier model plans. It is for developers on Claude or Codex plans who want their usage limits to last longer.

What you get

  • Frontier model plans, a low-cost model writes the code
  • Each change proven by a test in its own git worktree
  • Only passing work lands, left uncommitted
  • Works inside Claude Code and Codex
  • Five providers or a custom local endpoint
  • One-command install via npx

The details

Cheap Agent changes who writes the code in an agentic session. The user keeps working in Claude Code or Codex as usual; the frontier model turns the request into one short task without reading the code, and Cheap Agent passes that task to a low-cost model.

How a task runs

The cheap model works in its own git worktree. It first writes a failing test, then changes the code until the test passes. Cheap Agent runs the tests itself and only lets passing work land, left uncommitted for review. The frontier model then reads a short result of about ten lines. If the cheap model gets stuck, the user decides what happens next before more tokens are spent.

Providers and setup

Supported providers include OpenRouter, DeepSeek, OpenCode Go, Command Code and OpenCode Zen, and a custom endpoint allows a local model or any OpenAI-compatible API. Installation is a single npx command, or the user can paste a setup prompt into Claude Code or Codex and let the agent configure it. Requirements are Node.js 20 or newer and either an API key with a small balance or a local model.

The author openly lists trade-offs, such as no savings on tiny jobs and slightly weaker results on the hardest bugs. The project is MIT-licensed and written in TypeScript.

Pricing

Free

As of , from cheapag.com. Prices change: check before you buy.

Alternatives to Cheap Agent

All alternatives

Questions

Do I have to change how I use Claude Code?

No. You keep working in Claude Code or Codex as before; Cheap Agent runs as an MCP server and plugin that delegates the typing to a cheaper model.

Which models can do the coding?

Models from OpenRouter, DeepSeek, OpenCode Go, Command Code or OpenCode Zen, or a local model or other OpenAI-compatible API through a custom endpoint.

What happens if the cheap model fails?

Only work that passes its tests is applied. If the cheap model gets stuck, you are told and choose the next step before more frontier-model tokens are used.

More like this