The full guide
OpenCode alternatives, step by step
OpenCode is an open-source coding agent (MIT) for the terminal, with a desktop app in beta, that runs 200+ model providers, local models included, and signs in with ChatGPT or GitHub Copilot. The alternatives as of November 2026: Claude Code, Anthropic's agent, on Claude Pro at $20; Codex CLI (Apache-2.0), in every ChatGPT plan, Free included; Kilo CLI (MIT), a fork of OpenCode with 500+ models; goose (Apache-2.0), with a desktop app; and Crush, Charm's agent, source-available under FSL. Caprock is not an agent: free and Apache-2.0, it runs OpenCode beside Claude Code and Codex in tabs and shows what each session cost.
What are the best alternatives to OpenCode?
| Tool | What it is | Price for one person | Open source | Runs on | Models |
|---|---|---|---|---|---|
| OpenCode | Open-source coding agent for the terminal, with a desktop app | Free; Go $10 a month; or your ChatGPT, Copilot or API account | Yes, MIT | macOS, Windows, Linux; the desktop app in beta | 200+ providers through Models.dev, local models included |
| Claude Code | Anthropic's coding agent, in the terminal and in editors | Claude Pro $20 a month ($17 billed yearly) or higher, or an API key; not on Free | No (“All rights reserved”) | macOS 13+, Windows 10 1809+, Linux | Claude models only, also through Bedrock, Google Cloud or Microsoft Foundry; extensions for VS Code and its forks, and JetBrains |
| Codex CLI | OpenAI's coding agent for the terminal | In every ChatGPT plan, Free ($0) and Go ($8 a month) up; or an API key | Yes, Apache-2.0 | macOS, Linux, Windows (native or WSL2) | OpenAI models |
| Kilo CLI | Kilo's terminal agent, a fork of OpenCode | Free; models at provider rates with no markup, or your own key; Kilo Pass $19 a month | Yes, MIT | macOS, Windows x64, Linux; also VS Code and JetBrains | 500+ models from 60+ providers; local models through Ollama or LM Studio |
| goose | Open-source agent with a desktop app and a CLI | Free; your API keys, or Claude, ChatGPT or Gemini subscriptions through ACP | Yes, Apache-2.0 | macOS, Linux, Windows | 15+ providers: Anthropic, OpenAI, Google, Ollama, OpenRouter, Azure, Bedrock |
| Crush | Charm's coding agent for the terminal | No price for Crush itself; Charm's Hyper provider by subscription or prepaid; or your own key | Source-available: FSL-1.1-MIT, MIT two years after each release | macOS, Linux, Windows, Android, FreeBSD, OpenBSD, NetBSD | Many providers, any OpenAI- or Anthropic-compatible API, local models |
| Caprock | Not an agent: a desktop app that runs agents in tabs and records every session | Free; optional Premium $30 a year | Yes, Apache-2.0 | macOS, Windows, Linux (x64) | Claude Code, Codex, OpenCode, Gemini CLI, Cursor's CLI, Hermes Agent, Grok Build; reads OpenCode 1 and 2 |
What OpenCode does well
Its README: “The open source AI coding agent.” Its site: “200+ LLM providers through Models.dev, including local models.”
- MIT, and “100% free to use”.
- Any provider: sign in with ChatGPT Plus or Pro or GitHub Copilot, use an API key, local models through LM Studio, vLLM or Ollama, or its own Go plan at $10 a month.
- A terminal interface, and a desktop app, in beta, on macOS, Windows and Linux.
- Integrates with “VS Code, Cursor, or any IDE that supports a terminal”.
Why people look for an OpenCode alternative
- Two lines at once: on 18 November 2026 its releases page marks v1.19.6 “Latest” while v2.3.2, of OpenCode 2, is newer.
- The desktop app is still in beta.
- Any model means you choose and pay for one: per request through its console, a subscription you already hold, or your own key.
Claude Code: Anthropic's coding agent for the terminal
Claude as the agent, on a flat Claude plan, with Anthropic's own harness. Not open source; on Claude Pro ($20 a month) or higher, or an API key. code.claude.com/docs/en/overview, code.claude.com docs (overview, setup), claude.com/pricing and the anthropics/claude-code repository, read 18 November 2026.
- “An agentic coding tool that reads your codebase, edits files, runs commands, and integrates with your development tools.”
- Pro at $20 a month, $17 billed yearly; also through Bedrock, Google Cloud or Microsoft Foundry.
- macOS 13+, Windows 10 1809+ natively or in WSL, and Linux; extensions for VS Code and JetBrains.
Limits:
- Claude models only: no other vendors and no local models in its docs.
- Not open source: LICENSE.md reads “All rights reserved”.
Codex CLI: OpenAI's open-source coding agent for the terminal
An open-source agent whose model use comes with a ChatGPT plan. Apache-2.0; included in every ChatGPT plan, Free ($0) and Go ($8 a month) up. github.com/openai/codex, github.com/openai/codex and its releases, and the Codex pricing and WSL docs on learn.chatgpt.com, read 18 November 2026.
- “A coding agent from OpenAI that runs locally on your computer.”
- “Included in your ChatGPT Free, Go, Plus, Pro, Business, Edu, or Enterprise plan”; API-key sessions are billed separately.
- macOS, Linux and Windows, natively or in WSL2; release 0.170.0 on 18 November 2026.
Limits:
- OpenAI models: no other vendors in its docs.
- OpenCode can already sign in with ChatGPT Plus or Pro, so the plan alone is not a reason to switch.
Kilo CLI: A fork of OpenCode, with Kilo's editor extensions
OpenCode's code with Kilo's model gateway, and the same agent in VS Code and JetBrains. MIT, free; models at provider rates with no markup; Kilo Pass $19 a month. github.com/Kilo-Org/kilocode, github.com/Kilo-Org/kilocode, kilo.ai and its pricing page, read 18 November 2026.
- “Kilo CLI is a fork of OpenCode, enhanced to work within the Kilo agentic engineering platform.”
- “500+ models”, with “No API keys required to start”.
- The same maker's extensions for VS Code, Cursor, Windsurf and JetBrains, and a desktop app.
Limits:
- Its README says main “is not accepting new features”; they go to the v2 branch.
- Its site says “Kilo has been acquired by Anaconda”.
goose: An open-source agent with a desktop app and a CLI
A desktop app and a CLI from one open-source project, on the subscriptions you already have. Apache-2.0, free. github.com/aaif-goose/goose, github.com/aaif-goose/goose and its releases (v1.60.1, 18 November 2026), read 18 November 2026.
- “A native desktop app for macOS, Linux, and Windows. A full CLI for terminal workflows.”
- “15+ providers”: Anthropic, OpenAI, Google, Ollama, OpenRouter, Azure, Bedrock.
- “API keys or your existing Claude, ChatGPT, or Gemini subscriptions via ACP.”
Limits:
- “A general-purpose AI agent”, not only for code.
- v1.60.0 removed chat mode.
Crush: Charm's coding agent for the terminal
A polished terminal agent on almost any system, any provider. FSL-1.1-MIT, source-available; your own key, or Charm's Hyper provider. github.com/charmbracelet/crush, github.com/charmbracelet/crush, its LICENSE.md and releases, read 18 November 2026.
- “First-class support in every terminal on macOS, Linux, Windows (PowerShell and WSL), Android, FreeBSD, OpenBSD, and NetBSD.”
- Any OpenAI- or Anthropic-compatible API, and local models such as Ollama.
- Release v0.101.0 on 12 November 2026.
Limits:
- Not open source today: the Functional Source License bars a “Competing Use” until a release turns MIT two years on.
- Hyper, its default provider, is a subscription or prepaid; its prices are not in the README.
Caprock: Desktop app for coding agents; not an agent
Keeping OpenCode and adding the others beside it, with one record of what each cost. Apache-2.0, free; optional Premium, $30 a year or $100 once. github.com/dspv/caprock, README at master (v0.182.4), “OpenCode, Codex and DeepSeek Harness”, read 18 November 2026.
- Starts OpenCode 1 or 2, whichever is installed, and Claude Code, Codex, Gemini CLI and Cursor's CLI, in real terminal tabs per project and per git worktree.
- Reads OpenCode's own database, read-only, sessions from before you installed it included, and passes through the cost OpenCode computed.
- One projects list, history and cost across every agent on the machine, each row with its agent's own mark.
- macOS, Windows and Linux; no account, no telemetry.
Limits:
- Not an agent and no models of its own: it runs and records the agents you have.
- The Windows installer is not code-signed yet: SmartScreen asks for Run anyway once.
- Every dollar Caprock shows is an estimate at API list price, as Claude Code's own /usage is: not a bill, and on a flat plan not money saved.
Also named in "OpenCode alternatives" lists
- Aider — Apache-2.0, pair programming with almost any model; its latest release, v0.86.0, is from 9 August 2025.
- Gemini CLI — Apache-2.0; free individual access moved to Antigravity CLI on 18 June 2026.
- Cline — an open-source agent that started in VS Code and now has a CLI: Cline alternatives.
Which OpenCode alternative to pick
Pick by what you need besides OpenCode: a vendor's own agent, a plan that includes the model, or a different licence. Several can run side by side.
- Stay on OpenCode — any model, open source, on your own accounts.
- Claude Code — claude on a flat Claude plan.
- Codex CLI — open source, with the model in your ChatGPT plan.
- Kilo CLI — openCode's code with an editor extension and a gateway.
- goose — a desktop app and a CLI on your Claude, ChatGPT or Gemini subscription.
- Crush — a terminal agent on almost any system.
- Caprock — openCode, Claude Code and Codex side by side, with cost per repository.
The two most compared, row by row: OpenCode vs Claude Code and OpenCode vs Codex. What OpenCode's own plans cost: OpenCode pricing.
Questions people ask
- What are the best alternatives to OpenCode?
- As of November 2026: Claude Code, Anthropic's agent, on Claude Pro at $20 a month; Codex CLI (Apache-2.0), included in every ChatGPT plan, Free too; Kilo CLI (MIT), a fork of OpenCode with 500+ models; goose (Apache-2.0), a desktop app and CLI; and Crush, Charm's terminal agent, source-available under FSL. Caprock is not an agent: it runs OpenCode beside Claude Code and Codex and shows what each session cost.
- Is OpenCode free?
- Yes: MIT and “100% free to use”. The model is paid separately: through a ChatGPT Plus or Pro or GitHub Copilot sign-in, your own API key, per-request credits, or OpenCode Go at $10 a month.
- Is Kilo CLI the same as OpenCode?
- It is a fork: “Kilo CLI is a fork of OpenCode, enhanced to work within the Kilo agentic engineering platform.” It is MIT-licensed, with 500+ models at provider rates.
- Can I use OpenCode and Claude Code together?
- Yes: they are separate programs. Caprock, free and Apache-2.0, starts both in tabs, reads OpenCode's database and Claude Code's transcripts, and adds up their cost per repository.
Sources
- OpenCode — "MIT licensed", "200+ LLM providers through Models.dev, including local models", "Log in with ChatGPT Plus or Pro or GitHub Copilot", read 18 November 2026
- OpenCode docs — Go: $10/month, Go Plus $40/month, read 18 November 2026
- OpenCode — download: desktop app (beta) on macOS, Windows and Linux, read 18 November 2026
- OpenCode on GitHub — "The open source AI coding agent", MIT; release v2.3.2 (18 November 2026), read 18 November 2026
- Claude Code docs — setup: macOS 13.0+, Windows 10 1809+, Ubuntu 20.04+, Debian 10+; "The free claude.ai plan does not include Claude Code access", read 18 November 2026
- Claude pricing — Pro "$17 per month with annual subscription discount", "$20 if billed monthly", read 18 November 2026
- Claude Code on GitHub — LICENSE.md: "© Anthropic PBC. All rights reserved."; release v2.1.327 (17 November 2026), read 18 November 2026
- Claude Code docs — VS Code: the extension "also installs in forks like Devin Desktop or Kiro", and in Cursor, read 18 November 2026
- Claude Code docs — JetBrains plugin, read 18 November 2026
- Codex CLI on GitHub — "licensed under the Apache-2.0 License"; release 0.170.0 (18 November 2026), read 18 November 2026
- ChatGPT docs — Codex pricing: "included in your ChatGPT Free, Go, Plus, Pro, Business, Edu, or Enterprise plan", read 18 November 2026
- ChatGPT docs — Codex on WSL2, read 18 November 2026
- goose on GitHub — "A native desktop app for macOS, Linux, and Windows. A full CLI"; "15+ providers"; Apache-2.0; release v1.60.1 (18 November 2026), read 18 November 2026
- Crush on GitHub — README: every terminal on macOS, Linux, Windows (PowerShell and WSL), Android and the BSDs; release v0.101.0 (12 November 2026), read 18 November 2026
- Crush — LICENSE.md: Functional Source License, Version 1.1, MIT Future License, read 18 November 2026
- Kilo Code on GitHub — README: MIT; "Kilo CLI is a fork of OpenCode"; release v7.8.27 (5 November 2026), read 18 November 2026
- Kilo — pricing: Individual "Free", "Usage is billed separately"; Kilo Pass $19/mo; Teams $15/user/month; "500+ models across 60+ providers", read 18 November 2026
- Kilo — home: VS Code, "Also Cursor, Windsurf and any Open VSX editor", JetBrains, the CLI, the desktop app; "Kilo has been acquired by Anaconda", read 18 November 2026
- OpenCode docs — IDE: "integrates with VS Code, Cursor, or any IDE that supports a terminal", read 18 November 2026
- OpenCode on GitHub — releases: v1.19.6 marked Latest (17 November 2026), v2.3.2 (18 November 2026), read 18 November 2026
- Aider on GitHub — Apache-2.0, release v0.86.0 (9 August 2025), the latest, read 18 November 2026
- Gemini CLI on GitHub — Apache-2.0; "Free individual access and Google AI Pro / Ultra (Google One) moved to Antigravity CLI on June 18, 2026", read 18 November 2026
- Caprock README — OpenCode, Codex and DeepSeek Harness (v0.182.4), read 18 November 2026
- Caprock README — the agents it starts and reads; Apache-2.0
- Caprock docs — installing the app: macOS (Apple silicon and Intel), Windows and Linux x64 (docs/install-app.md)
- Caprock source — the agents New agent starts (internal/agents/binaries.go)
Try it
The record of every coding agent you run, the sessions it did not start included. Free, open source; nothing leaves your machine.
Caprock is a desktop app: it installs on your computer, not your phone.
Or email yourself the link:
macOS, Windows and Linux. Your phone pairs with it by QR code. Install options →
Notarized by Apple. One file for Apple silicon and Intel, macOS 13 or later.
Windows 10 22H2 or later, x64. Windows may ask once whether to run it: click More info, then Run anyway.
Paste it into Claude Code, Codex or any coding agent.
See what it says ▾
Install the Caprock desktop app for me. It is open source (Apache-2.0), a local app for my coding agents: https://github.com/dspv/caprock What the install does and how to remove it: https://github.com/dspv/caprock/blob/master/docs/install-agent.md Run the install script for my system: https://caprock.dev/mac.sh, /win.ps1 or /linux.sh. Read it before you run it if you like. Leave my Claude Code settings alone; the app asks me itself. Tell me when it's open.
Or run it yourself:
Paste in Terminal: it installs Caprock and opens it.Or with Homebrew: brew install --cask dspv/tap/caprock-app
Or run it yourself:
Paste in PowerShell: it installs Caprock for you and opens it.
Or run it yourself:
Paste in a terminal: it installs Caprock for you, no sudo. Or download the AppImage