OpenCode
Open source, model agnostic coding agent from Anomaly, running in the terminal, desktop, IDE or as a headless server, with Plan and Build modes and support for 75+ LLM providers using your own keys.
OpenCode is an open source, model agnostic AI coding agent from Anomaly, the team behind SST. It runs in the terminal as a native TUI, and also as a desktop app, an IDE extension, a scriptable CLI and a headless HTTP server. It is MIT licensed with over 195,000 GitHub stars and 950 contributors, and the vendor reports more than 16 million developers using it monthly.
The defining choice is provider independence: any LLM can be configured with the customer's own API key across more than 75 providers via Models.dev, including local models, with an optional curated list called OpenCode Zen for those who want a tested default. Work follows a two phase pattern, where Plan mode disables the agent's ability to change anything so it proposes an approach for review, then a single key switches to Build mode to implement it. Multiple agents can run in parallel on the same project, and /undo and /redo traverse change history repeatedly.
Project context is grounded in an AGENTS.md file that /init generates from repository analysis and the team commits to git, supplemented by rules, references, @ file mentions and images dropped into the terminal. LSP servers load automatically so the model gets language level intelligence rather than text matching, and sessions persist in a local SQLite store, resumable and optionally shareable by link.
For organizations, OpenCode Enterprise offers a central config integrating with the customer's SSO provider and routing all traffic through an internal AI gateway with other providers disabled. The architecture stores no code or context data, with all processing local or direct to the chosen provider, and the one hosted component, share pages, is disableable by config. Extensibility runs through MCP servers, custom tools, plugins, Agent Skills, ACP and a published JS/TS SDK.
Vendor details
Canonical URL
https://opencode.ai
Category
Coding agent
Subcategory
Coding — CLI agent (OSS)
Funding status
Independent, built by Anomaly, the team behind SST, led by Dax Raad and Adam Doty. MIT licensed open source at github.com/anomalyco/opencode with over 195,000 GitHub stars, 950 contributors and 13,000 commits, reported by the vendor as used by more than 16 million developers a month. Commercial model is OpenCode Zen, a curated hosted model service, plus per seat OpenCode Enterprise.
Company status
independent
Use cases & customers
Primary use cases
Target customers
Deployment options
Integrations
Built in tools for file read, edit, search and shell execution, extended by MCP servers, custom tools, plugins and configurable code formatters. LSP servers load automatically to give the model language level code intelligence. Native GitHub and GitLab integrations, ACP support, a headless HTTP server with an OpenAPI spec and an official JS/TS SDK. More than 75 LLM providers are reachable through Models.dev including local models, and GitHub Copilot ships a formal integration authenticating with OpenCode.
In practice
You want a coding agent in your terminal that isn't tied to one vendor's model. OpenCode is model-agnostic, supporting more than 75 providers with your own API key.
Closed coding tools mean trusting a black box with your code. OpenCode is open source, so you can run and inspect it yourself.
You'd rather pay providers directly than a markup. OpenCode is free to run as an open-source tool, with cost only on the model you choose.
Sources & related URLs
Related / legacy domains
Agentic Index coverage score
10.0 / 14 capabilities · 71%
| Integrations & Tool Calling | Full |
|---|---|
|
Built in tools let the agent read, edit and search files and execute shell commands, extended by MCP servers, custom tools, plugins, configurable code formatters, and LSP servers automatically loaded to give the model language intelligence; native GitHub and GitLab integrations are documented, and IDE and desktop surfaces sit alongside the terminal. Sourceopencode.ai/docs/tools, docs/mcp-servers, docs/lsp, docs/github and docs/gitlabread 2026-08-30 |
|
| Workflow Orchestration | Full |
|
A two phase Plan then Build workflow lets the agent propose an implementation approach for review before making any changes, multiple agents can run in parallel on the same project, custom agents are configurable with their own tools and models, and custom commands and Agent Skills package repeatable multi step work. Sourceopencode.ai/docs/agents, docs/commands and docs/skillsread 2026-08-30 |
|
| Knowledge Grounding & RAG | Partial |
|
Context is assembled per run: built in tools read, grep, glob and list files on demand, @ fuzzy file references and dropped images attach material to a prompt, and LSP servers loaded at run time give the model language level diagnostics and symbols. No maintained retrieval structure over the customer's code or documents is documented, and the docs navigation has no index or knowledge page; AGENTS.md from /init and rules are instructions the product applies. Sourceopencode.ai/docs/tools, /docs/lsp and /docs/rules; opencode.ai/docs/lspread 2026-09-29 |
|
| Human Oversight & Guardrails | Full |
|
Plan mode disables the agent's ability to make changes so it proposes an approach for review before building, toggled with a single key and switched back to Build mode once the plan is agreed; permissions and policies govern what the agent may do, /undo and /redo revert or replay changes and can be run repeatedly, and non interactive CLI mode auto approves only when explicitly invoked for scripting. Sourceopencode.ai/docs/permissions, docs/policies and docsread 2026-08-30 |
|
| Security, Identity & Governance | Partial |
|
Enterprise deployment documents SSO integration through a central organization config, an internal AI gateway with all other providers disableable, permission rules and organization policies, and private npm registry support; the architecture stores no code or context data, with all processing local or direct to the customer's chosen provider, and the only exception, the optional share feature, is disableable by config. No SOC 2, ISO or other attestation is published. Sourceopencode.ai/docs/enterprise, docs/permissions and docs/policiesread 2026-08-30 |
|
| Observability & Auditability | Partial |
|
Sessions are stored locally and can be shared as a link exposing the full conversation for reference or debugging, the TUI shows tool calls as they run, and the agent is MIT licensed so its behavior is fully inspectable. No audit log, run history or organization level record of agent actions is documented. Sourceopencode.ai/docs/share and github.com/anomalyco/opencoderead 2026-08-30 |
|
| Memory & State Persistence | Partial |
|
Sessions persist locally and can be resumed and shared by link, and /undo and /redo traverse change history within a session, so a run carries on where it stopped. No memory layer that the agent writes and reads across sessions is documented, and the docs navigation has no memory page; AGENTS.md carries project conventions as instructions, not agent retained memory. Sourceopencode.ai/docs/share, /docs/rules and the docs navigationread 2026-09-29 |
|
| Deployment & Data Residency | Full |
|
The agent is MIT licensed open source running entirely on the developer's own machine, installable via script, npm, Homebrew, Arch, Chocolatey, Scoop, Mise or Docker, with no code or context data stored by the vendor and all processing local or direct to the customer's chosen provider; enterprise deployment routes everything through an internal AI gateway with other providers disabled, and the only hosted component, share pages, can be disabled by config with self hosting on the roadmap. Sourceopencode.ai/docs/enterprise and docsread 2026-08-30 |
|
| Prebuilt Agents, Templates & Packs | Partial |
|
Agent Skills package reusable agent capabilities, custom agents and custom commands are configurable and shareable, plugins extend the runtime, and a documented ecosystem page collects community extensions; there is no vendor published catalog of prebuilt agents installable in one click. Sourceopencode.ai/docs/skills, docs/agents, docs/commands and docs/ecosystemread 2026-08-30 |
|
| Triggers & Channel Coverage | Full |
|
The GitHub integration starts runs without anyone invoking them: pull_request runs OpenCode when a pull request is opened, synchronized or reopened, issues runs it when an issue is created or edited, and schedule runs it on a cron schedule with a stored prompt, with a published schedule example; comment mentions (/opencode or /oc) and workflow_dispatch cover invoked runs. Beyond GitHub, invocation spans the TUI, a scriptable non interactive CLI returning text or JSON, the desktop app, the IDE extension, a headless HTTP server, ACP clients and a GitLab integration. Sourceopencode.ai/docs/github (Supported Events, Schedule Example) and /docs/gitlabread 2026-09-29 |
|
| Model Flexibility & Routing | Full |
|
Model agnostic by design: any LLM provider can be configured with the customer's own API key across more than 75 providers via Models.dev including local models, with a provider directory, per agent model configuration, an optional curated OpenCode Zen list, Claude Pro and Max account login, and enterprise routing through an internal AI gateway. Sourceopencode.ai/docs/providers and docs/modelsread 2026-08-30 |
|
| APIs, SDKs & MCP Extensibility | Full |
|
A published JS/TS SDK, a headless HTTP server with an OpenAPI spec, a plugin system, custom tools, MCP server support, ACP support and a documented ecosystem page; the whole agent is MIT licensed on GitHub under anomalyco/opencode, and GitHub Copilot ships a formal integration authenticating with OpenCode. Sourceopencode.ai/docs/sdk, docs/server, docs/plugins and docs/mcp-serversread 2026-08-30 |
|
| Testing, Debugging & Optimization | Partial |
|
LSP servers surface diagnostics so the agent can see and correct errors in its own edits, the agent can run tests and commands through built in shell tooling, and /undo and /redo support iterating on a failed attempt; no evaluation harness, replay or regression testing of agent behavior is documented. Sourceopencode.ai/docs/lsp and docs/toolsread 2026-08-30 |
|
| Browser & Computer Use | Not documented |
|
The agent works through file operations, shell commands, LSP servers and MCP tools in the terminal; no browser control or operation of software lacking a programmatic interface is documented anywhere in the docs. Sourceopencode.ai/docs/toolsread 2026-08-30 |
|
The Agentic Index coverage score grades every vendor Full, Partial or Not documented against the same 14 buyer facing capabilities, from public evidence only. Each capability links to how all vendors in the index score on it. How this evidence is graded
Recent platform changes
OpenCode version 1.18.2 introduces default execution constraints that prevent subagents from independently launching nested subagents. Administrators and developers can override this safeguard by configuring a specific subagent_depth limit when deeper recursive delegation is necessary.
Bears on: Workflow orchestration
View sourceOpenCode released version 1.18.0, finalizing the Desktop v2 migration. The update introduces a redesigned review panel with persistent file tabs, a new composer menu for adding context without losing draft text, and per-prompt model selection. A transition setting is included to allow users to temporarily toggle between the legacy and new interfaces.
Bears on: Workflow orchestration
View sourceOpenCode 1.17.11 added session snapshots and rollback, letting users revert a session to an earlier message and undo file changes. The release also brought file-based agent loading, skill discovery, and expanded OpenAI model support via AWS Bedrock (building on the MCP resource tooling and minimal CLI mode shipped the day before in 1.17.10).
Bears on: Memory / state
View sourcePricing
Free and open source with your own provider keys; OpenCode Go $10 a month or Go Plus $40 a month for curated open models; OpenCode Zen pay as you go per million tokens; Enterprise per seat through sales
hybrid
Included quota
Free (BYOK): full OpenCode features, any provider/local model — no included quota, you fund tokens. Go ($10/mo): curated open-weight models with a monthly dollar-value usage allowance (~$60 of usage / ~17K requests on lighter models).
What is public
The core agent is free and MIT licensed, used with the customer's own keys across 75+ providers or local models. OpenCode Go has two monthly plans, Go at $10 and Go Plus at $40, each with published per-model monthly allowances and per million token prices. OpenCode Zen is pay as you go with per million token prices for every listed model, including free limited-time models, auto-reload of $20 when the balance drops below $5, and workspace and per member monthly limits. OpenCode Enterprise is priced per seat through sales, with no token charge when the customer uses its own LLM gateway.
Billing mechanics
The tool itself is free; cost comes from model access. Three optional paths: bring your own key and pay the provider directly; Zen, a curated gateway billed per million tokens against a prepaid balance with optional auto-reload and monthly limits; or Go, a flat $10 or $40 monthly plan with per-model allowances that can fall back to the Zen balance when a limit is reached. Enterprise adds a per seat license.
Cost watchouts
Token spend on your own key is uncapped; Zen auto-reload can exceed a set monthly limit; Go falls back to the Zen balance only when that option is enabled.
Variable cost rationale
Free core has zero subscription floor but uncapped BYO-key token spend; Zen is pure PAYG; only Go's flat $10 caps cost (until fallback) — so exposure is usage-driven unless you stay on Go
Additional watchouts
The free core is free with your own key; Go covers curated open models only, and Zen auto-reload can charge past a monthly limit that is set, as the Zen page itself warns.
Overage / add-ons
Go usage is capped by dollar value; on exhaustion it blocks or falls back to a Zen pay-as-you-go balance. Zen auto-reloads $20 when the balance drops below $5 (configurable; can be disabled). BYO-key usage bills directly from your provider with no cap.
Sales call required
No, self serve available
Free / trial
Free (OSS self-host)
Lowest paid plan
OpenCode Go $10 a month
Commercial notes
MIT licensed; Go has two tiers ($10 and $40) and Enterprise is per seat, with no token charge on a customer's own gateway.
Key ambiguities
Go's monthly allowances are set per model, so what a plan covers depends on model choice, and the Enterprise per seat rate is not published.
Cancellation / refund
Cancel any time; Zen/Go let you set monthly spend limits; prepaid balances; no long-term contract
Support SLA / resale
Community/OSS support on the free core; managed support via Zen/Go/Black (enterprise gateway, reported volume discounts)
Missing data
The Enterprise per seat rate is not published.
Related vendors
- Cognition — Maker of Devin, an autonomous AI software engineer
- 10Web — Agentic website platform whose specialized AI agents build, host,…
- AgentUI — Managed AI app builder for operations teams that generates and hosts…
- Aider — Open source, model agnostic terminal coding agent that edits your…
- Anthropic Claude Code — Anthropic's agentic coding system across terminal, desktop, IDE, web…
- AppFactor — Agentic platform that runs persistent agents across an enterprise…
Alternatives to OpenCode
The closest documented capability profiles to OpenCode among coding agents tracked by Agentic Index, ordered by similarity on the same 14 point evidence the rankings use. No vendor pays for placement.
- JetBrains AI10.5 / 14Fuller documented coverage on Prebuilt Agents, Templates & Packs
- Charm10.0 / 14Fuller documented coverage on Observability & AuditabilityOpenCode vs Charm →
- CodeRabbit11.0 / 14Fuller documented coverage on Security, Identity & Governance and Memory & State Persistence
- Poolside11.0 / 14Fuller documented coverage on Security, Identity & Governance and Observability & Auditability
- Zed10.0 / 14Fuller documented coverage on Prebuilt Agents, Templates & Packs
- Cosine8.5 / 14A lighter documented profile than OpenCode
Similarity is computed from each vendor's Agentic Index coverage score evidence, axis by axis, not from the totals. How this evidence is graded