OpenCode

An open-source coding agent for the terminal, desktop, web and IDEs, with 75+ model providers including local models; MIT-licensedOpen source

About OpenCode

OpenCode is an MIT-licensed open-source coding agent for the terminal, desktop, web and IDEs, with 75+ model providers including local models. As of 2026-10-26 two version lines run side by side: the 1.x line on GitHub releases is at v1.19.4, released 2026-10-22 21:03 (UTC+8), and the 2.x line in the npm package @opencode/cli is at 2.1.4, released 2026-10-23 18:13 (UTC+8). The tool is free; Zen bills per request, Go starts at $10 a month and Enterprise is priced by quote from sales. The site cites over 16M developers a month (as reported by the vendor).

What problem it solves

OpenCode reads the project, changes code across files, runs commands and fixes what breaks, without tying itself to one model vendor. The site says it connects to 75+ model providers through Models.dev, including local models, and can sign in with a GitHub Copilot or ChatGPT Plus/Pro account to use those models directly.

It comes in four forms: a terminal UI, a desktop app, a web interface and an IDE extension. The README marks the desktop app as BETA, with builds for macOS, Windows and Linux.

The repository is anomalyco/opencode, created 2025-05-01 04:08 (UTC+8), with dev as its main branch. Two version lines exist:

  • 1.x: GitHub releases and the npm package opencode-ai move together. As of 2026-10-26 the latest is v1.19.4, released 2026-10-22 21:03 (UTC+8); v1.19.3 and v1.19.2 both shipped on 2026-10-16.
  • 2.x: published only as the npm package @opencode/cli, the site install script and the changelog, with no matching GitHub release. 2.0.0 reached npm 2026-09-12 07:44 (UTC+8). The README and the OpenCode 2 docs point installs at 2.x, while the 1.x docs state that both generations use the opencode command and cannot coexist under that name.

The publisher is Anomaly Innovations, Inc., the contracting party in the terms of use. The site footer reads Anomaly, and the anoma.ly home page lists OpenCode under Creators of.

OpenCode is an open source agent that helps you write code in your terminal, IDE, or desktop.

OpenCode website

Core capabilities

Two built-in agents. build can edit files and run commands; plan is read-only and asks before editing files or running commands. A general subagent, called with @general, handles complex searches and multistep tasks.

Parallel sessions. Several agent sessions can run on one project, and a session can produce a share link.

Reversible changes. /undo reverts the last change and restores the original prompt, and can run repeatedly; /redo reapplies. /init analyzes the project and writes AGENTS.md at the root so later sessions know its structure and coding patterns.

Extensibility. The opencode.json config supports plugins, MCP servers, custom commands, skills and themes. An SDK and a local server are available, and ACP and LSP appear in the docs.

New in 2.x. Policies use allow or deny rules to control whether a model provider may be used; a denied provider stays unavailable even with valid credentials. The feature works only in OpenCode 2. The Policies page in the 1.x docs still marks it experimental under experimental.policies, while the changelog states that v2.0.29 moved it to a top-level policies key and kept compatibility with experimental.policies. Version 2.1.4 shows a form when an MCP server asks for input mid-call and adds experimental background compaction; the changelog states that unused background summaries still cost tokens. The opencode pair command creates a one-time link that connects a browser to the local session and expires in 5 minutes.

Who uses it

The site cites more than 220,000 GitHub stars, 950 contributors, over 20,000 commits and more than 16M developers a month (as reported by the vendor). As of 2026-10-26 the GitHub API shows 221,463 stars and 29,613 forks; contributors number 455 by GitHub account, or 1,069 when commit emails without an account are included.

For organizations, the Enterprise page targets teams that want code and data to stay inside their own infrastructure, offering central config, SSO integration and an internal AI gateway. The page says the Trust Center holds a SOC 2 Type 2 report, security policies and a subprocessor list, available under NDA.

How it compares

The Claude Code repository's LICENSE.md reads All rights reserved, with use governed by Anthropic's commercial terms; OpenAI's Codex CLI is open source under Apache-2.0. Both mainly serve their own vendor's models. OpenCode is MIT-licensed and can switch among 75+ providers, local models and its own Zen and Go services.

Among open-source, model-neutral tools, Aider takes a terminal pair-programming approach and Cline centers on its VS Code extension; both are Apache-2.0. OpenCode centers on the terminal UI while also offering a desktop app, a web interface and an IDE extension, plus a local server and SDK for other clients.

Zen and Go are run by OpenCode, but the vendor states both work with other coding agents and are not tied to OpenCode.

Who it's for / Not for

A good fit for:

  • Developers who work in the terminal and do not want to be tied to one model vendor; GitHub Copilot or ChatGPT Plus/Pro subscribers can sign in directly.
  • Teams that need local models or their own gateway. The Enterprise docs describe central config, SSO and routing all traffic through an internal AI gateway, and the network docs cover proxies and custom CA certificates.
  • Budget-minded individuals after a low-cost model subscription: Go costs $10 a month.

A poor fit for:

  • Teams that need a stable, slow-moving toolchain. 1.x and 2.x run in parallel with separate configs and docs, and some features work only in 2.x.
  • Strict data-handling requirements combined with the free hosted models, since some free-period models may use collected data to improve the model.
  • Environments that install through Windows package managers, which the OpenCode 2 docs say are not supported; npm or a direct binary download is the route.

Getting started

