vsref

12 Best Claude Code Alternatives (2026)

Claude Code is anthropic's agentic coding tool that reads your codebase, edits files and runs commands from the terminal, ides, a desktop app and the web.. Teams that switch usually cite published usage limits instead of an unpublished allowance, an open-source agent you can run with your own API key, a no-training policy, SSO and a self-hosted option for company code. The alternatives below are ranked by published head-to-head verdicts, not sponsorship.

Not ready to switch? Full Claude Code review →

If you sign up through links on this page, vsref may earn a commission; programs exist on both sides of most comparisons, and commissions never change verdicts. How we make money

Reviewed by vsref Editorialfacts verified Oct 3, 2026Methodology →

Where to switch, by reason

Switching because of published usage limits instead of an unpublished allowance →see Command Code
Switching because of an open-source agent you can run with your own API key →see DeepSeek Harness (dsh)
Switching because of a no-training policy, SSO and a self-hosted option for company code →see GitLab Duo Agent Platform
Switching because of free plans →see Amp
Switching because of terminal workflows →see Cline
Switching because of vs code →see Factory
AI IDE with CLI and cloud agents; ships its own Grok/Composer models. Acquired by SpaceX (completed 2026-08-14, per cursor.com/blog/joining-spacex); also segments terminal_agent, cloud_agent.Best if you need: beginners, enterprise, free plans
Autonomous cloud coding agent + terminal agent (Devin CLI); plans shared with Devin DesktopBest if you need: free plans
Multi-model IDE extension plus Copilot cloud agent (formerly 'coding agent'; cloud_agent) and Copilot CLI (terminal_agent). Billing moved from premium requests to GitHub AI Credits on 2026-06-01.vs Claude Code: adds runs local models.Best if you need: beginners, free plans, local models, open source, vs code
Agent-first IDE + CLI + desktop agent manager; Google's consumer coding product since Gemini CLI's 2026-06-18 consumer cutovervs Claude Code: adds runs local models.Best if you need: beginners, free plans, local models, open source, vs code
Coding agent across CLI (Apache-2.0), IDE extension, Codex Cloud (cloud_agent) and ChatGPT desktop app; usage shared with ChatGPT Work. The standalone Codex app merged into the ChatGPT desktop app on 2026-07-09.vs Claude Code: adds runs local models.Best if you need: beginners, free plans, local models, open source
#6AiderOSS
Original git-native terminal pair programmer; BYO key only, no paid tier; publishes its own polyglot LLM leaderboard (also oss_self_hosted)vs Claude Code: adds runs local models.Best if you need: free plans, local models, open source
#7Amp logoAmp
Frontier multi-model agent + cloud dev environments (orbs); also terminal_agent (Amp CLI, connects to VS Code/Cursor/Windsurf/Zed/Neovim). OWNERSHIP: no longer branded as Sourcegraph - operated by "Amp Frontier Corporation" (privacy policy, modified Sep 10, 2026); about page: "We are an independent agent research lab"; CLI npm package moved from @sourcegraph/amp to @ampcode/cli (May 14, 2026 changelog). Free Hobby tier with BYOK/ChatGPT-sub since Sep 13, 2026.Best if you need: beginners, enterprise, free plans
#8Goose logoGooseOSS
Local, BYO-model general-purpose agent; also a native desktop app (Rust). Donated by Block to the Linux Foundation's Agentic AI Foundation in 2026.vs Claude Code: adds runs local models.Best if you need: free plans, local models, open source
Subscription-bundled vendor terminal agent (SuperGrok / X Premium+), open-sourced Apache-2.0; also embeds in editors via ACPvs Claude Code: adds runs local models.Best if you need: free plans, local models, open source
#10Kimi Code logoKimi CodeOSS
Open-weight model vendor's agent, included with Kimi membership; MIT CLI also takes other providersvs Claude Code: no zero data retention option.Best if you need: free plans, local models, open source
European vendor agent with open-weight local models and self-hosting; also IDE extension and cloud_agent (remote agents, teleport)vs Claude Code: adds runs local models.Best if you need: beginners, free plans, local models, open source
#12OpenCode logoOpenCodeOSS
Most-starred OSS coding agent; provider-agnostic TUI with build/plan agents; optional pay-as-you-go Zen gateway and $10/$40 Go subscriptions (also oss_self_hosted)vs Claude Code: adds runs local models.Best if you need: beginners, free plans, local models, open source, vs code
All 43 ai coding agents alternatives
#13Pi logoPiOSS
Minimal-by-design harness: no built-in subagents, plan mode or permission popups; extend via packages, skills and SDKvs Claude Code: adds runs local models.Best if you need: free plans, local models, open source
#14Qwen Code logoQwen CodeOSS
Open-source multi-provider agent from an open-weight model lab; also desktop app, web UI and VS Code/JetBrains/Zed pluginsvs Claude Code: adds runs local models.Best if you need: free plans, local models, open source
#15Warp logoWarp
Agentic terminal / ADE with credit-metered agents and cloud agent orchestration ("Warp Factories"). Secondary segment: cloud_agent. Client source available under AGPL-3.0.Best if you need: beginners, free plans, open source
Coding agent for open models (DeepSeek, Kimi, GLM, Qwen, MiniMax) with taste learning; CLI + desktop + ACP for Zed; cheap $1-$20 plans with published $ rolling windows.vs Claude Code: adds runs local models.Best if you need: beginners, free plans, local models, open source
'Everything is a Plugin' (Cordis) agent harness from DeepSeek; developer preview with breaking changes; general-purpose, not coding-onlyvs Claude Code: no pick the model per task.Best if you need: free plans, local models, open source
#18Freebuff logoFreebuffOSS
Ad-funded free coding agent on curated low-cost models. History: launched as Codebuff (YC); repo and operator (Freebuff, Inc., legal docs effective 2026-09-02) now present Freebuff, built on the Codebuff open multi-agent framework; codebuff.com still sells the premium-model Codebuff CLI ($100-$500/mo). Also desktop, web builder, cloud IDE.vs Claude Code: no zero data retention option.Best if you need: beginners, free plans, local models, open source
Persistent-memory coding agent (Apache-2.0); CLI + desktop + browser + Slack/Telegram/Discord channels; optional Letta Cloud ($20/mo Pro).vs Claude Code: adds runs local models.Best if you need: free plans, local models, open source
Legacy AWS coding assistant in end-of-sale; superseded by Kirovs Claude Code: no pick the model per task.
Context-engine coding platform for large codebases; now led by Cosmos cloud agents + Auggie CLI (also ide_extension: VS Code, JetBrains, Vim/Neovim chat). Brief seeded it as an IDE extension; the 2026 pricing page leads with "Try Cosmos". Flat team pricing (up to 50 seats, no per-seat charge) with a pooled $ usage balance.vs Claude Code: no zero data retention option.
#22Cline logoClineOSS
BYO-key OSS agent; free for individuals, pay only for inference; Plan/Act modes; also CLI, desktop app, SDK (also oss_self_hosted)vs Claude Code: adds runs local models.
See pricingVisit Cline →
#23Continue logoContinueOSS
Discontinued: acquired by Cursor (June 2026); final v2.x release; code remains availablevs Claude Code: no pick the model per task.
"The Sovereign AI Lab": coding agent + own post-trained Lumen models, pitched at regulated/air-gapped orgs and niche languages (COBOL, Fortran, Verilog). Formerly branded Genie (Genie CLI introduced Q2 2025). Secondary segment: terminal_agent (cos CLI).vs Claude Code: no zero data retention option.
See pricingVisit Cosine →
#25Crush logoCrushOSS
Source-available (FSL, converts to MIT after 2 years) BYO-model terminal agent; optional Charm-hosted 'Hyper' inference subscription.vs Claude Code: adds runs local models.
See pricingVisit Crush →
Agentic AI IDE (ex-Windsurf) inside the Devin family; shares plans with Devin Cloud and Devin CLI
Agent-native dev platform; Droids work locally or as background/cloud agents. Secondary segment: terminal_agent (Droid CLI). Domain moved from factory.ai to factory.com (factory.ai 307-redirects).vs Claude Code: adds runs local models.
Open-source terminal agent (also oss_self_hosted), enterprise/API-key only after consumer users moved to Antigravity CLIvs Claude Code: no zero data retention option.
DevSecOps-native agents and flows for GitLab Premium/Ultimate; also IDE extensions (VS Code, JetBrains) and a Duo CLI; self-managed and air-gapped self-hosted-model options.vs Claude Code: adds runs local models.
#30gptme logogptmeOSS
MIT local-first terminal agent; also web UI, desktop app, REST server, MCP/ACP; persistent autonomous-agent template.vs Claude Code: adds runs local models.
See pricingVisit gptme →
Async GitHub cloud agent bundled with Google AI Pro/Ultra; changelog quiet since March 2026vs Claude Code: no pick the model per task.
JetBrains IDE agent, now also a terminal agent (Junie CLI) and runs in JetBrains Air; metered in JetBrains AI Credits ($1 each) with BYOK at provider rates, zero markup.vs Claude Code: adds runs local models.
#33Kilo Code logoKilo CodeOSS
OSS multi-surface agent; zero-markup inference gateway + Kilo Pass credit bundles; started as a Roo Code fork, now built on the OpenCode core (also terminal_agent, cloud_agent)vs Claude Code: adds runs local models.
#34Kiro logoKiro
Spec-driven AI IDE + CLI (ex-Q Developer CLI) + web/cloud agent; AWS successor to Amazon Q Developervs Claude Code: no zero data retention option.
See pricingVisit Kiro →
#35OpenHands logoOpenHandsOSS
MIT-licensed, model-agnostic agent platform; self-host or use OpenHands Cloud (free individual SaaS, enterprise VPC). Also a cloud/async agent.vs Claude Code: adds runs local models.
#36PlandexOSS
Discontinued: Plandex Cloud wound down from 2025-10-03; no commits or releases since.vs Claude Code: no pick the model per task.
#37Roo Code logoRoo CodeOSS
Discontinued 2026-05-15; team pivoted to Roomote (cloud agent). Community fork ZooCode; Kilo Code started as a Roo forkvs Claude Code: no pick the model per task.
#38Tabby logoTabbyOSS
Self-hosted completion server + IDE plugins; low activity in 2026 (chat/knowledge features sunset Jan 2026, vendor focus shifted to its Pochi agent).vs Claude Code: adds runs local models.
See pricingVisit Tabby →
Private, governed enterprise coding agent with self-hosted and air-gapped deployment. Now a Tricentis product (acquired 2026-07-30). Secondary segment: terminal_agent (Tabnine Plugin for OpenCode).vs Claude Code: adds runs local models.
#40Trae logoTrae
Low-priced AI IDE (Free/Lite/Pro/Pro+/Ultra); product family now split into TraeCode (IDE) and TraeWork (web/desktop/mobile workspace built on SOLO). Owner per brief: ByteDance - the legal entity could not be read from a primary source (privacy policy/ToS are client-rendered); enterprise page cites Douyin as a customer. Chats may be used for training unless Privacy Mode is on.vs Claude Code: no opens prs from issues.
See pricingVisit Trae →
Plan-Code-Verify multi-model agent; desktop app (primary, most changelog activity), VS Code/JetBrains plugins, Slack/Telegram control; increasingly pitched as an 'AI technical cofounder' with app deployment.vs Claude Code: no self-hosted / vpc deployment.
#42Void logoVoidOSS
Discontinued OSS Cursor alternative; repo archived 2026-06-02.vs Claude Code: no pick the model per task.
See pricingVisit Void →
#43Zed logoZedOSS
Fast OSS editor with agentic features; free with your own keys or external agents, Pro $10/mo adds $5 of hosted-model tokens at list +10%. Also oss_self_hosted-adjacent (GPL editor, local models).vs Claude Code: adds runs local models.
See pricingVisit Zed →

