Alternatives / Claude Code
Open-source alternatives to Claude Code
15 genuinely open-source alternatives. The projects are compared by license, workflow, self-hosting, and pricing.
Why look for a Claude Code alternative?
Claude Code is an agentic coding tool built for the terminal: it understands a codebase, modifies files, runs commands, and completes multi-step development tasks. Developers look for alternatives when they want support for multiple AI providers, local models, an inspectable open-source codebase, stronger privacy controls, IDE workflows, or self-hosted deployment.
Compare Claude Code alternatives
| Tool | Stars | License | Self-hosted | Pricing |
|---|---|---|---|---|
| OpenCode | — | MIT | Yes | Open source and free to run; model-provider costs may apply. |
| Pi | — | MIT | Yes | Open source; model-provider costs may apply. |
| OpenHands | — | MIT core | Yes | Open-source core and self-hosting available; hosted and enterprise options may be paid. |
| Zed | — | GPL-3.0-or-later / Apache-2.0 components | Yes | Open source editor; hosted AI usage may be paid. |
| Cline | — | Apache-2.0 | Yes | Open source; bring your own provider key and pay provider costs directly. |
| Aider | — | Apache-2.0 | Yes | Open source; model-provider costs may apply. |
| Grok Build | — | Apache-2.0 | Yes | Open source agent; Grok model access may require a paid provider plan. |
| Kilo | — | MIT | Yes | Open source with bring-your-own-key support; some workflows may use hosted services. |
| T3 Code | — | MIT | Yes | Open source interface; external agents and model providers may cost money. |
| Tabby | — | Apache-2.0 | Yes | Free and self-hosted; infrastructure and model costs are your responsibility. |
| Paseo | — | AGPL-3.0 | Yes | Open source and self-hosted; requires external coding agents. |
| Forgecode | — | Apache-2.0 | Yes | Open source; model-provider costs may apply. |
| Synara | — | MIT | Yes | Open source workspace; external agents and model providers may cost money. |
| Zero | — | MIT | Yes | Open source; model-provider costs may apply. |
| Jean | — | Apache-2.0 | Yes | Open source workspace; depends on external agents or subscriptions. |
Which one should you choose?
Want the closest terminal-first alternatives
OpenCode, Pi, Cline, Forgecode, Zero, and Grok Build are the closest matches to Claude Code's agentic coding workflow.
Want strong Git integration
Aider is particularly well suited to developers who want AI assistance inside an existing Git workflow.
Want a more autonomous software engineering agent
OpenHands is designed for larger multi-step development tasks where the agent can execute commands and work through problems more independently.
Prefer working inside an IDE
Cline and Kilo provide agent capabilities directly inside development environments.
Want to self-host your coding assistant
Tabby focuses on self-hosted AI coding infrastructure and stronger control over source code and data.
Want to manage several coding agents
T3 Code, Paseo, Synara, and Jean are orchestration or workspace tools for coordinating multiple coding agents.