Installing. The README and the OpenCode 2 docs give the install script curl -fsSL https://opencode.ai/v2/install | bash. Alternatives are npm i -g @opencode/cli@latest, Homebrew's anomalyco/tap/opencode-v2, bun, pnpm, yarn, AUR, mise and nix. The npm package uses a postinstall script to select the native binary, which bun and pnpm must explicitly allow. mise needs version 2026.10.9 or later, since older versions install OpenCode 1. Standalone CLI binaries and desktop installers exist for each platform, and Docker images use version tags.

Connecting a model. Running /connect in the terminal UI lets a provider be chosen and an API key pasted; Zen and Go are also listed.

First session. Running opencode inside a project directory starts it, and /init generates AGENTS.md, which the 1.x docs say belongs in Git. Tab switches between build and plan, and /undo rolls back a bad change.

Pricing & license

The tool is free and the code is MIT-licensed. Paid options cover models and enterprise service:

  • Own keys: billed at the chosen provider's rates, with no OpenCode charge.
  • Zen: per-request billing with zero markup, according to the vendor. Balances start at $20, with $1.23 charged per $20 top-up; the docs give the fee as 4.6% + $0.31. Monthly spend limits are available. A purchase may qualify for a refund on request within 14 days if its credits are unused.
  • Go: $10 a month; Go Plus is $40 a month with higher limits. Limits apply over rolling windows: 20% of the monthly allowance per 5 hours, 50% per week and 100% per month. The page lists 29 models.
  • Enterprise: by quote from sales. The Enterprise docs describe per-seat pricing with no token charge for organizations running their own LLM gateway; the FAQ on the Enterprise page states the same token terms and a custom quote, with no mention of seats.
  • Free models: Big Pickle and several limited-time free models, hidden by setting OPENCODE_DISABLE_FREE_MODELS=1.

License: the LICENSE file is the MIT License, Copyright (c) 2025 opencode. The terms of use state that open-source software not provided on a hosted basis is governed solely by its repository license, while the terms cover the website, the inference product and hosted software.

Risks & limits

Data storage. The home page says OpenCode does not store any code or context data, while the FAQ on the same page says data is stored only when the free models are used. The Zen docs state that Big Pickle and other free models may use collected data to improve the model during the free period, the NVIDIA free endpoints are trial-only, and requests through the OpenAI and Anthropic APIs are retained for 30 days. The Go page shows the Muse Spark models trading discounted pricing for permission to train on prompts and completions. Session share pages are hosted by the vendor, and the Enterprise docs list self-hosted share pages as a roadmap item.

Two version lines run in parallel. 2.x ships only through npm and the site, while GitHub releases remain on 1.x. Features such as Policies work only in 2.x; 1.x uses disabled_providers or enabled_providers instead. Both generations use the opencode command and cannot coexist under that name.

Open issues. As of 2026-10-26 the repository has 3,815 open issues and pull requests combined. Issue 58086, still open, reports glm-5.3-flash on Go answering a conversation that never happened partway through a long session. Issue 50672, also open, reports a hardcoded service port 49374 that locks out a second user on the same machine or a WSL mirrored-network client; 2.1.3 moved the Windows managed service to port 28894.

Numbers. The home page cites 950 contributors; the GitHub API counts 455 accounts, or 1,069 including anonymous commit emails. The 16M monthly figure comes from the site (as reported by the vendor).

The terms of use require binding arbitration, with a written opt-out within 30 days of accepting them. The privacy policy states that the website uses analytics services such as Google Analytics.

Our verdict

What sets OpenCode apart: it is MIT-licensed, connects to 75+ model providers and local models, and can sign in with a GitHub Copilot or ChatGPT Plus/Pro account; it comes as a terminal UI, a desktop app, a web interface and an IDE extension; and the Go plan costs $10 a month.

Its limits: 1.x and 2.x run in parallel with separate configs and docs, and some features work only in 2.x; the no-storage claim has exceptions when the free models are used; and as of 2026-10-26 the repository has 3,815 open issues and pull requests combined.

Sources

Official

  1. OpenCode READMEGitHub · Accessed Oct 26, 2026
  2. OpenCode - The open source AI coding agentopencode.ai · Accessed Oct 26, 2026
  3. OpenCode Zenopencode.ai · Accessed Oct 26, 2026
  4. OpenCode Goopencode.ai · Accessed Oct 26, 2026
  5. OpenCode Enterpriseopencode.ai · Accessed Oct 26, 2026
  6. Enterprise - OpenCode docsopencode.ai · Accessed Oct 26, 2026
  7. Zen - OpenCode docsopencode.ai · Accessed Oct 26, 2026
  8. Intro - OpenCode docsopencode.ai · Accessed Oct 26, 2026

Updates & reading

Long readEditorial

Claude Subscriptions Are Back in OpenCode. Claude Code Still Holds the Key.

OpenCode got Claude subscriptions back not by holding users' logins but by running the copy of Claude Code they already installed. It works, but which subscriptions an open-source coding agent can use, and how they're billed, is still set by the lab's own client and help pages.

NewsGitHub · anomalyco/opencode

OpenCode v2.2.3 adds a built-in Claude Agent provider for using a Claude Code login and its models

OpenCode v2.2.3, released Oct 30, adds a built-in Claude Agent provider: with Claude Code installed locally and `claude auth login` run, users select Claude Agent in /connect to use their Claude Code login and models. In March 2026, v1.3.0 removed OpenCode's built-in Anthropic OAuth login plugin following legal requests from Anthropic.

1 source · 1 post on X