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

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.

Dmitriy Solodukha · Updated · 10 min read

Checked against Caprock v0.191.0

  1. Claude's limits, and you already pay for ChatGPT Codex CLI Apache-2.0; in every ChatGPT plan, Free included.
  2. Any model, open source, free models to start OpenCode MIT; 200+ providers; Go $10 a month.
  3. Keep Claude Code, pay less for the model Claude Code on DeepSeek or Kimi Your own key; the same agent.
  4. Open source, in VS Code Cline Apache-2.0; a JetBrains plugin too.
  5. Open source, a desktop app goose Apache-2.0; 85+ providers.
  6. An editor with the agent inside Cursor or GitHub Copilot Cursor Plus $8; Copilot Pro $10.
  7. Several of them side by side, with cost Caprock Not an agent: it runs and records the ones you have.
From each maker's own site, docs, pricing page and repository, read 23 November 2026.

The tool you have

What Claude Code does, and why people look elsewhere

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.

What Claude Code does well

  • 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, by Anthropic's own pages

  • 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”.

claude.com/pricing, code.claude.com/docs/en/setup and github.com/anthropics/claude-code, read 23 November 2026.

Side by side · read 23 November 2026

Claude Code and seven alternatives, side by side

Price, licence, where it runs and which models, from each maker's own pages, read 23 November 2026. All but Caprock are agents; Caprock runs them.

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.

Alternative 1 of 8

Codex CLI

OpenAI's open-source coding agent for the terminal · Apache-2.0; included in every ChatGPT plan, Free ($0) and Go ($8 a month) up

Pick it for: Claude's limits ran out, or you already pay for ChatGPT.

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

What it does well

  • “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.”
  1. 1

    Install on macOS or Linux

Alternative 2 of 8

OpenCode

Open-source coding agent for any model · MIT; free models with no account; Go $10 a month, Go Plus $40

Pick it for: Any model, open source, with free models to start.

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

What it does well

  • “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.
  1. 1

    Install

Alternative 3 of 8

Claude Code on DeepSeek or Kimi

The same agent, another vendor's model · Claude Code as it is; DeepSeek or Kimi bill your API key

Pick it for: You like Claude Code and want to pay less for the model, or keep working past a limit.

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

What it does well

  • 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.

Alternative 4 of 8

Cline

Open-source agent in your editor, terminal and desktop · Apache-2.0, free; your own API key or the Cline provider

Pick it for: An open-source agent inside VS Code, on any provider; a JetBrains plugin too.

github.com/cline/cline · github.com/cline/cline and cline.bot/pricing, read 23 November 2026

What it does well

  • “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.

Alternative 5 of 8

goose

Open-source agent with a desktop app and a CLI · Apache-2.0, free

Pick it for: An open-source desktop app as well as a CLI, on whichever provider you have.

github.com/aaif-goose/goose · github.com/aaif-goose/goose (release v1.60.2, 20 November 2026), read 23 November 2026

What it does well

  • “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.

Alternative 6 of 8

Cursor

AI code editor with its own agent, and a CLI · Free, limited; Plus $8 a month; Premium $30; Super $100; Ultra $200

Pick it for: You want the agent inside an editor rather than a terminal.

cursor.com · cursor.com/pricing and cursor.com/download, read 23 November 2026

What it does well

  • 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.

Alternative 7 of 8

GitHub Copilot

GitHub's coding agent in your editor and terminal · Free; Pro $10 a month, Pro+ $39, Max $100

Pick it for: You live on GitHub and want an agent in the editor you already use.

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

What it does well

  • “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.
  1. 1

    Install Copilot CLI

Alternative 8 of 8

Caprock

Desktop app for coding agents; not an agent · Apache-2.0, free; optional Premium, $30 a year or $100 once

Pick it for: Trying an alternative without leaving Claude Code: both side by side, one history, one cost view.

github.com/dspv/caprock · dspv/caprock at master (v0.191.0): README, CHANGELOG 0.171.0, internal/agents, read 23 November 2026

What it does well

  • 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.

Decide

Which one 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.

