OpenCode
Read the two badges separately: the first is whether this page is backed by evidence, the second is whether the product is still maintained. An archived product can have complete evidence; complete evidence does not mean the product is active.
30-second check: should it make your shortlist?
An MIT-licensed multi-provider programming harness that asks permission before…
Local / self-hosted · CLI
Open licence
Read the original licence before commercial useDirect in mainland · Not in filing list
These four cards help you rule things out, not decide for you. The real differences are in the eight questions and sources below.
Information not confirmed
- The exact YOLO-mode switch and its risks
- Subagent scheduling and token overhead
- Real-world behavior on large repos under the "no vectorized index (ripgrep / LSP only)" route
An MIT-licensed multi-provider programming harness that asks permission before running bash commands, and supports loading via ACP.
When to use it, when not to
Users who need switchable multiple providers and who care about confirmation before bash commands run. Participants in the ACP ecosystem.
Not a fit for fully unattended automation — asking before each command interrupts the flow; the exact switch for YOLO mode was not verified.
China availability domestic / direct access / CAC filing · snapshot 2026-10-23
- Origin
- foreign-made foreign entity (no matching filing entity in the CAC registry).
- Direct access
- direct OK Hosted on GitHub — direct reachability from mainland fluctuates (200/000 mixed on the same day); npm / PyPI install routes measured stable.
- CAC filing
- not in filing list:not in the CAC public registry (13 batch attachments searched 2026-10-20, https://www.cac.gov.cn/2024-04/02/c_1713729983803145.htm); the product does not serve the mainland public, so filing does not apply.
Filing status is quoted from the CAC public registry (updated batch by batch; this site copies the number and does not interpret it). "Direct access" is this site's own reachability measurement from a mainland network, not a vendor promise. GitHub-hosted sites fluctuated on the measurement day — the note says so.
8 questions, one table
8 questions, each comparable item by item with its peers.
- Model & openness
A coding harness that plugs into many providers. Official
modelsandproviderspages:OpenCode uses AI SDK and Models.dev, supporting 75+ LLM providers, and also supports running local models. The catalog includes:
- 302.AI
- Amazon Bedrock
- Anthropic
- Azure OpenAI
- DeepSeek
- Google Vertex AI
- Groq
- Hugging Face
- llama.cpp
- LM Studio
- Ollama
- OpenAI
- OpenRouter
- xAI
- Z.AI
- ZenMux and more.
Credentials go through
/connectinto~/.local/share/opencode/auth.json;enabled_providers/disabled_providersact as allow/deny lists, and custom providers can be defined (npm+baseURL, OpenAI-compatible included); there is also the official curated list OpenCode Zen. Local models can be connected —the official docs name llama.cpp, LM Studio, Ollama, Atomic Chat.
Note: connecting via a Claude Pro/Max subscription is not an Anthropic-officially-supported usage.
- Where it runs
A local process running in the terminal. Multi-platform installs are provided (macOS Homebrew / Windows Scoop etc.). Its lifecycle is bound to the terminal session.
- Local files
Coding capability aimed at real code repositories.
read/edit/write/grep/globread and write the workspace directly.grep/globuse ripgrep underneath, following.gitignoreby default.Access is confined by default to the working directory at launch — paths outside it must be explicitly allowed via
external_directoryinpermission(e.g.~/projects/personal/**).readis allow by default, but.env/.env.*are deny by default (.env.exampleallow). The@key fuzzy-searches project files; file changes have awatcher(with configurableignore).Symbol-level capability comes from the LSP tool (experimental): it needs
OPENCODE_EXPERIMENTAL_LSP_TOOL=trueplus your own LSP servers, supporting goToDefinition / findReferences / hover and more.No description of codebase vectorized indexing was found officially (tools / config / permissions pages checked).
- Tasks after shutdown
Terminal form, local process, lifecycle bound to the session.
The official docs also have
opencode serve(a headless HTTP server). There is alsoopencode weband a desktop app. They all run on your own machine. They expose a session API to clients, includingprompt_asyncfor async sending. The execution environment is yours, not a vendor-hosted cloud.No cloud background capability that "keeps running after the client closes / survives shutdown" was found officially (server page and docs overview checked).
- Tools & extensions
Built-in tools are listed item by item officially:
- bash
- edit
- write
- read
- grep
- glob
- lsp (experimental)
- patch
- skill
- todowrite
- webfetch
- websearch (Exa, requires the OpenCode provider or
OPENCODE_ENABLE_EXA) - question
There is also
taskfor dispatching subagents.Built-in agents include:
- build
- plan
- general
- explore
- scout
- compaction
- title
- summary
MCP integration verified: local
type:"local"and remotetype:"remote", with OAuth dynamic client registration (RFC 7591) and commands likeopencode mcp auth; custom tools and plugins (hooks) are also supported.- Context & memory
ACP (Agent Client Protocol) load capability is its differentiating design — preserving model, effort and mode boundaries across restore and fork.
Session mechanics verified: the
/sessionAPI supports creating, forking (branching at a given message), revert/unrevert and summarize. The TUI has/undo,/redo,/share.The compaction policy is configured officially — the
compactionitem:auto(default true, auto-compacts the session when context fills up)prune(deletes old tool output to save tokens, default false)reserved(compaction buffer)
There are also three built-in agents: compaction / title / summary.
- Permissions & limits
Permission policy verified: the
permissionconfig decides per operation whether it runs automatically, asks for approval, or is blocked — three tiers"allow"/"ask"/"deny".Fine-grained per-tool config is supported, with wildcards and object syntax (for bash:
git *allow,rm *deny, the last matching rule wins).Configurable permission keys:
- read
- edit (covers edit, write, patch)
- glob
- grep
- bash
- task
- skill
- lsp
- webfetch
- websearch
- external_directory
- doom_loop
Defaults are permissive: most are allow,
doom_loopandexternal_directoryare ask;readis allow but.env/.env.*are deny by default.The official config page also says "all operations are allowed by default, no explicit approval needed".
The approval UI offers once / always / reject. It can be overridden per agent.
Since v1.1.1 the legacy
toolsboolean config has been merged intopermission.- Best for
For individuals and teams that need 75+ providers, TUI/headless server/desktop forms, and command-level permission checks. Not for newcomers who want zero-config pure GUI.
Top misconception
- Reading the provider support list as entitlement — a connector being available is not the same as having a model subscription
- Assuming it executes commands with full rights by default — the README says it asks before bash commands
- Assuming access to a provider means it is free — model costs are still yours
Evidence sources
Checked 2026-10-23,Content updated 2026-10-23。This is the date of the entry, not a claim that every field was rechecked that day.
| Type | Name | Link |
|---|---|---|
| repo | OpenCode · repository README (now at anomalyco/opencode; old sst/opencode 301-redirects; rolling check 2026-10-23) | https://github.com/anomalyco/opencode |
| changelog | OpenCode · Releases (v1.19.4 @ 2026-10-22) | https://github.com/anomalyco/opencode/releases |
| changelog | OpenCode · official site Changelog | https://opencode.ai/changelog |
| docs | OpenCode · official docs | https://opencode.ai/docs |
| docs | OpenCode · official docs · Providers (75+ providers, catalog, custom providers, credential storage) | https://opencode.ai/docs/providers |
| docs | OpenCode · official docs · Models (75+ providers, local models, default model and variants) | https://opencode.ai/docs/models |
| docs | OpenCode · official docs · Permissions (allow/ask/deny, fine-grained rules, external_directory, defaults) | https://opencode.ai/docs/permissions |
| docs | OpenCode · official docs · Tools (built-in tool list, subagents, MCP, custom tools) | https://opencode.ai/docs/tools |
| docs | OpenCode · official docs · MCP Servers (local/remote, OAuth, management) | https://opencode.ai/docs/mcp-servers |
| docs | OpenCode · official docs · Config (compaction, watcher, permission, server) | https://opencode.ai/docs/config |
| docs | OpenCode · official docs · Server (opencode serve, session API, fork/summarize) | https://opencode.ai/docs/server |
Test notes
This site has not completed measured runs.
The test protocol is at protocols/coding/_protocol.md.
Suggested measurement: the testing focus for this tool should be the real interruption cost of the "ask-before-command" design in long tasks — this is its core workflow difference from full-autonomy tools.
Change-log notes
| Version | Date |
|---|---|
v1.18.33 | 2026-09-28 |
Update cadence is very high (release and changelog both on 09-28).
Permission design: asks before executing
This is the single most notable line in this entry, from the README:
Asks permission before running bash commands
Most terminal agents execute commands automatically by default; OpenCode asks.
This lowers the risk of "the model deleting files / running dangerous commands by mistake", at the cost of interrupting the flow. The README also mentions YOLO, likely an optional no-ask mode, but the exact switch was not verified the 2026-10-08 pass — recorded as unknown.
Subagent capability
Also included is a general subagent for complex searches and multistep tasks.
A built-in general subagent for complex searches and multistep tasks. This lets it handle "investigate first, then act" style tasks that need multiple rounds.
The subagent's scheduling details and token overhead were not verified the 2026-10-08 pass.
ACP: Agent Client Protocol
This is its architectural highlight:
ACP load/restore/fork preserves model, effort and mode boundaries (translated from the dossier's Chinese paraphrase)
"Preserving model and effort across forks" is a detail worth noting — many tools lose settings after a fork, forcing you to re-set them every time.
Stability fixes are a meaningful signal
Referring to AgentClash's verification record of OpenCode v1.18.33 (09-28), that version contains four fixes:
- Cloudflare timeout control
- MCP browser launch-failure feedback
- debug credential redaction
- Gemini reasoning-parameter correction
Two of the four relate to permissions/reliability (credential redaction, MCP launch-failure feedback). This shows the project's reliability investment goes into permissions and diagnosability — but it also means these areas had problems before.
Confidence-level notes
Why confidence: partial:
- ✅ Verified: repository, license (MIT), latest version and date, star count (220,242 · rolling check 2026-10-23, highest in this track), permission policy (allow/ask/deny fine-grained), ACP, install methods; rolling-check addition: the repo has migrated from
sst/opencodetoanomalyco/opencode(GitHub 301 redirect confirms it; the repo homepage field = opencode.ai); 2026-10-08 this-round addition: 75+ providers and local models, built-in tool list and MCP integration,compactioncontext policy - ❌ Not verified: the exact YOLO-mode switch, subagent scheduling details and token overhead
Related entries
- Aidersame category of tool, but maintenance has slowed
- Codex CLIsame category of tool, with different architectural emphasis
- Kilo Codean official downstream: Kilo docs state verbatim "The Kilo CLI is a fork of OpenCode" — configs can be compared side by side
- Filesystem MCP ServerOther layer · MCP tools
Same-category peers
Look at these three before reading further
Selected by overlap in jobs, not ranked. Compare where it runs, licence and status first; if one of the three fails, skip it.
| Object | Where | Licence | Evidence / status | What it is for |
|---|---|---|---|---|
| Amp | Cloud / API | Not checked | 8 questions checked Active | Sourcegraph's Amp: a frontier coding agent spanning CLI + cloud orbs + r |
| Claude Code CLI | Local / self-hosted | Not checked | 8 questions checked Active | A terminal coding and tool-execution product, with a CHANGELOG and Atom |
| Codex CLI | Local / self-hosted | Not checked | 8 questions checked Active | OpenAI's official terminal coding agent, written in Rust, architecturall |
This page is generated from the ai-handbook data layer (CC BY 4.0).
For the judging criteria and method notes, see METHODOLOGY.md.