How the top Claude Code alternatives compare

The top 6 in depth: where each alternative ranks across the AI coding agents field we track, which use cases it takes from Claude Code, and what switching gives up.

1. Cursor

Our use-case verdicts have Cursor ahead of Claude Code for beginners, enterprise and free plans and matches it for local models and open source.

Why teams switch: What the free plan actually allows decides this one. Cursor's Hobby plan gives limited Agent requests and access to Composer at no charge, while Claude Code is not included on the Free plan at all, so real agent work there starts at a paid plan. Both let you bring your own API key, and both price their cheapest paid plan at $20/mo, so neither point changes the picture. Neither publishes support for running local models. For a developer who wants to try agent work before paying, Cursor is the only one of the two with a usable free tier. Free Plans verdict →

Overall verdict: Cursor leads on the use cases where most buyers start. For Beginners and Free Plans, Cursor's Hobby plan includes limited Agent requests and access to Composer, while Claude Code is not included on the Free plan; both price their cheapest paid plan at $20/mo. For Enterprise, Cursor states that with Privacy Mode on, code is not used for training, while Claude Code's published policy leaves training to user choice on consumer plans. Claude Code takes Terminal Workflows and VS Code, since it leads with a terminal CLI and runs as an extension inside both VS Code and Cursor. Local Models and Open Source are ties, because neither publishes local model support or an open-source license.

