The most popular open-source alternative to Claude Code is Hermes Agent, with 266.6k GitHub stars.
Other open-source alternatives to Claude Code are OpenCode, Open Interpreter, Qwen Code and Grok Build (6 more below).
Most Claude Code alternatives here are AI Assisted Coding tools, some are AI Development Platforms.
The first 3 say in their own README or website that they can replace Claude Code (the quote is shown under each one); the other 8 do the same job, shown with their own description.
Stars and activity updated 27 November 2026.
Questions about Claude Code alternatives
Is there an open-source alternative to Claude Code?
Yes. 11 open-source projects can replace Claude Code, for example Hermes Agent, OpenCode and Open Interpreter. 3 of them say so in their own documentation; the other 8 do the same job.
What is the best open-source alternative to Claude Code?
Hermes Agent (266.6k GitHub stars) is the most popular open-source alternative to Claude Code on GitHub. OpenCode has the most recent code changes. To run it on your own server, look at SwarmClaw (self-hostable). The best choice depends on your needs: compare them side by side, for example OpenCode vs Open Interpreter.
Are the open-source alternatives to Claude Code free?
All of the 11 projects listed here are free to use under an open-source license, with no license fee: all permissive (such as MIT). Running software on your own server still costs hosting and upkeep, and many projects also sell a hosted version.