Skip to content
Agents tracked: 258 Downloads (7d): 219M up 6.1% GitHub stars: 5.5M VS Code installs: 148M Releases (7d): 327 Agent status: 2 with issues Updated Oct 7, 2026

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

  1. 1
    OpenAI Codex · OpenAI · Terminal
    Free + $8/mo

    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.

    • 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
  2. 2
    Pi · Earendil Inc. · Terminal
    Free (OSS)

    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.

    • Free to start; Claude Code has no free tier
    • Open source (MIT)
    • Works with local models
    • Growing fast: usage up 54% in 30 days
  3. 3
    OpenCode · Anomaly · Terminal
    Free + $10/mo

    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.

    • Free to start; Claude Code has no free tier
    • Paid plans from $10/mo vs $20/mo
    • Open source (MIT)
    • Works with local models
  4. 4
    Gemini CLI · Google · Terminal
    Varies

    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 57 vs 80)
  5. 5
    Oh My Pi · Stencil Labs · Terminal
    Free (OSS)

    Open-source terminal coding agent (`omp`), a variant of the Pi coding agent from Stencil Labs, 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 56 vs 80)
    • Growing fast: usage up 58% in 30 days
  6. 6
    Cline · Cline Bot Inc. · Terminal
    Free + $9.99/mo

    Open-source autonomous coding agent for VS Code (and JetBrains) 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 53 vs 80)
  7. 7
    OpenHands · OpenHands · Terminal
    Free

    Open-source AI software-development agent platform (formerly OpenDevin) with a local web GUI, a terminal UI/CLI, a hosted cloud and an SDK. It is model-agnostic and can use the user's own keys.

    • Free to start; Claude Code has no free tier
    • Open source (MIT)
    • Works with local models
    • Less widely used (Gid Score 50 vs 80)
  8. 8
    mini-SWE-agent · Princeton University & Stanford University · Terminal
    Free (OSS)

    Open-source software-engineering agents from Princeton and Stanford researchers: SWE-agent (2024) and its roughly 100-line successor mini-SWE-agent, which uses only bash and works with any model through LiteLLM and similar routers. The SWE-agent README says development effort has moved to mini-SWE-agent.

    • Free to start; Claude Code has no free tier
    • Open source (MIT)
    • Works with local models
    • Less widely used (Gid Score 48 vs 80)
  9. 9
    Kilo Code · Kilo Code · Terminal
    Free + $19/mo

    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 46 vs 80)
  10. 10
    GitHub Copilot CLI · GitHub · Terminal
    Free + $10/mo

    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 45 vs 80)

Claude Code vs alternatives at a glance

AgentPriceFree to startOpen sourceMCPLocal modelsGid Score
Claude Code$20/mo ✕✕ ✓ ? 80
OpenAI CodexFree + $8/mo ✓✓ ✓ ✓ 83
PiFree (OSS) ✓✓ ✓ ✓ 75
OpenCodeFree + $10/mo ✓✓ ✓ ✓ 74
Gemini CLIVaries ✕✓ ✓ ? 57
Oh My PiFree (OSS) ✓✓ ✓ ✓ 56
ClineFree + $9.99/mo ✓✓ ✓ ✓ 53
OpenHandsFree ✓✓ ✓ ✓ 50
mini-SWE-agentFree (OSS) ✓✓ ? ✓ 48
Kilo CodeFree + $19/mo ✓✓ ✓ ✓ 46
GitHub Copilot CLIFree + $10/mo ✓✕ ✓ ✓ 45

Prices from the vendors' pricing pages; features from official docs (“?” means not documented). Full feature comparison · All prices

How teams use these tools

FAQ

What is the best alternative to Claude Code?

By usage, the closest alternative is OpenAI Codex, followed by Pi, OpenCode, Gemini CLI.

Is there a free alternative to Claude Code?

None of the closest alternatives has a free tier.

Is there an open-source alternative to Claude Code?

Not among the closest alternatives we track.

How do these Claude Code alternatives compare on price?

OpenAI Codex: Free + $8/mo; Pi: Free (OSS); OpenCode: Free + $10/mo; Gemini CLI: Varies; Oh My Pi: Free (OSS); Cline: Free + $9.99/mo.

Claude Code: pricing, features and stats · All terminal coding agents · Find the right agent in 4 questions