Full Cursor vs Claude Code comparison → · Cursor review →

2. Devin

In our published verdicts, Devin beats Claude Code for free plans and matches it for local models and open source.

Why teams switch: What the free plan actually allows matters most here. Claude Code is not included on the Free plan at all, while Devin offers limited Devin usage for free. Claude Code fights back on keys, supporting bring-your-own API keys, whereas Devin only partially does, by linking a ChatGPT Plus or Pro account for GPT-model usage. Once you pay, both start at $20/mo. Neither publishes local model support. Because only Devin lets you do real agent work without paying or supplying a key, it takes this use case. Free Plans verdict →

Overall verdict: Claude Code wins four use cases to Devin's one. Claude Code takes Beginners with a $17/mo annual price and checkpoints for rollback, which Devin does not publish. It takes Enterprise because its consumer plans leave training as a user choice, while Devin's self-serve plans may train by default. It runs as a VS Code and Cursor extension, winning VS Code, and leads Terminal Workflows from its terminal CLI. Claude Code is also cheaper for teams at $25/user/mo, against $40/user/mo for Devin. Devin wins Free Plans because it offers limited Devin usage on its free plan, while Claude Code is not included on the Free plan. Local Models and Open Source end in ties.

Full Devin vs Claude Code comparison → · Devin review →

