AI coding
Free and open-source Claude Code alternatives
Terminal coding agent that works with many models.
Open source (MIT) ·★ 212k GitHub stars · last commit 2026-10-07 · details
AI pair programming in the terminal, git-aware.
Open source (Apache-2.0) ·★ 49k GitHub stars · last commit 2026-05-22 · details
Google's open-source terminal agent, with a free usage tier.
Open source (Apache-2.0) ·★ 107k GitHub stars · last commit 2026-10-07 · details
Want paid options too? See all Claude Code alternatives or the full free alternatives list.
FAQ
Is there a free alternative to Claude Code?+
Yes. OpenCode, Aider and Gemini CLI do the same job for free; OpenCode, Aider and Gemini CLI are open source.
What is the best open-source alternative to Claude Code?+
OpenCode is the most starred on GitHub (212k stars). Terminal coding agent that works with many models.
Open source: OSI-approved license. Free to self-host: the code is public and free to run yourself, with limits in the license.