Which Claude Code alternative fits which need, read 23 November 2026
If you want Use
Claude Code does what you need and the plan fits Stay on Claude Code
Claude's limits ran out and you pay for ChatGPT Codex CLI
Any model, open source, free models to start OpenCode
The same agent on a cheaper model Claude Code on DeepSeek or Kimi
Open source, in VS Code Cline
Open source, a desktop app goose
An AI editor rather than a terminal agent Cursor or GitHub Copilot
Claude Code and an alternative side by side, with cost per project Caprock

What Caprock does not do

  • An agent or a model of its own: it starts and records Claude Code, Codex, OpenCode and the rest.
  • Run Cline, goose or GitHub Copilot.
  • Send your prompts or your key anywhere itself: a DeepSeek or Kimi session talks to that vendor's API with your key.

Free, open source, on your machine

Keep Claude Code, try the rest beside it

Free and open source, on macOS, Windows and Linux. Install the app; Claude Code, Codex and OpenCode sessions show up together with what each one cost.

Install Caprock ↓

The full guide

Claude Code alternatives, step by step

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.

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 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:

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, 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.”
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, 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.
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, 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, 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, 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, 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, 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.
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, 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 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, OpenCode vs Claude Code and Cursor vs Claude Code. Every open-source agent with its latest release: open-source AI coding agents.

Questions people ask

What is the best alternative to Claude Code?
It depends on why you are leaving. For price or limits: Codex CLI, in every ChatGPT plan from Free, or OpenCode, MIT with free models and Go at $10 a month. For open source: OpenCode, Cline or goose. For an editor: Cursor or GitHub Copilot. To keep Claude Code and pay less for the model, run it on a DeepSeek or Kimi API key.
Is there a free alternative to Claude Code?
Yes. OpenCode is MIT and ships free models that need no account; Codex CLI is included in ChatGPT Free; Cline and goose are free and open source on your own API key. Claude Code itself is not on Claude's Free plan.
Is there an open-source Claude Code alternative?
OpenCode (MIT), Codex CLI, Cline (its JetBrains plugin aside), goose and Aider (Apache-2.0) are open source. Claude Code's licence reads “All rights reserved”.
Can I use Claude Code with DeepSeek or Kimi?
Yes. Both publish an Anthropic-compatible API and the variables for Claude Code: ANTHROPIC_BASE_URL (api.deepseek.com/anthropic or api.moonshot.ai/anthropic), your key in ANTHROPIC_AUTH_TOKEN, and their model names. The vendor bills your key; your Claude plan's limits do not apply. Caprock starts such a session from a picker, without exporting the variables yourself.
Can I use Claude Code and Codex together?
Yes: they are separate programs. Caprock, free and Apache-2.0, starts both in tabs side by side, reads both histories, and can carry a Claude Code session that hit its limit over to Codex from a summary.

Sources

Try it

The record of every coding agent you run, the sessions it did not start included. Free, open source; nothing leaves your machine.

Caprock is a desktop app: it installs on your computer, not your phone.

Or email yourself the link:

macOS, Windows and Linux. Your phone pairs with it by QR code. Install options →

Download on the App StoreDownload on the App Store

On an iPhone, pair it with the app.

Download for Mac

Notarized by Apple. One file for Apple silicon and Intel, macOS 13 or later.

Download for Windows

Windows 10 22H2 or later, x64. Windows may ask once whether to run it: click More info, then Run anyway.

Paste it into Claude Code, Codex or any coding agent.

See what it says ▾
Install the Caprock desktop app for me. It is open source (Apache-2.0), a local
app for my coding agents: https://github.com/dspv/caprock

What the install does and how to remove it:
https://github.com/dspv/caprock/blob/master/docs/install-agent.md

Run the install script for my system: https://caprock.dev/mac.sh, /win.ps1 or
/linux.sh. Read it before you run it if you like. Leave my Claude Code settings
alone; the app asks me itself. Tell me when it's open.

Or run it yourself:

curl -fsSL https://caprock.dev/mac.sh | sh

Paste in Terminal: it installs Caprock and opens it.Or with Homebrew: brew install --cask dspv/tap/caprock-app

Or run it yourself:

irm https://caprock.dev/win.ps1 | iex

Paste in PowerShell: it installs Caprock for you and opens it.

Or run it yourself:

curl -fsSL https://caprock.dev/linux.sh | sh

Paste in a terminal: it installs Caprock for you, no sudo. Or download the AppImage