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
#1
OpenCode

OpenCode

Open-source, provider-agnostic AI coding agent for terminal, desktop, and IDE.

MIT-licensed alternative to Claude Code. Switch between 75+ LLM providers, run Build/Plan agents, and keep code local — terminal, desktop, or IDE extension.

aicoding-agentterminal
167.3K19.9KMIT
vs Claude Code
Read more
#2
Void

Void

Open-source Cursor alternative — VS Code fork with direct LLM access and no proprietary backend.

Apache-2.0 AI code editor with Agent/Gather modes, Tab autocomplete, and Ollama support. Your code goes straight to the provider — not through Void servers.

privacyaicode-editor
28.8K2.5KApache-2.0
vs Cursor
Read more
#3
Kilo

Kilo

Open-source agentic engineering platform — 500+ models in VS Code, JetBrains, and CLI.

MIT-licensed alternative to Cursor. Architect, Coder, and Debugger modes with MCP marketplace, browser automation, and optional API keys via Kilo Gateway.

aicode-editorvscode-fork
19.7K2.6KMIT
vs Cursor
Read more

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