Free to list, always.No paid rankings. Every recommendation explains its trade-offs.
OpenSourceChoice

Open-source alternatives guide · Updated 2026

Best open-source alternatives to Claude Code

Compare the best free and open-source alternatives to Claude Code — 19 verified projects with explicit catalog relationships. Inspect licenses, GitHub activity, self-hosting signals, and migration fit before you switch.

Official product reference Claude Code
  • 19verified alternatives
  • 2self-hosted signals
  • 4categories

Only explicit alternative relationships are shown—never inferred competitor claims.

Overview

This guide compares 19 verified open-source alternatives to Claude Code, including OpenCode, Awesome [MCP Servers](/projects/awesome-mcp-servers), Zed, and OpenHands.

Projects appear across Infrastructure, AI & Machine Learning, and Content & Collaboration. 2 options include a self-hosting signal — see the self-hosted catalog. Ranking follows public GitHub stars and recorded momentum—not vendor marketing. Compare projects side by side, then confirm license fit, migration effort, and operational ownership before adopting any option.

Engineers evaluating Claude Code alternatives, Claude Code plugins, MCP coding tools, and open coding agents they can run with local models or their own API providers.

Migration tip: Compare tool-use quality on your monorepo: tests, lint, and PR workflows. Start with one agent client, then add one MCP server (docs/git) before write-capable shell tools. Measure token cost and whether the agent respects project conventions.

Strongest repository-activity signal: OpenCode · Jump to ranking · 190.7K stars

About Claude Code

Claude Code is Anthropic’s agentic coding assistant oriented around terminal and repository workflows. Viral demand now includes Claude Code plugins and MCP-style tools. Open-source alternatives focus on local agents (Cline, OpenHands, Goose, Aider, Continue), BYO keys, and auditable MCP servers—not a single vendor plugin store.

Visit Claude Code

Ranked open-source alternatives to Claude Code

Compare capabilities, licensing, and ownership model. Stars help with discovery; they are not a security or product-fit guarantee.

#3

Zed

Open-source alternative to Claude Code

Content & CollaborationLicense not declared

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter. Review the official repository, license, release activi

Best for
Knowledge teams
Deployment
Inspectable source
License
License not declared
Activity
Updated 27 hours ago
#4

OpenHands

Open-source alternative to Claude Code

AI & Machine LearningLicense not declaredAI-native

🙌 OpenHands: AI-Driven Development

🙌 OpenHands: AI-Driven Development Review the official repository, license, release activity, and deployment documentation before production adoption.

Best for
AI product teams
Deployment
Inspectable source
License
License not declared
Activity
Updated 27 hours ago
#5

pi

Open-source alternative to Claude Code

AI agent toolkit: unified LLM API, agent loop, TUI, coding agent CLI

AI agent toolkit: unified LLM API, agent loop, TUI, coding agent CLI Review the official repository, license, release activity, and deployment documentation before production adopt

Best for
AI product teams
Deployment
Inspectable source
License
MIT
Activity
Updated 27 hours ago
#6

Cline

Open-source alternative to Claude Code

Autonomous coding agent as an SDK, IDE extension, or CLI assistant.

Autonomous coding agent as an SDK, IDE extension, or CLI assistant. Review the official repository, license, release activity, and deployment documentation before production adopti

Best for
Knowledge teams
Deployment
Inspectable source
License
Apache-2.0
Activity
Updated 26 hours ago
#7

Goose

Open-source alternative to Claude Code

an open source, extensible AI agent that goes beyond code suggestions - install, execute, edit, and test with any LLM

an open source, extensible AI agent that goes beyond code suggestions - install, execute, edit, and test with any LLM Review the official repository, license, release activity, and

Best for
AI product teams
Deployment
Inspectable source
License
Apache-2.0
Activity
Updated 26 hours ago

Key capabilities

#8

Aider

Open-source alternative to Claude Code

aider is AI pair programming in your terminal

aider is AI pair programming in your terminal Review the official repository, license, release activity, and deployment documentation before production adoption.

Best for
AI product teams
Deployment
Self-hostable
License
Apache-2.0
Activity
Updated 2 months ago
#10

Tabby

Open-source alternative to Claude Code

AI & Machine LearningLicense not declaredSelf-hostedAI-native

Self-hosted AI coding assistant

Self-hosted AI coding assistant Review the official repository, license, release activity, and deployment documentation before production adoption.

Best for
AI product teams
Deployment
Self-hostable
License
License not declared
Activity
Updated 16 days ago

Key capabilities

#11

codebase-memory-mcp

Open-source alternative to Claude Code

High-performance code intelligence MCP server. Indexes codebases into a persistent knowledge graph — average repo in milliseconds. 158 languages, sub-ms queries, 99% fewer tokens. Single static binary, zero dependencies.

High-performance code intelligence MCP server. Indexes codebases into a persistent knowledge graph — average repo in milliseconds. 158 languages, sub-ms queries, 99% fewer tokens.

Best for
Data teams
Deployment
Inspectable source
License
MIT
Activity
Updated 45 hours ago
#12

Kilo

Open-source alternative to Claude Code

Kilo is the all-in-one agentic engineering platform. Build, ship, and iterate faster with the most popular open source coding agent.

Kilo is the all-in-one agentic engineering platform. Build, ship, and iterate faster with the most popular open source coding agent. Review the official repository, license, releas

