OpenCode alternatives: 5 terminal coding agents, compared on price and licence

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.

Dmitriy Solodukha · Updated · 7 min read

Checked against Caprock v0.182.4

  1. Any model, open source, on your own accounts Stay on OpenCode MIT; 200+ providers; free.
  2. Claude, on the Claude plan you pay for Claude Code Pro $20; not open source.
  3. Open source, included in ChatGPT Codex CLI Apache-2.0; every ChatGPT plan, Free included.
  4. OpenCode's own code, with an editor extension Kilo CLI MIT; a fork of OpenCode; VS Code and JetBrains too.
  5. A desktop app and a CLI, any provider goose Apache-2.0; your Claude, ChatGPT or Gemini subscription through ACP.
  6. OpenCode, Claude Code and Codex side by side, with cost Caprock Not an agent: it runs and records the ones you have.
From each maker's own site, docs and repository, read 18 November 2026.

The tool you have

What OpenCode does, and why people look elsewhere

Its README: “The open source AI coding agent.” Its site: “200+ LLM providers through Models.dev, including local models.”

What OpenCode does well

  • 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, by its own pages

  • 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.

github.com/anomalyco/opencode and its releases, opencode.ai and its docs (providers, Go, IDE) and download page, read 18 November 2026.

Side by side · read 18 November 2026

OpenCode and six alternatives, side by side

Price, licence, platforms and models, as of November 2026, from each maker's own pages. All but Caprock are agents; Caprock runs them.

OpenCode and its alternatives, from each maker's own pages, read 18 November 2026
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
A cell says what the maker documents. “Free” means the agent; the model is paid for separately unless a plan includes it. Crush's licence is source-available, not open source, until each release turns MIT two years on.

Alternative 1 of 6

Claude Code

Anthropic's coding agent for the terminal · Not open source; on Claude Pro ($20 a month) or higher, or an API key

Pick it for: Claude as the agent, on a flat Claude plan, with Anthropic's own harness.

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

What it does well

  • “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”.

Alternative 2 of 6

Codex CLI

OpenAI's open-source coding agent for the terminal · Apache-2.0; included in every ChatGPT plan, Free ($0) and Go ($8 a month) up

Pick it for: An open-source agent whose model use comes with a ChatGPT plan.

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

What it does well

  • “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.

Alternative 3 of 6

Kilo CLI

A fork of OpenCode, with Kilo's editor extensions · MIT, free; models at provider rates with no markup; Kilo Pass $19 a month

Pick it for: OpenCode's code with Kilo's model gateway, and the same agent in VS Code and JetBrains.

github.com/Kilo-Org/kilocode · github.com/Kilo-Org/kilocode, kilo.ai and its pricing page, read 18 November 2026

What it does well

  • “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”.

Alternative 4 of 6

goose

An open-source agent with a desktop app and a CLI · Apache-2.0, free

Pick it for: A desktop app and a CLI from one open-source project, on the subscriptions you already have.

github.com/aaif-goose/goose · github.com/aaif-goose/goose and its releases (v1.60.1, 18 November 2026), read 18 November 2026

What it does well

  • “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.

Alternative 5 of 6

Crush

Charm's coding agent for the terminal · FSL-1.1-MIT, source-available; your own key, or Charm's Hyper provider

Pick it for: A polished terminal agent on almost any system, any provider.

github.com/charmbracelet/crush · github.com/charmbracelet/crush, its LICENSE.md and releases, read 18 November 2026

What it does well

  • “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.

Alternative 6 of 6

Caprock

Desktop app for coding agents; not an agent · Apache-2.0, free; optional Premium, $30 a year or $100 once

Pick it for: Keeping OpenCode and adding the others beside it, with one record of what each cost.

github.com/dspv/caprock · README at master (v0.182.4), “OpenCode, Codex and DeepSeek Harness”, read 18 November 2026

What it does well

  • 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.

Decide

Which one 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.

Which OpenCode alternative fits which need, read 18 November 2026
If you want Use
Any model, open source, on your own accounts Stay on OpenCode
Claude on a flat Claude plan Claude Code
Open source, with the model in your ChatGPT plan Codex CLI
OpenCode's code with an editor extension and a gateway Kilo CLI
A desktop app and a CLI on your Claude, ChatGPT or Gemini subscription goose
A terminal agent on almost any system Crush
OpenCode, Claude Code and Codex side by side, with cost per repository Caprock

What Caprock does not do

  • An agent or a model of its own: it starts and records OpenCode, Claude Code, Codex and the rest.
  • Change OpenCode's settings: it opens OpenCode's database read-only.
  • Sessions that run in a vendor's cloud or inside CI are not observed; Caprock sees the machines it is installed on.

Free, open source, on your machine

Keep OpenCode, add the rest beside it

Free and open source, on macOS, Windows and Linux. Install the app; OpenCode, Claude Code and Codex sessions show up together with what each one cost.

Install Caprock ↓

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?

OpenCode and its alternatives, from each maker's own pages, read 18 November 2026.
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
A cell says what the maker documents. “Free” means the agent; the model is paid for separately unless a plan includes it. Crush's licence is source-available, not open source, until each release turns MIT two years on.

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

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 →

Download on the App StoreDownload on the App Store

On an iPhone, pair it with the app.

Download for Mac

Notarized by Apple. One file for Apple silicon and Intel, macOS 13 or later.

Download for Windows

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:

curl -fsSL https://caprock.dev/mac.sh | sh

Paste in Terminal: it installs Caprock and opens it.Or with Homebrew: brew install --cask dspv/tap/caprock-app

Or run it yourself:

irm https://caprock.dev/win.ps1 | iex

Paste in PowerShell: it installs Caprock for you and opens it.

Or run it yourself:

curl -fsSL https://caprock.dev/linux.sh | sh

Paste in a terminal: it installs Caprock for you, no sudo. Or download the AppImage