# Claude Code alternatives: 7 coding agents, by why you are leaving

*Claude Code alternatives by why you leave: price, limits, open source or the editor. Codex, OpenCode, DeepSeek or Kimi, Cline, goose, Cursor, Copilot.*

Dmitriy Solodukha, checked 2026-11-23 · https://caprock.dev/guides/claude-code-alternatives/

The Claude Code alternatives as of 23 November 2026, by why people leave it. For price or limits: Codex CLI, in every ChatGPT plan from Free; OpenCode, MIT, with free models and Go at $10 a month; or Claude Code itself on a DeepSeek or Kimi key. For open source: Cline and goose, both Apache-2.0. In the editor: Cursor and GitHub Copilot. Caprock is not another agent: it runs these beside Claude Code, on one history and one cost view.

**In short**
- **Price or limits:** Codex CLI (in every ChatGPT plan), OpenCode (free models, Go $10), or Claude Code itself on a DeepSeek or Kimi key.
- **Open source:** OpenCode (MIT), Cline and goose (Apache-2.0). Claude Code is not.
- **In the editor:** Cursor (Plus $8, Grok only) and GitHub Copilot (Pro $10).
- **Not an agent:** Caprock runs them beside Claude Code, with one history and one cost view.
- **Read 23 November 2026** on each maker's own site, docs and repository.

## What are the best alternatives to Claude Code?

*Claude Code and its alternatives, from each maker's own pages, read 23 November 2026.*

