Open-source Claude Code alternatives: coding agents (2026)
Our pick
Start with Qwen Code if you want a terminal coding agent that is open source and not tied to one model. It works with OpenAI, Anthropic, Gemini and Qwen APIs, and with local models through Ollama or vLLM. It installs with npm install -g @qwen-code/qwen-code@latest and needs Node.js 22 or newer. It is Apache-2.0 licensed. The table shows its last commit and latest release, and how the other agents compare.
Best for
- A terminal agent that works with many model providers
QwenLM/qwen-codeAn open-source coding agent for your terminal that supports OpenAI, Anthropic, Gemini and Qwen APIs, any third-party provider, and local models through Ollama or vLLM. It also has IDE plugins and a desktop app.
- An agent for more than code, with a desktop app
aaif-goose/gooseA general-purpose agent for coding, research, writing, automation and data analysis, with a desktop app and a CLI. It connects tools through MCP and can load local models directly or use over 85 providers.
- A Rust terminal agent that works with any model
codewhale-hq/CodewhaleA coding agent for your terminal that works with any model and can split one task across several agents. Install with curl -fsSL https://codewhale.net/install.sh | sh. It asks before each shell command that is not read-only.
- Local models with your code kept on your machine
Nano-Collective/nanocoderA terminal coding agent from a community collective. It runs local models through Ollama or any OpenAI-compatible API. Install with npm install -g @nanocollective/nanocoder.
- A self-hosted control center for agents
OpenHands/OpenHandsRuns the OpenHands agent, or third-party agents such as Claude Code, Codex and Gemini CLI, on your laptop, in Docker, on a VM or in your own infrastructure.
- An assistant inside VS Code with local models
twinnydotdev/twinnyA free, MIT-licensed VS Code extension with code completion, inline edits, chat and an experimental agent mode. It runs against a model server you choose, such as Ollama, LM Studio or llama.cpp.
The repos compared
Checked on Nov 25, 2026: the oldest day any repo in the table was last read from GitHub.
| Repo | Stars | Last commit | Latest release | Licence | Needs |
|---|---|---|---|---|---|
| QwenLM / qwen-code A coding agent that runs in your terminal. | 31,075 GitHub (opens in new tab) | Active Dec 2, 2026 | sdk-typescript-v0.1.40, Nov 28, 2026 | Apache-2.0 | |
| aaif-goose / goose An extensible AI agent that installs, runs, edits and tests code. | 57,214 GitHub (opens in new tab) | Active Dec 1, 2026 | v1.61.1, Nov 26, 2026 | Apache-2.0 | |
| codewhale-hq / Codewhale A terminal coding agent written in Rust that works with any model. | 41,219 GitHub (opens in new tab) | Active Dec 1, 2026 | v0.10.4, Nov 23, 2026 | MIT | |
| Nano-Collective / nanocoder A terminal coding agent built by a community collective. | 2,594 GitHub (opens in new tab) | Active Dec 1, 2026 | v1.32.0, Nov 4, 2026 | Custom | |
| can1357 / oh-my-pi A coding agent with the IDE wired in. | 40,323 GitHub (opens in new tab) | Active Dec 2, 2026 | v19.4.0, Nov 30, 2026 | MIT | |
| OpenHands / OpenHands An AI agent for software development. | 94,706 GitHub (opens in new tab) | Active Dec 2, 2026 | v1.47.0, Nov 29, 2026 | MIT | |
| google-gemini / gemini-cli An AI agent that brings Gemini into your terminal. | 109,501 GitHub (opens in new tab) | Active Dec 1, 2026 | v0.71.1, Nov 24, 2026 | Apache-2.0 | |
| twinnydotdev / twinny A coding assistant for VS Code: agent, code completion, chat, edits and reviews. | 3,712 GitHub (opens in new tab) | Active Nov 30, 2026 | v4.0.20, Sep 22, 2026 | MIT | |
| anomalyco / opencode An open-source AI coding agent. | 230,496 GitHub (opens in new tab) | Active Dec 2, 2026 | v1.19.6, Nov 17, 2026 | MIT | |
| cline / cline A coding agent that runs in your IDE, terminal or desktop app, and as an SDK. | 72,031 GitHub (opens in new tab) | Active Dec 1, 2026 | v4.1.27, Nov 21, 2026 | Apache-2.0 | |
| openai / codex A coding agent from OpenAI that runs locally on your computer, in the terminal. | 137,017 GitHub (opens in new tab) | Active Dec 2, 2026 | rust-v0.172.0, Nov 24, 2026 | Apache-2.0 | |
| Aider-AI / aider Lets you pair program with LLMs in your terminal, on a new or existing codebase. | 50,339 GitHub (opens in new tab) | Inactive May 22, 2026 | v0.86.0, Aug 9, 2025 | Apache-2.0 |
Install commands
Copied from each repo. Read its setup steps before you run anything.
QwenLM/qwen-code
curl -fsSL https://qwen-code-assets.oss-cn-hangzhou.aliyuncs.com/installation/install-qwen-standalone.sh | bash codewhale-hq/Codewhale
winget install --id HunterBown.CodeWhale --exact --source winget
# Windows x64
npm install -g codewhale
# wraps the same release binaries
cargo install codewhale-cli --locked
# builds from source; can trail GitHub ReleasesQuestions
What is an open-source alternative to Claude Code?
Open-source coding agents such as Qwen Code, goose, Codewhale and nanocoder run in your terminal, like Claude Code does. You choose the model provider. oh-my-pi supports 60 or more providers, and OpenHands can also run other agents.
Can these agents use local models?
Yes. Qwen Code works with local models through Ollama or vLLM. nanocoder works with Ollama. goose can load local models directly, without a separate model server. twinny runs against Ollama, LM Studio or llama.cpp. Codewhale offers a local model when an Ollama server answers.
Are these alternatives free?
Each one publishes its code, and the Licence column shows each licence. Using one can still cost money or need an account. Gemini CLI is for organisations with Gemini Code Assist Standard or Enterprise licences or Code Assist for GitHub, and twinny has a paid team gateway after five developers. A hosted model API usually charges for use.
Can I use Claude models in these agents?
Several connect to Anthropic. Qwen Code supports the Anthropic API, goose lists Anthropic among its providers, and nanocoder lists Anthropic among the APIs it works with. OpenHands can also run Claude Code as a third-party agent.
What happened to Gemini CLI as a free option?
Gemini CLI is an open-source terminal agent for Gemini Code Assist workflows on Google Cloud. Free individual access and Google AI Pro and Ultra moved to Antigravity CLI. Check the Gemini CLI project page for the current terms.
