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.

claude-code $20/mo→these $0YEScan I open-source it? the honest breakdown →🛠️ dev tools
O

OpenCode

open sourcewebself-hostedone-click install

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

D

DeepSeek Harness

open sourcewebself-hosteddocker to self-host

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

175kactive aug 2026repo ↗deepseek.com ↗
G

Gemini CLI

open sourcewebself-hostedone-click install

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

106kactive aug 2026repo ↗geminicli.com ↗
C

Codex CLI

open sourcewebself-hostedone-click install

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

103kactive aug 2026repo ↗openai.com ↗
C

Crush

open sourcewebself-hostedone-click install

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

20kactive aug 2026repo ↗charm.land ↗
Q

Qwen Code

open sourcewebself-hostedone-click install

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

O

OmniRoute

open sourcewebself-hosteddocker to self-host

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

O

OpenHands

open sourcewebself-hosteddocker to self-host

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

None of the picks above covers all of it. The full verdict says which gaps matter.

Claude Code alternatives at a glance

toollicenserunning itplatformsstarsactive
OpenCodeMITone-click installself-hosted, web192,0002026-08
DeepSeek HarnessMITdocker to self-hostself-hosted, web175,0002026-08
Gemini CLIApache-2.0one-click installself-hosted, web106,0002026-08
Codex CLIApache-2.0one-click installself-hosted, web103,0002026-08
CrushFSL-1.1-MITone-click installself-hosted, web20,0002026-08
Qwen CodeApache-2.0one-click installself-hosted, web18,0002026-08
OmniRouteMITdocker to self-hostself-hosted, web3942026-08
OpenHandsMITdocker to self-hostself-hosted, web83,0002026-08
Want the honest verdict and what you give up by switching?read the verdict →

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.