Claude Code alternatives
Claude Code by Anthropic costs $20/mo and is proprietary. If you need something cheaper, open source, self-hosted or simply different, here are 10 alternatives that do the same job, ranked by how widely they are used, with the differences that matter.
10 Claude Code alternatives, by popularity
-
OpenAI's coding agent, offered as an open-source terminal CLI, an IDE extension, a desktop app and a cloud agent that works on repositories. Users sign in with a ChatGPT account or use an OpenAI API key; with an API key, Codex works in the CLI, SDK and IDE extension without cloud features such as GitHub code review and Slack. On the Free and Go plans Codex runs in the desktop app (subject to rollout); the web, CLI and IDE extension come with Plus and higher.
- Free to start; Claude Code has no free tier
- Paid plans from $8/mo vs $20/mo
- Open source (Apache-2.0)
- Works with local models
-
Open-source coding agent from Anomaly (the team behind SST) that runs as a terminal UI, desktop app or IDE extension and connects to 75+ model providers, including local models and existing ChatGPT or GitHub Copilot logins. OpenCode 2 is now available; per the docs, OpenCode 1 and 2 both use the opencode command and cannot be installed side by side under the default command.
- Free to start; Claude Code has no free tier
- Paid plans from $10/mo vs $20/mo
- Open source (MIT)
- Works with local models
- Less widely used (Gid Score 80 vs 89)
-
Minimal, extensible open-source coding agent harness with interactive TUI, print/JSON, RPC and SDK modes, created by Mario Zechner and now maintained by Earendil Inc. It supports 15+ model providers through API keys or OAuth and is customized with TypeScript extensions, skills and packages. Its tools and extensions run with the permissions of the Pi process; Pi does not sandbox tool calls or ask before each one.
- Free to start; Claude Code has no free tier
- Open source (MIT)
- Works with local models
- Less widely used (Gid Score 72 vs 89)
- Growing fast: usage up 32% in 30 days
-
Google's open-source terminal agent that brings Gemini models to the command line for code editing, shell commands and MCP tools. Since 2026-06-18 it no longer serves free, Google AI Pro/Ultra or Google One users, who were moved to Antigravity CLI.
- Open source (Apache-2.0)
- Less widely used (Gid Score 62 vs 89)
-
Open-source autonomous coding agent for VS Code, JetBrains, Cursor, Windsurf, Antigravity and Zed (Neovim via ACP) that also ships a CLI, a desktop app and an SDK. It works with many model providers through the user's own keys, Cline's usage-billed provider or the ClinePass subscription.
- Free to start; Claude Code has no free tier
- Paid plans from $9.99/mo vs $20/mo
- Open source (Apache-2.0)
- Works with local models
- Less widely used (Gid Score 57 vs 89)
-
GitHub's standalone terminal coding agent (`copilot`, npm @github/copilot) that plans and edits code, runs commands and works with GitHub from the terminal. It runs on a Copilot plan and also supports bring-your-own model providers.
- Free to start; Claude Code has no free tier
- Paid plans from $10/mo vs $20/mo
- Works with local models
- Less widely used (Gid Score 55 vs 89)
-
Open-source terminal coding agent (`omp`), built by Stencil Labs as a fork of the Pi coding agent by Mario Zechner, with a native Rust core, IDE-style tooling and Windows-native support.
- Free to start; Claude Code has no free tier
- Open source (MIT)
- Works with local models
- Less widely used (Gid Score 54 vs 89)
-
Alibaba's open-source terminal coding agent for Qwen models that also offers a desktop app, web UI, IDE plugins (VS Code, Zed, JetBrains) and SDKs. It accepts OpenAI-, Anthropic- and Gemini-style provider APIs as well as local models.
- Open source (Apache-2.0)
- Works with local models
- Less widely used (Gid Score 52 vs 89)
- Growing fast: usage up 65% in 30 days
-
Open-source coding agent available as a VS Code extension, JetBrains plugin and CLI, with a gateway to 500+ models and support for bring-your-own keys and local models. Kilo launched in March 2025 and was acquired by Anaconda in July 2026.
- Free to start; Claude Code has no free tier
- Paid plans from $19/mo vs $20/mo
- Open source (MIT)
- Works with local models
- Less widely used (Gid Score 52 vs 89)
-
Google's terminal interface (`agy`) to the Antigravity agent platform, built in Go and announced at Google I/O on 2026-05-19 as the replacement for Gemini CLI. It supports background and multi-agent workflows.
- Free to start; Claude Code has no free tier
- Less widely used (Gid Score 51 vs 89)
Claude Code vs alternatives at a glance
| Agent | Price | Free to start | Open source | MCP | Local models | Gid Score |
|---|---|---|---|---|---|---|
| Claude Code | $20/mo | ✕ | ✕ | ✓ | ? | 89 |
| OpenAI Codex | Free + $8/mo | ✓ | ✓ | ✓ | ✓ | 84 |
| OpenCode | Free + $10/mo | ✓ | ✓ | ✓ | ✓ | 80 |
| Pi | Free (OSS) | ✓ | ✓ | ✓ | ✓ | 72 |
| Gemini CLI | API usage or license | ✕ | ✓ | ✓ | ? | 62 |
| Cline | Free + $9.99/mo | ✓ | ✓ | ✓ | ✓ | 57 |
| GitHub Copilot CLI | Free + $10/mo | ✓ | ✕ | ✓ | ✓ | 55 |
| Oh My Pi | Free (OSS) | ✓ | ✓ | ✓ | ✓ | 54 |
| Qwen Code | Bring your key | ✕ | ✓ | ✓ | ✓ | 52 |
| Kilo Code | Free + $19/mo | ✓ | ✓ | ✓ | ✓ | 52 |
| Antigravity CLI | Free | ✓ | ✕ | ✓ | ? | 51 |
Prices from the vendors' pricing pages; features from official docs (“?” means not documented). Full feature comparison · All prices
How teams use these tools
League halved product cycle times with Claude Code and overnight agent teams
League, which builds member health apps for health plans and providers, rolled Claude out company-wide and moved its engineers to Claude Code. Small pods now ship production code …
Cycle times from idea through pull request cut in half in the four months after the Accelatron, as reported by Anthropic.
How Eon unified multi-cloud incident tooling behind one MCP Gateway on AgentCore
Eon, a cloud data protection vendor, replaced per-tool credentials and local MCP servers with a single authenticated MCP gateway on Amazon Bedrock AgentCore. Developers and an aut…
As reported by AWS (guest post co-written with Eon): developer onboarding dropped from 2 days to 2 minutes.
Turn a Figma frame into code by connecting the Figma MCP server
Figma's hosted MCP server gives a coding agent the variables, components and layout data of a frame you link to, so the code it writes matches the design.
The agent gets design context such as variables, components and layout for the selected frame. (as reported by Figma)
FAQ
What is the best alternative to Claude Code?
By usage, the closest alternative is OpenAI Codex, followed by OpenCode, Pi, Gemini CLI.
Is there a free alternative to Claude Code?
Yes. OpenAI Codex is free to start.
Is there an open-source alternative to Claude Code?
Yes. OpenAI Codex is open source.
How do these Claude Code alternatives compare on price?
OpenAI Codex: Free + $8/mo; OpenCode: Free + $10/mo; Pi: Free (OSS); Gemini CLI: API usage or license; Cline: Free + $9.99/mo; GitHub Copilot CLI: Free + $10/mo.
Claude Code: pricing, features and stats · All terminal coding agents · Find the right agent in 4 questions