> /v1/alternatives/claude-code
Open source alternatives to Claude Code[008]
Claude Code is Anthropic's terminal coding agent that reads, edits and runs code in your repository from the command line. Below are 8 self-hostable open source alternatives, ranked by GitHub popularity.
opencode
Open source terminal coding agent that works with any LLM provider, from the SST team.
★ STARS
190.0k
⑂ FORKS
24.1k
Zed
Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
★ STARS
82.2k
⑂ FORKS
8.3k
OpenHands
AI-Driven Development
★ STARS
72.9k
⑂ FORKS
9.2k
Cline
Autonomous coding agent right in your IDE, capable of creating/editing files, executing commands, using the browser, and more with your permission every step of the way.
★ STARS
61.5k
⑂ FORKS
6.4k
Aider
Aider is AI pair programming in your terminal
★ STARS
44.5k
⑂ FORKS
4.4k
Tabby
Self-hosted AI coding assistant
★ STARS
33.5k
⑂ FORKS
1.7k
kilocode
Kilo is the all-in-one agentic engineering platform. Build, ship, and iterate faster with the most popular open source coding agent.
★ STARS
19.0k
⑂ FORKS
2.5k
t3-code
Advanced AI coding assistant that enhances development workflow with intelligent code suggestions, automated debugging, and seamless integration.
★ STARS
11.1k
⑂ FORKS
2.1k
// EDITOR'S TAKE
opencode is the closest like-for-like terminal agent and works with any model provider rather than a single vendor's. Aider is the more predictable choice for careful, git-committed edits to existing repositories, while OpenHands and Cline aim at longer autonomous runs, OpenHands in a sandboxed container and Cline inside your editor.
// FREQUENTLY ASKED
What is the best open source Claude Code alternative?
opencode is the most popular open source Claude Code alternative by GitHub stars (190,000 stars). The other 7 options are ranked above.
Are these Claude Code alternatives self-hostable?
Yes — every project listed here is open source and runs on your own infrastructure. Click into a project to see its license, stars, language, and current health status.
Are they free?
All projects shown are free and open source. Check each project's license page for the terms — most are MIT, Apache 2.0, or AGPL.
// PART OF THESE COLLECTIONS