3. GitHub Copilot

Head-to-head, GitHub Copilot takes beginners, free plans, local models, open source and vs code from Claude Code.

Before switching, weigh what stays behind - Claude Code vs GitHub Copilot: adds zero data retention option.

Why teams switch: GitHub Copilot is the easier, cheaper start. Claude Code's cheapest paid plan is $20/mo, while GitHub Copilot's is $10/mo, and Copilot publishes what that entry tier includes: 1,000 base plus 500 flex for 1,500 AI credits on Pro. Claude Code does not publish an entry allowance. Copilot's free plan offers 2,000 code completions a month, while Claude Code is not included on the Free plan at all. Both offer checkpoints and rollback, so undoing a messy edit is covered either way. On price, a clear allowance and a real free tier, Copilot leads on what matters most for newcomers. Beginners verdict →

Overall verdict: GitHub Copilot takes five of seven use cases on price, a real free tier and editor reach. GitHub Copilot's cheapest paid plan is $10/mo, while Claude Code's is $20/mo, and Copilot's Pro tier includes 1,500 AI credits, which wins it Beginners. Its free plan includes 2,000 code completions a month, while Claude Code is not included on the Free plan, deciding Free Plans. It runs local models, which carries Local Models and Open Source, and it supports VS Code, Visual Studio, JetBrains IDEs and Eclipse. Claude Code still wins Enterprise, with self-hosted deployment that GitHub Copilot lacks, and Terminal Workflows thanks to its CLI-first design.

Full GitHub Copilot vs Claude Code comparison → · GitHub Copilot review →

4. Google Antigravity

Head-to-head, Google Antigravity takes beginners, free plans, local models, open source and vs code from Claude Code.

Before switching, weigh what stays behind - Claude Code vs Google Antigravity: adds zero data retention option.

Why teams switch: What the free tier actually allows is the deciding factor here. Claude Code is not included on the free tier, so real agent work starts with its $20/mo paid plan. Google Antigravity's free tier gives agent model access to Gemini 3.8 Flash, and its cheapest paid plan is $19.99/mo. Claude Code fully supports bringing your own API key, while Google Antigravity's support is partial, through its CLI on your own Gemini API key, but that does not outweigh a working free tier. Google Antigravity also runs local models. Free Plans verdict →

Full Google Antigravity vs Claude Code comparison → · Google Antigravity review →

5. OpenAI Codex

In our published verdicts, OpenAI Codex beats Claude Code for beginners, free plans, local models and open source.

The reverse angle matters too - Claude Code vs OpenAI Codex: adds zero data retention option.

Why teams switch: For newer developers, a low entry price and a usable free plan matter most. OpenAI Codex starts at $8/mo, while Claude Code starts at $20/mo. OpenAI Codex also has a free plan offering GPT-6 Luna at Standard speed in the desktop app, whereas Claude Code is not included on the Free plan. OpenAI Codex spells out entry-tier usage through its Plus plan, which Claude Code does not publish. Claude Code does publish checkpoints and rollback, a real safety net for undoing agent mistakes that OpenAI Codex does not publish. Even so, that easy undo is not enough to outweigh the cheaper start and the free plan. Beginners verdict →

Full OpenAI Codex vs Claude Code comparison → · OpenAI Codex review →

6. Aider

Head-to-head, Aider takes free plans, local models and open source from Claude Code.

Before switching, weigh what stays behind - Claude Code vs Aider: adds zero data retention option.

Why teams switch: What you get without paying decides this. Aider is entirely free and open source; you bring your own API key (it is required), and because it runs local models you can avoid a provider bill altogether. Claude Code is not included on the Free plan, so real agent work starts at its cheapest paid plan of $20/mo. Claude Code does accept your own API key, but that is pay-per-use, not a free tier. Free Plans verdict →

Full Aider vs Claude Code comparison → · Aider review →