8 Best Claude Code Alternatives (2026)
The closest alternatives to Claude Code are Aider, Amp, Cline and Codex CLI, with 4 more below. Each shares a comparison category with it, so every rationale here names both tools' real values. Claude Code is marked No on Local models, where Codex CLI records Yes, usually where a switch starts.
Why do people look for Claude Code alternatives?
- Most people searching for Claude Code alternatives are not shopping, they already run it and something has stopped fitting.
- That something is usually a specific number rather than a feeling.
- This page starts from the fields where Claude Code genuinely trails the rosters it appears in, and only then covers the reasons that never show up in a table.
The measured reasons.
- Local models, No. Codex CLI
records Yes.
- Licence, proprietary, 10th of 15. Codex CLI
records Apache-2.0.
- Any one of those is enough on its own if you sized your architecture around it.
- None of them is enough if you didn't, which is why the list is short and specific rather than a general case against Claude Code.
The reasons that never make it into a table.
- A price rise after a funding round.
- A licence change that turns a self-host into a subscription.
- A region you now need and they do not have.
- An acquisition.
- A support experience that quietly degrades.
- None of those are fields, and all of them move teams, which is why every entry below links back to Coding agents, where the full field set and its sources live.
- The ones we catch get logged on the Claude Code timeline.
How the shortlist is ordered.
- Every tool below shares at least one comparison category with Claude Code, sorted by how many categories the two overlap in.
- There is no editorial ranking, no sponsorship and no affiliate link, the order is the overlap count.
- The rationale under each is generated from the two tools' own cells, so it names real values rather than adjectives.
1.
Aider
- Aider
, Minimal terminal pair-programmer with a tree-sitter repo map and automatic git commits.
- It meets Claude Code in Coding agents.
- It is ahead on Licence (Apache-2.0 against proprietary), Local models (Yes against No) and Model breadth (any provider / router against one vendor + custom endpoint).
- What you give up: Opens PRs (No, where Claude Code records Yes) and MCP (No, where Claude Code records Yes).
- Best for scripted, repeatable edits where you want a git commit per change.
- The most auditable harness here, but visibly slowed while the category sprinted past.
- MCP
- NoClaude Code: Yes Community-reported
- Subagents
- NoClaude Code: Yes Community-reported
- Background agents
- NoClaude Code: Yes Inferred
- Local models
- YesClaude Code: No Inferredverified 2026-01-15
2.
Amp
- Amp, Sourcegraph's opinionated agent with no model picker and an ad-supported free tier.
- It meets Claude Code in Coding agents.
- It is ahead on Token markup (Yes against No) and Entry price ($0 /seat/mo against $20 /seat/mo).
- What you give up: Opens PRs (No, where Claude Code records Yes) and BYOK (No, where Claude Code records Yes).
- Best for teams who would rather not run a model-selection debate every quarter.
- Removing the model picker is defensible, but you control neither cost nor provider.
- BYOK
- NoClaude Code: Yes Inferredverified 2026-01-15
- Token markup
- YesClaude Code: No Inferred
- Permissions
- granular allowlistClaude Code: allowlist + OS sandbox Inferred
- Model breadth
- no model choiceClaude Code: one vendor + custom endpoint Inferredverified 2026-01-15
3.
Cline
- Cline
, Open-source VS Code and JetBrains agent built around an explicit plan/act split.
- It meets Claude Code in Coding agents.
- It is ahead on Licence (Apache-2.0 against proprietary), Local models (Yes against No) and Model breadth (any provider / router against one vendor + custom endpoint).
- What you give up: Opens PRs (No, where Claude Code records Yes) and Subagents (No, where Claude Code records Yes).
- Best for VS Code and JetBrains teams who want BYOK without leaving the IDE.
- The clearest plan/act interaction and safest BYOK default, but it stays inside the editor.
- Subagents
- NoClaude Code: Yes Community-reported
- Background agents
- NoClaude Code: Yes Inferred
- Local models
- YesClaude Code: No Inferredverified 2026-01-15
- Hooks
- NoClaude Code: Yes Community-reported
4.
Codex CLI
- Codex CLI
, OpenAI
's open-source Rust agent, with the strongest local sandboxing on this page.
- It meets Claude Code in Coding agents.
- It is ahead on Licence (Apache-2.0 against proprietary) and Local models (Yes against No).
- What you give up: Subagents (No, where Claude Code records Yes) and Plan mode (Partial, where Claude Code records Yes).
- Best for unattended local runs where a real OS sandbox is non-negotiable.
- The best local containment story here, but weaker than Claude Code on orchestration primitives.
- Subagents
- NoClaude Code: Yes Community-reported
- Local models
- YesClaude Code: No Community-reported
- Plan mode
- PartialClaude Code: Yes Inferred
- Checkpoint & undo
- PartialClaude Code: Yes Community-reported
- Skills / commands
- PartialClaude Code: Yes Community-reported
5.
Cursor
- Cursor
, VS Code fork with a real codebase index, background cloud agents and a CLI.
- It meets Claude Code in Coding agents.
- It is ahead on Token markup (Partial against No), Repo indexing (embeddings index against agentic grep) and Model breadth (multi-vendor against one vendor + custom endpoint).
- What you give up: BYOK (Partial, where Claude Code records Yes) and Subagents (Partial, where Claude Code records Yes).
- Best for large monorepos where agentic grep runs out of context before it finds anything.
- A real persistent codebase index inside the editor you review in, paid for in lock-in.
- Token markup
- PartialClaude Code: No Community-reported
- BYOK
- PartialClaude Code: Yes Community-reported
- Subagents
- PartialClaude Code: Yes Community-reported
- Model breadth
- multi-vendorClaude Code: one vendor + custom endpoint Inferredverified 2026-01-15
- Surface
- standalone editorCLI+2Claude Code: CLI, IDE extension, web, GitHub-native Vendor-claimedverified 2026-01-15source
6.
Devin
- Devin
, Fully delegated cloud engineer: file a task in Slack or the web app, get a PR back.
- It meets Claude Code in Coding agents.
- It is ahead on Token markup (Yes against No) and Repo indexing (hybrid index + agentic against agentic grep).
- What you give up: BYOK (No, where Claude Code records Yes) and Subagents (No, where Claude Code records Yes).
- Best for backlogs of small, well-specified tickets nobody wants to pick up.
- The clearest full delegation, great for well-specified tickets, but ACU pricing bills you afterwards.
- BYOK
- NoClaude Code: Yes Inferredverified 2026-01-15
- Subagents
- NoClaude Code: Yes Inferred
- Checkpoint & undo
- NoClaude Code: Yes Inferred
- Token markup
- YesClaude Code: No Inferred
- Hooks
- NoClaude Code: Yes Inferred
- Repo indexing
- hybrid index + agenticClaude Code: agentic grep Community-reported
7.
DIY harness
- DIY harness, Your own loop over a model API with an agent SDK, the build-it-yourself reference point.
- It meets Claude Code in Coding agents.
- It is ahead on Local models (Yes against No), Model breadth (any provider / router against one vendor + custom endpoint) and Pricing model (BYOK tokens only against subscription + token overage).
- What you give up: Permissions (applies everything, where Claude Code records allowlist + OS sandbox) and Plan mode (No, where Claude Code records Yes).
- Best for one repeated task with a known shape and a tight tool surface.
- Right for narrow, repeated jobs, wrong for open-ended engineering.
- Note that we carry DIY harness as the do-it-yourself baseline in that roster, the "what if we just ran this ourselves" reference point.
- The honest answer is usually that it is cheaper and considerably more work.
- Permissions
- applies everythingClaude Code: allowlist + OS sandbox Inferred
- Plan mode
- NoClaude Code: Yes Inferred
- Checkpoint & undo
- NoClaude Code: Yes Inferred
- Skills / commands
- NoClaude Code: Yes Inferred
- Local models
- YesClaude Code: No Inferred
- Model breadth
- any provider / routerClaude Code: one vendor + custom endpoint Inferred
8.
Gemini CLI
- Gemini CLI
, Apache-2.0 terminal agent from Google with an unusually generous free tier.
- It meets Claude Code in Coding agents.
- It is ahead on Licence (Apache-2.0 against proprietary) and Entry price ($0 /seat/mo against $20 /seat/mo).
- What you give up: Opens PRs (Partial, where Claude Code records Yes) and Subagents (Partial, where Claude Code records Yes).
- Best for solo developers and students who want daily agent use at zero cost.
- The cheapest credible daily agent, a step behind on orchestration, with its PR path in a separate Action.
- Subagents
- PartialClaude Code: Yes Community-reported
- Background agents
- PartialClaude Code: Yes Inferred
- Plan mode
- PartialClaude Code: Yes Community-reported
- Where it stops
- 3Claude Code: 4 Inferred
How this list was built
There is no editorial ranking on this page and no sponsorship behind it. The order is mechanical: every tool that shares a comparison category with Claude Code, sorted by how many categories the two overlap in. A tool that meets Claude Code in three rosters sits above one that meets it in a single roster, because more overlap means the comparison is more like-for-like.
The rationale under each entry is composed from the two tools' own cells. Where they differ on a field we score, the sentence names both values and the unit. Where they don't differ, it says so instead of manufacturing a distinction, which is why some entries are short.
Values, sources and verification dates all live on the category tables: Coding agents. If a figure here disagrees with a vendor's current pricing page, the vendor is right and we are stale.
Still deciding whether to move at all? The Claude Code profile has the when-to-use and when-not-to-use blocks, and the Claude Code timeline has the dated changes that usually trigger a migration.