OpenCode
FreemiumThe open source AI coding agent.
Published 27 September 2026Last updated 3 November 2026
Scores
Popularity5/5
Broadly known
Roughly 198K GitHub stars and 900+ contributors as of mid-2026, reported 7.5M+ monthly users — the most-starred project in the open-source AI coding agent space, ahead of every other independent (non-vendor) entrant.
Learning Curve3/5
Moderate
Getting a first session running is a quick `npm install` plus an API key, but making full use of Build/Plan modes, MCP/LSP integration, and choosing among 75+ providers involves more configuration surface than a single-model vendor tool.
Flexibility5/5
Unopinionated
Bring-your-own-model architecture, custom tools and plugins, configurable permissions/keybinds/formatters, and MCP/LSP support give it wide-open extensibility with essentially no imposed workflow.
Performance4/5
Fast
Output quality tracks whichever underlying model is configured rather than a fixed baseline — with a strong model (e.g. Claude or GPT) selected, it performs competitively with leading vendor agents, but there's no single benchmark number the way there is for a single-model product.
Portability5/5
No lock-in
MIT-licensed, installable via npm/Homebrew/Docker, no code stored on OpenCode's servers, and not tied to any single model provider — among the least locked-in options in the subcategory.
About OpenCode
OpenCode is an open-source AI coding agent built by Anomaly, the team behind the SST serverless framework. Its core idea is bring-your-own-model: rather than shipping with a single default model like most vendor coding agents, OpenCode connects to Claude, GPT, Gemini, local models via Ollama, or any of 75+ providers through Models.dev, and can reuse an existing GitHub Copilot or ChatGPT Plus/Pro login instead of requiring a separate API key.
The agent runs primarily as a terminal UI with a persistent session store, alongside a desktop app and IDE extension, so the same sessions and configuration follow a developer across surfaces. It ships two built-in agent modes: "build" (full read/write access to the codebase) and "plan" (read-only, for reviewing changes before they're applied), plus a general-purpose subagent for multi-step search and research tasks. Sessions can be shared via a generated link, and the tool integrates with LSP and MCP servers, custom tools and plugins, and configurable permissions.
For developers who don't want to manage provider API keys, OpenCode Zen is an optional managed model gateway from the OpenCode team: a curated, tested set of coding models billed through one pay-as-you-go account. OpenCode Go is a monthly subscription (Go and Go Plus) with usage limits across a curated set of open-weight coding models. Neither is required to use the core agent. OpenCode says it does not store your code or context data, and it installs through npm, Homebrew, Docker, and standard package managers.
Key Features
- Model-agnostic: connects to 75+ LLM providers via Models.dev, including local models
- Reuses an existing GitHub Copilot or ChatGPT Plus/Pro login instead of requiring a new API key
- Build and Plan agent modes: full-access editing vs. read-only review
- Terminal UI, desktop app, and IDE extension share the same sessions
- Shareable session links via /share
- LSP and MCP server support, custom tools and plugins, configurable permissions
- Optional OpenCode Zen gateway and OpenCode Go subscription
- Does not store your code or context data on OpenCode's servers
Pros
- No single-provider lock-in: swap models per task or during a provider outage without switching tools
- Large open-source community means frequent releases and fast bug fixes
- MIT licence and standard install methods keep the tool under the developer's control
- Reusing an existing Copilot or ChatGPT login lowers the cost of trying it
- Consistent experience across terminal, desktop, and IDE surfaces
Cons
- Bring-your-own-model design means usage costs depend entirely on the provider chosen
- Model quality and behaviour vary by which provider is configured
- Younger ecosystem than the single-vendor agents, with fewer enterprise controls
- OpenCode Zen and OpenCode Go add their own billing relationships on top of the core BYOK model
OpenCode Pricing
Freemium- Free, open-source agent — bring your own API key for any supported provider
- Reuse an existing GitHub Copilot or ChatGPT Plus/Pro subscription instead of a separate key
- Local model support via Ollama at zero marginal cost
- Subscription access to a curated set of open-weight coding models
- Usage limits per model by dollar amount, with an optional Go Plus plan at $40 a month for higher limits
- Pay-as-you-go managed gateway to a curated set of tested models
- Single billing relationship instead of per-provider API keys
Tech Stacks with OpenCode
OpenCode Dev Stack
DeveloperOpenCode as the coding agent, in the terminal, the desktop app, an IDE extension, or the browser, running open-weight models such as DeepSeek, GLM, and Kimi, with your pick of GitHub or GitLab for version control.
Local LLM Dev Stack
DeveloperA coding agent that works against a model on your own hardware. A local runtime such as Ollama or LM Studio serves an open-weight coding model such as Qwen or Mistral's Devstral, and an agent such as OpenCode or Cline does the editing. No code leaves the machine and there is no per-token bill.
Orca Dev Stack
DeveloperOrca runs several coding agents side by side, each in its own git worktree, with your pick of agents and models underneath and GitHub or GitLab for version control.
Tools Related to OpenCode
Works well with OpenCode(8)
Orca is one of the agentic dev environments that wraps OpenCode unmodified, adding parallel worktree orchestration and a native app on top of the CLI.
Paradev runs OpenCode sessions in parallel git worktrees and reports their status and token usage in the sidebar and Usage page.
Herdr gives OpenCode sessions a persistent, reattachable terminal environment with real-time status tracking, useful when running OpenCode unattended or on a remote box.
T3 Code gives OpenCode a cross-platform GUI, git-worktree isolation, and a turn-by-turn diff viewer on top of the bare CLI.
Paseo gives OpenCode sessions cross-device continuity through a self-hosted daemon, letting a session be steered from a phone or browser as easily as the terminal it started in.
DeepSeek's own docs list OpenCode among the coding agents that can point at the DeepSeek API with no code changes.
Alternatives to OpenCode(12)
OpenCode is explicitly positioned as the leading open-source, model-agnostic alternative to Claude Code — both are terminal-first AI coding agents with session management and IDE/desktop surfaces, but OpenCode lets you bring any of 75+ model providers instead of being tied to Claude models.
OpenCode and Pi are both open-source, provider-agnostic terminal coding agents — OpenCode ships a fuller feature set and broader native multi-editor/desktop reach out of the box, while Pi is deliberately minimal (four core tools, ~200-token system prompt) and extension-driven.
OpenCode is an open-source, model-agnostic agent across terminal, IDE, and desktop; ZCode is Z.ai's open-source desktop app tuned for GLM and its Coding Plan. OpenCode for model freedom and a terminal-first workflow, ZCode for a GLM-first app with Goal Mode.
OpenCode and Qwen Code are both free, open-source, terminal-first coding agents that accept any OpenAI-compatible provider — OpenCode has no default vendor, while Qwen Code is built around Alibaba's own Qwen models.
OpenCode is the largest model-agnostic open-source agent across terminal, IDE, and desktop; Grok Build is SpaceXSI's terminal agent running parallel worktree sub-agents on Grok or other models. OpenCode has the bigger ecosystem, Grok Build built-in parallelism.
OpenCode is an open-source, model-agnostic terminal agent; Codex is OpenAI's cloud-based async coding agent — alternatives in the agentic coding space with very different execution models (local BYOK sessions vs. cloud sandbox delegation).