Open-source alternatives to Claude Code

3 free, open-source alternatives with 215.8K total GitHub stars. The best open-source alternative to Claude Code is OpenCode, with 167.3K GitHub stars.

Updated July 2026Stats synced from GitHub

Compare Claude Code alternatives

ToolStarsForksLicenseSelf-hosted
OpenCode167.3K19.9KMITYes
Void28.8K2.5KApache-2.0Yes
Kilo19.7K2.6KMITNo

Claude Code is Anthropic's proprietary terminal-based coding agent — it reads a codebase, edits files, and runs commands autonomously, but it's closed-source and tied to Anthropic's own models and billing.

If you want the same terminal-agent workflow without being locked into one model provider, OpenCode is the closest match — it's open source and works with any LLM provider. Void and Kilo take a different form factor, living inside a VS Code-based editor rather than the terminal, which is worth considering if you'd rather have the agent embedded in your IDE.

FAQ

Is there a free, open-source alternative to Claude Code?

Yes. OpenCode is open source and lets you use any LLM provider instead of being locked to one vendor.

What's the best open-source alternative to Claude Code?

OpenCode is the closest match for a terminal-first, provider-agnostic coding agent. Void and Kilo are better picks if you prefer the agent built into a VS Code-style editor instead of the terminal.

What are the top open-source alternatives to Claude Code?

Browse all open-source alternatives to Claude Code above, or explore the full Developer Tools category for more options.

Explore more alternatives