Best for
AI product teams
Deployment
Inspectable source
License
MIT
Activity
Updated 26 hours ago

Key capabilities

#13

Orca

Open-source alternative to Claude Code

Orca is the ADE for working with a fleet of parallel agents. Run any coding agent with your own subscription. Available on desktop and mobile.

Orca is the ADE for working with a fleet of parallel agents. Run any coding agent with your own subscription. Available on desktop and mobile. Review the official repository, licen

Best for
AI product teams
Deployment
Inspectable source
License
MIT
Activity
Updated 26 hours ago
#14

Plandex

Open-source alternative to Claude Code

Open source AI coding agent. Designed for large projects and real world tasks.

Open source AI coding agent. Designed for large projects and real world tasks. Review the official repository, license, release activity, and deployment documentation before produc

Best for
AI product teams
Deployment
Inspectable source
License
MIT
Activity
Updated 10 months ago

Key capabilities

#16

Forgecode

Open-source alternative to Claude Code

AI enabled pair programmer for Claude, GPT, O Series, Grok, Deepseek, Gemini and 300+ models

AI enabled pair programmer for Claude, GPT, O Series, Grok, Deepseek, Gemini and 300+ models Review the official repository, license, release activity, and deployment documentation

Best for
AI product teams
Deployment
Inspectable source
License
Apache-2.0
Activity
Updated 26 hours ago
#18

PearAI

Open-source alternative to Claude Code

AI & Machine LearningLicense not declaredAI-native

Master Repo For PearAI

Master Repo For PearAI Review the official repository, license, release activity, and deployment documentation before production adoption.

Best for
AI product teams
Deployment
Inspectable source
License
License not declared
Activity
Updated 28 days ago

Key capabilities

#19

Cody

Open-source alternative to Claude Code

Cody for Visual Studio - an AI code assistant that uses advanced search and codebase context to help you write and fix code.

Cody for Visual Studio - an AI code assistant that uses advanced search and codebase context to help you write and fix code. Review the official repository, license, release activi

Best for
AI product teams
Deployment
Inspectable source
License
APACHE-2
Activity
Updated Jul 12, 2026
How to choose a Claude Code alternative
01

Map must-have capabilitiesList the workflows in Claude Code you cannot drop during migration.

02

Verify the licenseConfirm it fits your use, distribution, and compliance model. Browse license briefs.

03

Run a proof of conceptTest real data, integrations, clients, and failure modes. Use Compare for side-by-side checks.

04

Plan ownershipAssess upgrades, backups, support, and an exit path. Read when self-hosting is worth it.

Frequently asked questions about Claude Code alternatives

What open-source tools are similar to Claude Code?

Cline, OpenHands, Continue.dev, Goose, Aider-style CLI agents, and OpenAI’s open Codex CLI overlap depending on whether you want IDE chat, terminal agents, or autonomous PR workflows.

Are there open-source Claude Code plugins?

Prefer MCP servers for git, filesystem, docs, and repo memory. Awesome [MCP Servers](/projects/awesome-mcp-servers) is the discovery hub; pair servers with Cline, Goose, Continue, or similar clients.

Do I need the same model as Claude?

No. Many FOSS agents are model-agnostic. Quality varies by model, tooling permissions, and repository indexing—not just the UI shell.

Claude Code vs Cursor vs Codex?

Claude Code and Codex are agent/CLI oriented; Cursor is an AI editor. Many teams shortlist one IDE agent and one terminal agent, then standardize MCP tools across both.

Browse and filter the catalog

Narrow the same alternatives by search, license, tags, or self-hosting signals when you need a tighter shortlist.

The open source coding agent.

FreePricingFree and open sourceFree190.7K24.3K7 minutes ago

A collection of MCP servers.

FreePricingFree and open sourceFree91.5K13.7K9 minutes ago
License not declared

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.

FreePricingFree and open sourceFree87K9.5K27 hours ago
License not declared

🙌 OpenHands: AI-Driven Development

FreePricingFree and open sourceFree80.9K10.3K27 hours ago
MIT

AI agent toolkit: unified LLM API, agent loop, TUI, coding agent CLI

FreePricingFree and open sourceFree71.4K8.8K27 hours ago
Apache-2.0

Autonomous coding agent as an SDK, IDE extension, or CLI assistant.

FreePricingFree and open sourceFree64.7K6.9K26 hours ago
Apache-2.0

an open source, extensible AI agent that goes beyond code suggestions - install, execute, edit, and test with any LLM

FreePricingFree and open sourceFree51.2K5.7K26 hours ago
Apache-2.0

aider is AI pair programming in your terminal

FreePricingFree and open sourceFree47.4K4.7K2 months ago
Apache-2.0

open-source coding agent

FreePricingFree and open sourceFree34.9K5.1K34 hours ago
License not declared

Self-hosted AI coding assistant

FreePricingFree and open sourceFree33.7K1.8K16 days ago

High-performance code intelligence MCP server. Indexes codebases into a persistent knowledge graph — average repo in milliseconds. 158 languages, sub-ms queries, 99% fewer tokens. Single static binary, zero dependencies.

FreePricingFree and open sourceFree31.8K2.5K45 hours ago
MIT

Kilo is the all-in-one agentic engineering platform. Build, ship, and iterate faster with the most popular open source coding agent.

FreePricingFree and open sourceFree26.2K2.9K26 hours ago
Showing 12 of 19