Alternatives to Claude Code, and the harness question.
Two different questions get asked as one: which agent, and what runs around it.
The direct alternatives are other terminal coding agents: OpenAI's Codex CLI, Cursor CLI, OpenCode, Cline and Google's Gemini CLI, plus OpenHands as a broader agent platform. They differ on model choice, licence, isolation and free allowance rather than on the basic shape. There is also a second axis people miss: a harness is not a competitor to these but a layer that drives them, so choosing a harness and choosing an agent are separate decisions and you can change one without the other.
The open-source options
Cline is Apache 2.0 and runs as an IDE extension, a CLI and an SDK, bring-your-own-key across every major provider including local Ollama. OpenCode is open source, provider-agnostic and terminal-first. Gemini CLI is Apache 2.0 with a free tier of 1,000 requests a day on a personal Google account, which is the most generous free allowance in the group. OpenHands is an open-source agent platform with a GUI, a CLI, an SDK and a hosted cloud.
If model freedom is the reason
Claude Code runs Anthropic models. If you want to choose the model, Cline, OpenCode and any harness pointed at OpenRouter or a local endpoint will do it, and local Ollama models mean nothing leaves your machine at all. This is the most common reason people look, and it is well served.
The axis nobody mentions
A harness sits around an agent and supplies what the agent does not: approval tiers, diff review, isolation, and in Lucid Train's case an architecture diagram that becomes an implementation specification. Because Lucid Train can spawn Claude Code, Codex, Cursor CLI or OpenCode as its engine, moving to it does not mean leaving Claude Code. That reframes the question from replacement to arrangement.
What no alternative replaces
Fairly: Claude Code's tooling depth, its hooks system, skills, subagents and plugin ecosystem are the most developed in the field, and nothing on this page reproduces all of it. If those are what you use daily, the honest answer is that the alternatives are alternatives to the agent loop, not to that ecosystem.
Where Lucid Train sits
Lucid Train is one of the options below rather than the conclusion. It is a desktop application that generates architecture diagrams from a codebase and hands them to a coding agent, it has no browser version, no real-time collaboration and no share links, and for several of the needs on this page it is the wrong answer.
When this was checked
Facts here were checked against each vendor's own site on 22 August 2026. Pricing and features change without notice, so verify anything you are about to decide on.
The field
| Tool | Licence | Model choice |
|---|---|---|
| Codex CLI | OpenAI's own | OpenAI models |
| Cursor CLI | Cursor's own | Cursor's selection |
| OpenCode | Open source | Provider-agnostic |
| Cline | Apache 2.0 | Bring your own key |
| Gemini CLI | Apache 2.0 | Gemini models |
| OpenHands | Open source | Configurable |
| Lucid Train | CLI open source; app paid | Any, or drive another CLI |
Questions
Related
- draw.io AlternativesThe right replacement depends entirely on which of draw.io's properties you are trying to escape.
- Eraser AlternativesEraser's bet is diagram-as-code with a visual editor on top. The alternatives all disagree about a different part of that.
- Structurizr AlternativesThe question is whether you want to keep a model. Everything else follows from that.
- Mermaid AlternativesAlmost everyone leaving Mermaid is leaving because of how the diagram looks, not what it can express.
Last updated