| Tool | Why switch | Price for one person | Open source | Runs on | Models |
| --- | --- | --- | --- | --- | --- |
| Claude Code | — | Pro $20 a month ($17 yearly), Max $100, Ultra $200; not on Free | No (“All rights reserved”) | macOS 13+, Windows 10 1809+, Linux; VS Code, JetBrains | Claude |
| Codex CLI | Price, limits | In every ChatGPT plan: Free $0, Go $8, Plus $20, Pro from $100 | Yes, Apache-2.0 | macOS, Linux, Windows | OpenAI |
| OpenCode | Price, open source | Free, with free models; Go $10 a month, Go Plus $40 | Yes, MIT | Terminal; desktop app in beta (macOS, Windows, Linux) | 200+ providers |
| Claude Code on DeepSeek or Kimi | Price | Your API key: deepseek-flash $0.15 in / $0.60 out per 1M tokens off-peak | No (the same Claude Code) | Wherever Claude Code runs | DeepSeek, Kimi |
| Cline | Open source | Free; your own key or the Cline provider | Yes, Apache-2.0 | VS Code; JetBrains (plugin not open source); a CLI; a desktop app (Mac, Windows) | Anthropic, OpenAI, Google, OpenRouter, local models, any OpenAI-compatible API |
| goose | Open source | Free; your own provider | Yes, Apache-2.0 | Desktop app and CLI: macOS, Linux, Windows | 85+ providers |
| Cursor | The editor | Free; Plus $8 (Grok models only); Premium $30; Ultra $200 | No | macOS, Windows, Linux | Grok on every plan; others from Premium at API list price |
| GitHub Copilot | The editor | Free (2,000 completions a month); Pro $10, Pro+ $39, Max $100 | No (Copilot CLI: GitHub's own licence) | VS Code and other editors; Copilot CLI on macOS, Windows, Linux | Auto selection on Free; more on paid plans |
| Caprock | Run several | Free; optional Premium $30 a year | Yes, Apache-2.0 | macOS, Windows, Linux (x64) | Not an agent: starts Claude Code (also on DeepSeek or Kimi), Codex, OpenCode, Gemini CLI, Cursor's CLI, Hermes Agent, Grok |

*A cell says what the maker documents. “Free” means the agent; the model is paid for separately unless a plan includes it. DeepSeek bills twice the off-peak rate in its weekday peak hours.*

## What Claude Code does well

Anthropic's coding agent for the terminal, also in VS Code, JetBrains and the Claude desktop app, on a Claude plan or an API key.

- Anthropic's own agent for Claude models, on macOS 13+, Windows 10 1809+ and Linux.
- A flat price: Pro $20 a month ($17 billed yearly), Max $100, Ultra $200.
- Bedrock, Google Cloud and Microsoft Foundry as well as Anthropic's own sign-in.

## Why people look for a Claude Code alternative

- Not on the Free plan: “The free claude.ai plan does not include Claude Code access.”
- Limits: Pro and Max run on a 5-hour and a weekly cycle; Ultra drops the 5-hour limit for verified accounts and keeps the weekly one.
- Claude models: another vendor's model only through an Anthropic-compatible endpoint, which DeepSeek and Moonshot (Kimi) publish for it.
- Not open source: its LICENSE.md reads “All rights reserved”.

Before switching: Claude Code's own `/usage` shows how close the 5-hour and weekly limits are, and [Claude Code usage limits](https://caprock.dev/guides/claude-code-usage-limits/) explains when each resets.

## A free alternative to Claude Code: keep the agent, change the model

The cheapest switch keeps Claude Code. DeepSeek and Moonshot run Anthropic-compatible APIs and publish the settings for it; the core of DeepSeek's, for one shell:

```bash
export ANTHROPIC_BASE_URL=https://api.deepseek.com/anthropic
export ANTHROPIC_AUTH_TOKEN=<your DeepSeek API key>
export ANTHROPIC_MODEL="deepseek-flash[1m]"
export ANTHROPIC_DEFAULT_OPUS_MODEL="deepseek-flash[1m]"
export ANTHROPIC_DEFAULT_SONNET_MODEL="deepseek-flash[1m]"
export ANTHROPIC_DEFAULT_HAIKU_MODEL=deepseek-flash
claude
```

Without the Opus line, choosing Opus goes to `deepseek-v4-pro` at its higher price; DeepSeek's page adds a subagent model and a compaction window. Kimi's use `https://api.moonshot.ai/anthropic` and `kimi-k3[1m]` for every tier, in the `env` block of `~/.claude/settings.json`. Your Claude plan is not used, so its limits do not apply; DeepSeek or Moonshot bills the key, and gets your prompts and the files Claude Code reads.

For free with no key, OpenCode ships a set of free models (“No account needed”), and Codex CLI works on ChatGPT Free.

## Codex CLI: OpenAI's open-source coding agent for the terminal

Claude's limits ran out, or you already pay for ChatGPT. Apache-2.0; included in every ChatGPT plan, Free ($0) and Go ($8 a month) up. [github.com/openai/codex](https://github.com/openai/codex), github.com/openai/codex (README install; release rust-v0.171.0, 20 November 2026) and learn.chatgpt.com/codex/pricing, read 23 November 2026.

- “Lightweight coding agent that runs in your terminal” (its repository), signed in with your ChatGPT plan or an API key.
- “ChatGPT Work and Codex are included in your ChatGPT Free, Go, Plus, Pro, Business, Edu, or Enterprise plan.”
- “Pro plans currently have no five-hour limit”; Pro is $100, $200 or $500 a month.

**Limits:**

- Made for OpenAI's models; local models only through `--oss` (LM Studio).
- Plus counts local messages per five-hour period, and “Weekly limits may also apply.”

```bash
curl -fsSL https://chatgpt.com/codex/install.sh | sh
```

## OpenCode: Open-source coding agent for any model

Any model, open source, with free models to start. MIT; free models with no account; Go $10 a month, Go Plus $40. [opencode.ai](https://opencode.ai), opencode.ai, opencode.ai/docs/go and github.com/anomalyco/opencode (README; MIT; release v1.19.6, 17 November 2026), read 23 November 2026.

- “The open source coding agent for any model”: “bring any of 200+ providers.”
- “OpenCode comes with a set of free models. No account needed.”
- “Log in with ChatGPT Plus or Pro or GitHub Copilot”; a terminal interface, and a desktop app for macOS, Windows and Linux that its README marks beta.
- Go: the 5-hour limit is 20% of the monthly allowance, the weekly limit 50%.

**Limits:**

- Its site names no Claude sign-in: Claude through an API key or another provider.
- You choose and pay for the model; the free list changes.

```bash
curl -fsSL https://opencode.ai/v2/install | bash
```

## Claude Code on DeepSeek or Kimi: The same agent, another vendor's model

You like Claude Code and want to pay less for the model, or keep working past a limit. Claude Code as it is; DeepSeek or Kimi bill your API key. [api-docs.deepseek.com/quick_start/agent_integrations/claude_code](https://api-docs.deepseek.com/quick_start/agent_integrations/claude_code), DeepSeek's Claude Code guide and pricing page, and Kimi's Claude Code guide (platform.kimi.ai), read 23 November 2026.

- DeepSeek and Moonshot each publish the variables for it: `ANTHROPIC_BASE_URL` to their Anthropic-compatible API, your key in `ANTHROPIC_AUTH_TOKEN`, and their model names.
- DeepSeek: `https://api.deepseek.com/anthropic`, `deepseek-flash`; $0.15 per 1M input tokens and $0.60 output off-peak, twice that in weekday peak hours.
- Kimi: `https://api.moonshot.ai/anthropic`, `kimi-k3[1m]` for every tier.
- Your claude.ai plan and its limits are not used: the bill is your API key's.

**Limits:**

- Not Claude: the prompts and the files Claude Code reads go to DeepSeek or Moonshot instead.
- In `~/.claude/settings.json` the variables apply to every session until you remove them; exported, to every session started from that shell.
- DeepSeek maps `claude-opus` names to `deepseek-v4-pro`, billed at V4 Pro's price.

## Cline: Open-source agent in your editor, terminal and desktop

An open-source agent inside VS Code, on any provider; a JetBrains plugin too. Apache-2.0, free; your own API key or the Cline provider. [github.com/cline/cline](https://github.com/cline/cline), github.com/cline/cline and cline.bot/pricing, read 23 November 2026.

- “The open source coding agent in your IDE, terminal, & desktop!”
- A VS Code extension, a JetBrains plugin, a CLI and a desktop app for Mac and Windows.
- Anthropic, OpenAI, Google, OpenRouter, Bedrock, Vertex, Ollama, LM Studio and any OpenAI-compatible endpoint.

**Limits:**

- No plan includes the model: you pay your provider, or the Cline provider by usage.
- The JetBrains plugin is not open source: “Currently we are not open-sourcing JetBrains plugins”.
- Release v4.1.27 on 21 November 2026; the desktop app is for Mac and Windows only.

## goose: Open-source agent with a desktop app and a CLI

An open-source desktop app as well as a CLI, on whichever provider you have. Apache-2.0, free. [github.com/aaif-goose/goose](https://github.com/aaif-goose/goose), github.com/aaif-goose/goose (release v1.60.2, 20 November 2026), read 23 November 2026.

- “Use the native desktop app on macOS, Linux, or Windows, or work from the terminal with the CLI.”
- It can “connect to over 85 providers, including Anthropic, OpenAI, Gemini, OpenRouter, and Amazon Bedrock.”

**Limits:**

- “goose is a general-purpose agent for coding, research, writing, automation, and data analysis”: not for code alone.
- You bring and pay for the model.

## Cursor: AI code editor with its own agent, and a CLI

You want the agent inside an editor rather than a terminal. Free, limited; Plus $8 a month; Premium $30; Super $100; Ultra $200. [cursor.com](https://cursor.com), cursor.com/pricing and cursor.com/download, read 23 November 2026.

- An editor for macOS, Windows and Linux (version 3.31), with an agent and a CLI.
- Premium adds third-party models in Cursor at API list price.

**Limits:**

- Plus: “Only Grok models are available on this plan.”
- Not open source.

## GitHub Copilot: GitHub's coding agent in your editor and terminal

You live on GitHub and want an agent in the editor you already use. Free; Pro $10 a month, Pro+ $39, Max $100. [github.com/features/copilot](https://github.com/features/copilot), docs.github.com (Copilot plans; installing Copilot CLI) and github.com/github/copilot-cli (v1.0.114, 18 November 2026), read 23 November 2026.

- “All plans include Copilot CLI and the Copilot app.”
- Copilot CLI on Windows, macOS and Linux: `npm install -g @github/copilot`.

**Limits:**

- Free: “2000 completions per month”, auto model selection only, limited agent access.
- Copilot CLI is under GitHub's own licence, not an open-source one.

```bash
npm install -g @github/copilot
```

## Caprock: Desktop app for coding agents; not an agent

Trying an alternative without leaving Claude Code: both side by side, one history, one cost view. Apache-2.0, free; optional Premium, $30 a year or $100 once. [github.com/dspv/caprock](https://github.com/dspv/caprock), dspv/caprock at master (v0.191.0): README, CHANGELOG 0.171.0, internal/agents, read 23 November 2026.

- Starts Claude Code, Codex, OpenCode, Gemini CLI, Cursor's CLI, Hermes Agent and Grok in terminal tabs per project.
- Claude Code on DeepSeek or Kimi from the Subscription picker: paste the key in Settings → Subscriptions; the key stays in that one session's environment, and the session is kept out of your Claude plan's windows.
- When a Claude Code session it started hits the 5-hour or weekly limit, it can carry on as the same conversation on DeepSeek, Kimi or another Claude sign-in, or start on Codex from a summary.
- Reads Claude Code, Codex and OpenCode sessions and Cursor's editor chats, from before you installed it too, with cost per project.

**Limits:**

- Not an agent and no models of its own: it runs and records the agents you have.
- Dollar figures are estimates: list price for Claude Code and Codex, the agent's own figure for OpenCode; not a bill.
- It does not run Cline, goose or Copilot, and Cursor's CLI chats show no tokens or cost.

## Try an alternative without leaving Claude Code

Caprock is not an agent. It is a free desktop app that starts Claude Code and the alternatives in tabs side by side, so switching is a tab, not a migration:

- **Claude Code on DeepSeek or Kimi** without exporting anything: paste the key in Settings → Subscriptions, then pick it in *New agent*. The key goes into that one session's environment, never a command line or a log.
- **At the limit,** a session Caprock started shows which window ran out and when it is back, with *Continue on* for each place it can go: another Claude sign-in, DeepSeek or Kimi as the same conversation, or Codex from a summary. Settings → *When a limit is reached* can do it for you.
- **One record:** Claude Code, Codex, OpenCode and Cursor sessions on the same screens, with cost per project, so you can see what the alternative cost next to what Claude did.

![A Claude Code terminal whose output ends with You've hit your session limit, resets 3am, and under it a strip: 5-hour limit, back at 03:00 AM, Continue on Claude Personal, Codex, or Wait](https://caprock.dev/shots/fleet-at-limit.png)

*A Claude Code session at its 5-hour limit in Caprock, on the demo data its screenshots are taken from. With a DeepSeek or Kimi key set, they are offered there too.*

## Also named in "Claude Code alternatives" lists

- **Aider** — Apache-2.0, pair programming in the terminal with almost any model; its latest version, 0.86.2, is from 12 February 2026.
- **Gemini CLI** — Apache-2.0, but no free tier: free individual access moved to Antigravity CLI on 18 June 2026.
- **Google Antigravity** — its Individual plan is $0 with an agent quota refreshed weekly, the CLI included; not open source.

## Which Claude Code alternative to pick

Pick by why you are leaving. Most people who switch keep Claude Code for some work, and nothing stops several agents running side by side.

- **Stay on Claude Code** — claude Code does what you need and the plan fits.
- **Codex CLI** — claude's limits ran out and you pay for ChatGPT.
- **OpenCode** — any model, open source, free models to start.
- **Claude Code on DeepSeek or Kimi** — the same agent on a cheaper model.
- **Cline** — open source, in VS Code.
- **goose** — open source, a desktop app.
- **Cursor or GitHub Copilot** — an AI editor rather than a terminal agent.
- **Caprock** — claude Code and an alternative side by side, with cost per project.

Row by row: [Codex vs Claude Code](https://caprock.dev/guides/codex-vs-claude-code/), [OpenCode vs Claude Code](https://caprock.dev/guides/opencode-vs-claude-code/) and [Cursor vs Claude Code](https://caprock.dev/guides/cursor-vs-claude-code/). Every open-source agent with its latest release: [open-source AI coding agents](https://caprock.dev/guides/open-source-ai-coding-agents/).

## Sources

- [Claude — pricing: Pro $20 ($17 yearly), Max $100, Ultra $200 ("No 5-hour limit" for verified accounts), 5-hour and weekly limits, read 23 November 2026](https://claude.com/pricing)
- [Claude Code docs — advanced setup: macOS 13.0+, Windows 10 1809+, Linux; "The free claude.ai plan does not include Claude Code access", read 23 November 2026](https://code.claude.com/docs/en/setup)
- [Claude Code on GitHub — LICENSE.md: "All rights reserved", read 23 November 2026](https://github.com/anthropics/claude-code)
- [Codex on GitHub — README, Apache-2.0, release rust-v0.171.0 (20 November 2026), read 23 November 2026](https://github.com/openai/codex)
- [Codex — pricing: included in ChatGPT Free, Go, Plus, Pro, Business, Edu, Enterprise; Go $8, Plus $20, Pro $100/$200/$500; "Pro plans currently have no five-hour limit", read 23 November 2026](https://learn.chatgpt.com/codex/pricing)
- [OpenCode — home: 200+ providers, free models with no account, ChatGPT Plus or Pro or GitHub Copilot sign-in, desktop app, read 23 November 2026](https://opencode.ai/)
- [OpenCode docs — Go: $10/month, Go Plus $40/month, 5-hour limit 20% and weekly 50% of the monthly allowance, read 23 November 2026](https://opencode.ai/docs/go/)
- [OpenCode on GitHub — MIT, release v1.19.6 (17 November 2026), read 23 November 2026](https://github.com/anomalyco/opencode)
- [DeepSeek docs — Claude Code: ANTHROPIC_BASE_URL https://api.deepseek.com/anthropic, deepseek-flash, claude-opus mapped to deepseek-v4-pro, read 23 November 2026](https://api-docs.deepseek.com/quick_start/agent_integrations/claude_code)
- [DeepSeek docs — pricing: deepseek-flash $0.15 input (cache miss) and $0.6 output per 1M tokens off-peak, peak twice that, read 23 November 2026](https://api-docs.deepseek.com/quick_start/pricing)
- [Kimi docs — Claude Code: ANTHROPIC_BASE_URL https://api.moonshot.ai/anthropic, kimi-k3[1m], read 23 November 2026](https://platform.kimi.ai/docs/guide/claude-code-kimi)
- [Cline on GitHub — README: IDE, terminal and desktop, providers; Apache-2.0, release v4.1.27 (21 November 2026), read 23 November 2026](https://github.com/cline/cline)
- [Cline — pricing: open source free, your own API keys or the Cline provider, read 23 November 2026](https://cline.bot/pricing)
- [goose on GitHub — README: desktop app and CLI on macOS, Linux, Windows, 85+ providers; Apache-2.0, release v1.60.2 (20 November 2026), read 23 November 2026](https://github.com/aaif-goose/goose)
- [Cursor — pricing: Free, Plus $8 ("Only Grok models"), Premium $30, Super $100, Ultra $200, read 23 November 2026](https://cursor.com/pricing)
- [Cursor — download: macOS, Windows, Linux, version 3.31, read 23 November 2026](https://cursor.com/download)
- [GitHub docs — Copilot plans: Free (2000 completions a month), Pro $10, Pro+ $39, Max $100; "All plans include Copilot CLI", read 23 November 2026](https://docs.github.com/en/copilot/get-started/plans)
- [GitHub docs — installing Copilot CLI: Windows, macOS, Linux, read 23 November 2026](https://docs.github.com/en/copilot/how-tos/set-up/install-copilot-cli)
- [GitHub Copilot CLI on GitHub — GitHub Copilot CLI License, release v1.0.114 (18 November 2026), read 23 November 2026](https://github.com/github/copilot-cli)
- [Aider on GitHub — Apache-2.0, tag v0.86.2 (12 February 2026); aider-chat 0.86.2 on PyPI, read 23 November 2026](https://github.com/Aider-AI/aider)
- [Gemini CLI on GitHub — Apache-2.0; free individual access moved to Antigravity CLI on June 18, 2026, read 23 November 2026](https://github.com/google-gemini/gemini-cli)
- [Google Antigravity — pricing: Individual $0 with a baseline agent quota refreshed weekly, the CLI included, read 23 November 2026](https://antigravity.google/pricing)
- [Caprock README — Claude Code on DeepSeek; OpenCode, Codex and DeepSeek Harness; Cursor (v0.191.0)](https://github.com/dspv/caprock/blob/master/README.md)
- [Caprock CHANGELOG — 0.171.0: Claude Code on Kimi, continuing a session at its limit (ADR-090)](https://github.com/dspv/caprock/blob/master/CHANGELOG.md)
- [Caprock source — DeepSeek and Kimi variables (internal/agents/provider.go)](https://github.com/dspv/caprock/blob/master/internal/agents/provider.go)
- [Caprock source — the agents New agent starts (internal/agents/binaries.go)](https://github.com/dspv/caprock/blob/master/internal/agents/binaries.go)
- [Caprock docs — installing the app: macOS, Windows and Linux x64 (docs/install-app.md)](https://github.com/dspv/caprock/blob/master/docs/install-app.md)
