Claude Code alternatives: 8 open-source picks
Claude Code costs $20/mo — $240 a year. These 8 alternatives replace it for $0, led by OpenCode, DeepSeek Harness and Gemini CLI. All 8 are open source. License, stars and last commit checked by hand on 2026-08-29. No trials, no crippled tiers.
Terminal-native open-source coding agent with a polished TUI and 75+ model providers
licenseMIT
runsyour server
setupnot verified by us yet — check the repo README
facts verified 2026-08-29
Official DeepSeek agent harness where models, tools, sessions, permissions, and UIs are plugins — a lightweight runtime for DeepSeek apps.
licenseMIT
runsyour server
setupnot verified by us yet — check the repo README
facts verified 2026-08-29
Google's open-source terminal AI agent with a generous free Gemini tier
licenseApache-2.0
runsyour server
setupnot verified by us yet — check the repo README
facts verified 2026-08-29
OpenAI's open-source lightweight coding agent that runs in your terminal
licenseApache-2.0
runsyour server
setupnot verified by us yet — check the repo README
facts verified 2026-08-29
Charm's glamorous terminal coding agent — any model, LSP-aware, sessions per project, beautiful TUI.
licenseFSL-1.1-MIT
runsyour server
setupnot verified by us yet — check the repo README
facts verified 2026-08-29
Alibaba's terminal coding agent tuned for Qwen3-Coder, with a generous free tier and open weights.
licenseApache-2.0
runsyour server
setupnot verified by us yet — check the repo README
facts verified 2026-08-29
Never stop coding. Free MIT AI gateway: one endpoint, 290+ providers (90+ free), 500+ models — Kimi, Claude, GPT, OpenAI, Gemini, GLM, DeepSeek, MiniMax. Works with Claude Code, Codex, Cursor, OpenCode, Cline & Copilot.
licenseMIT
runsyour server
setupnot verified by us yet — check the repo README
facts verified 2026-08-29
Autonomous AI software engineer that writes code, runs commands, and browses the web in a sandbox
licenseMIT
runsyour server
setupnot verified by us yet — check the repo README
facts verified 2026-08-29
What each one is, in full: OpenCode · DeepSeek Harness · Gemini CLI · Codex CLI · Crush · Qwen Code
last updated 2026-08-29 · no votes, no pay-to-list · just what's real
how to choose a Claude Code alternative
Easiest to get running
OpenCode — a one-click install, no server to maintain.
Most proven
OpenCode, with 192,000 GitHub stars — the largest community of the 8, which usually means more answers when something breaks.
what you give up by leaving Claude Code
- frontier model quality on long agentic tasks
- a harness tuned against that specific model
- not having to run or pay for inference yourself
None of the picks above covers all of it. The full verdict says which gaps matter.
Claude Code alternatives at a glance
| tool | license | running it | platforms | stars | active |
|---|---|---|---|---|---|
| OpenCode | MIT | one-click install | self-hosted, web | 192,000 | 2026-08 |
| DeepSeek Harness | MIT | docker to self-host | self-hosted, web | 175,000 | 2026-08 |
| Gemini CLI | Apache-2.0 | one-click install | self-hosted, web | 106,000 | 2026-08 |
| Codex CLI | Apache-2.0 | one-click install | self-hosted, web | 103,000 | 2026-08 |
| Crush | FSL-1.1-MIT | one-click install | self-hosted, web | 20,000 | 2026-08 |
| Qwen Code | Apache-2.0 | one-click install | self-hosted, web | 18,000 | 2026-08 |
| OmniRoute | MIT | docker to self-host | self-hosted, web | 394 | 2026-08 |
| OpenHands | MIT | docker to self-host | self-hosted, web | 83,000 | 2026-08 |
why people still pay for Claude Code
Because the agent is only as good as the model driving it, and the best models are not open weights. If none of that applies to you, any pick above saves $240 a year.
questions about switching from Claude Code
Is there an open-source alternative to Claude Code?
Yes: OpenCode, DeepSeek Harness, Gemini CLI and 5 more. Every tool on this page is open source: no trials, no crippled tiers.
Can open source really replace Claude Code?
Our verdict is YES. OpenCode (192k stars), DeepSeek Harness (175k stars), Gemini CLI (106k stars) are mature open-source replacements for Claude Code — self-host in one command and stop paying $20/mo. The full verdict, and what you give up by switching, is at caniopensourceit.online/claude-code.
What is the easiest open-source Claude Code alternative to set up?
OpenCode — a one-click install, no server to maintain.
What is the most popular open-source Claude Code alternative?
By GitHub stars, OpenCode (192,000). DeepSeek Harness is next with 175,000.