qmetrics.net

Best Open-Source Alternatives to Claude Code

Claude Code by Anthropic is a commercial product. These open-source projects say they can replace it.

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.

Sort:Most starsRecentA–Z

Hermes Agent

Self-improving open-source AI agent with memory, skills and messaging gateway

Open-source AI agent from Nous Research that keeps persistent memory, creates skills from experience, and runs from a terminal, desktop app or messaging platforms with any model provider.

★ 266.6k⟳ todayMIT
Open Source Alternative to:Anthropic ClaudeChatGPTClaude Code+4
“Hermes Agent is a Claude Code alternative that”

CodeAF

Multi-project coding harness for open-weight models

CodeAF is a Go-based coding harness that runs many agent tasks from one window across projects on your machine, using open and commercial model providers with built-in build, review, and security specialists.

★ 843⟳ todayApache-2.0
AI Assisted CodingDesktop/CLI app
Open Source Alternative to:Claude Code
“CodeAF is the best open-source alternative to Claude Code if you want many tasks on any model.”

SwarmClaw

Self-hosted AI agent runtime and multi-agent orchestration platform

SwarmClaw runs autonomous agent swarms with memory, MCP tools, schedules, and delegation across many LLM providers. Install via Docker, npm, or desktop builds.

★ 715⟳ 5 months agoMIT
Open Source Alternative to:Claude CodeRelevance AI
“Open-source agent swarms with durable agent memory, MCP tools, skills, delegation, schedules, and 23+ LLM providers — a practical Claude Code and LangChain alternative.”

Also does the same job as Claude Code

These projects don't call themselves a Claude Code alternative, but two independent checks of their own description found they do the same main job.

OpenCode

Open source coding agent for any model

OpenCode is an open source coding agent for desktop, terminal, mobile, or SDK use with many LLM providers and built-in development and read-only planning agents

★ 229.6k⟳ todayMIT
AI Assisted CodingDesktop/CLI app
Open Source Alternative to:Claude CodeCodiumateCursor+2
“OpenCode is the open source coding agent that works where you do. Connect AI models from 200+ providers, including Claude, GPT and Gemini, or start free.”

Open Interpreter

Terminal coding agent tuned for low-cost open models

A terminal-based coding agent aimed at inexpensive and open-weight language models. It reads and edits project files, runs sandboxed commands, and works with many model providers.

★ 69k⟳ todayApache-2.0
AI Assisted CodingDesktop/CLI app
Open Source Alternative to:Claude Code
“An open-source coding agent built for low-cost and open-weight models.”

Qwen Code

Open-source agentic AI coding tool for terminal and beyond

Qwen Code is an agentic coding assistant you run from a terminal, editor, desktop app, browser shell, or chat channels. It edits files, runs commands, and connects to multiple model APIs and MCP servers.

★ 31k⟳ todayApache-2.0
AI Assisted CodingDesktop/CLI app
Open Source Alternative to:Claude Code
“The open-source AI coding agent for your terminal, editor, desktop, browser, and chat.”

Grok Build

Fullscreen terminal AI coding agent with mouse support

Grok Build is SpaceXAI's terminal-based AI coding agent. It runs as a full-screen TUI that edits files, runs shell commands, and can work headlessly or via the Agent Client Protocol.

★ 27.9k⟳ 1 month agoApache-2.0
AI Assisted CodingDesktop/CLI app
Open Source Alternative to:Claude Code
“Grok Build is SpaceXAI's terminal-based AI coding agent.”

jcode

Rust terminal harness for parallel AI coding agents

jcode is a terminal coding agent written in Rust that aims to run many concurrent sessions with low RAM and fast startup. It supports OAuth providers, swarms, and self-modifying development workflows.

★ 22.1k⟳ yesterdayMIT
AI Assisted CodingDesktop/CLI app
Open Source Alternative to:Claude Code
“jcode is an open-source AI coding agent for your terminal, written in Rust. Run agent swarms and background tasks with low memory use. Install with one command.”

MiMo Code

Terminal-native AI coding assistant with persistent project memory

MiMo Code is a terminal-native AI coding assistant that reads and writes code, runs commands, manages Git, and keeps project context across sessions. It connects to mainstream LLM provider APIs.

★ 13.8k⟳ todayMIT
AI Assisted CodingDesktop/CLI app
Open Source Alternative to:Claude Code
“MiMoCode is a terminal-native AI coding assistant.”

octomind

Open-source Rust coding agent harness for any LLM

Octomind runs repository tools through MCP with TOML guardrails, supporting interactive CLI, CI, daemons, WebSocket and ACP editor sessions.

★ 659⟳ 2 days agoApache-2.0
Open Source Alternative to:Claude Code
“Open-source AI coding agent and agent runtime: one binary, any model, MCP-native. Runs in terminal, CI, or as a daemon.”

agentty

Terminal agent harness as one static binary

agentty is a terminal harness around coding agents. It starts quickly, runs shell tools in an OS sandbox, and supports many subscription or API models plus local Ollama.

★ 561⟳ todayMIT
AI Assisted CodingDesktop/CLI app
Open Source Alternative to:Claude Code
“AI pair programming in your terminal — one static binary, sub-ms startup, any model”

Compare Claude Code alternatives

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.

Related commercial products

Claude Cowork

Anthropic

15 open-source alternatives

ChatGPT

OpenAI

12 open-source alternatives

Anthropic Claude

Anthropic

11 open-source alternatives

Gemini

Google

10 open-source alternatives

Cursor

Anysphere

9 open-source alternatives

Relevance AI

Relevance AI

9 open-source alternatives