OpenCode(AI IDE 平台市场研究)


1. 介绍

OpenCode 是开源社区(anomalyco/opencode,原 sst/opencode)维护的开源 AI 编程代理,官方定位为「The open source AI coding agent」——「Claude Code 的开源替代」赛道中星标最大的项目。它以终端为主要形态,同时提供桌面应用(Beta)与 IDE 扩展,采用 MIT 许可证,工具本体免费(BYOK)。

在本组的开源谱系中,OpenCode 与 Codex CLI(Apache 2.0)、Gemini CLI(Apache 2.0)、Cline(Apache 2.0)同属开源路线,但它的独特取值是:模型侧的极致开放。75+ 模型提供商经 Models.dev 接入(含本地模型),并支持以 GitHub Copilot、ChatGPT Plus/Pro 现有订阅账号直接登录复用——这是「用别人付过的费,跑自己的 Harness」的商业套利设计,也是它与模型厂自有工具的结构性差异。

1.1. 开发商与产品沿革

项目内容来源
开发商开源社区(anomalyco/opencode,原 sst/opencode)官方仓库
许可证MIT官网
GitHub 数据官网自述 195K stars、950 贡献者、16M 月活开发者(第三方快照区间 172,198—195,000 stars、13,000+ commits)官网(已补抓核实);快照口径注明
形态终端 + 桌面应用(Beta)+ IDE 扩展官网
安装`curl -fsSL https://opencode.ai/install \bash` 一行安装官网
关联事件2026 年初 Anthropic 曾短暂封禁 OpenCode 访问 Claude API,后恢复第三方报道,

数据口径声明:195K stars 为官网自述口径,第三方快照随时间在 172K—195K 区间波动;「16M 月活开发者」为官方自述,无第三方佐证。本文引用时一律注明口径。

1.2. 定位与差异化主线

OpenCode 的差异化主线有三:

  1. LSP 注入:自动为 LLM 加载对应语言的 LSP(Language Server Protocol),把类型、符号、诊断信息注入上下文——这是把编译器级语义理解引入 L1 的标志性设计,详见 5.1 节。
  2. 模型侧全开放:75+ 提供商、本地模型、订阅账号复用(GitHub Copilot / ChatGPT Plus/Pro),把模型成本选择权完全交给使用者。
  3. 隐私优先:不存储代码与上下文。

与 Codex CLI 对照:两者同为开源终端智能体,Codex CLI 的重心在沙箱与审批的工程化(详见 05-codex-cli.md),OpenCode 的重心在模型接入与语义上下文——前者押注「执行治理」,后者押注「接入自由」。

1.3. 商业模式与定价

内容来源
工具本体免费(MIT 开源)官网
模型成本BYOK:使用者按所接提供商付费;或复用已有订阅账号(GitHub Copilot / ChatGPT Plus/Pro)官网
Zen 模型层官方精选的、针对编程代理测试优化的模型组;定价未公开,[待填写]官网口径
企业治理无内置组织级管控,需自建推断

2. 名词解释

术语英文 / 缩写释义
LSPLanguage Server Protocol语言服务器协议:提供补全、跳转、诊断等语言智能的标准协议;OpenCode 自动为 LLM 加载对应 LSP
LSP 注入LSP Injection把 LSP 产出的类型定义、符号信息、诊断错误注入模型上下文,使模型获得编译器级语义
Models.devModels.dev模型提供商注册库,OpenCode 经其接入 75+ 提供商
多会话Multi-session在同一项目上并行运行多个智能体会话的能力
会话分享链接Share Links把任意会话生成链接供他人查阅或协作调试
ZenZenOpenCode 官方精选的模型层:针对编程代理场景测试优化的模型组
BYOKBring Your Own Key使用者自带模型 API Key,工具方不抽取模型差价
订阅账号复用Subscription Reuse以现有 GitHub Copilot 或 ChatGPT Plus/Pro 订阅登录,复用其模型额度跑第三方 Harness
client-server 架构Client-Server交互客户端(终端/桌面/IDE)与智能体服务内核分离的架构
隐私优先Privacy-First不存储代码与上下文的数据策略
沙箱Sandbox执行隔离机制;OpenCode 的沙箱实现细节
诊断信息DiagnosticsLSP 报告的编译错误、告警与提示,可作为智能体的机械判据输入
断供事件API Access Ban2026 年初 Anthropic 短暂封禁 OpenCode 访问 Claude API 后恢复的事件

3. 功能说明

3.1. 核心能力

官网列出的核心特性(本篇撰写时已直接补抓核实):

能力说明Harness 层位
LSP enabled自动为 LLM 加载正确的 LSPL1
Multi-session同一项目上并行启动多个智能体L3
Share links任意会话生成分享链接,供参考或调试L4
GitHub Copilot 登录以 GitHub 账号复用 Copilot 订阅额度模型层
ChatGPT Plus/Pro 登录以 OpenAI 账号复用订阅额度模型层
Any model75+ 提供商(Models.dev),含本地模型模型层
Any editor终端、桌面应用、IDE 扩展三形态分发

3.2. 多形态入口

形态状态适用
终端主形态脚本化、长任务、SSH 环境
桌面应用Beta图形界面偏好者
IDE 扩展可用编辑器内嵌使用

3.3. 模型接入

接入路径四条:Models.dev 注册的 75+ 提供商 API Key;GitHub Copilot 订阅登录;ChatGPT Plus/Pro 订阅登录;本地模型。这四条路径覆盖了从「零额外成本」(订阅复用)到「完全离线」(本地模型)的全部预算形态——在模型成本上,OpenCode 是本组弹性最大的平台。


4. 平台架构

组件职责
客户端层终端 TUI / 桌面应用(Beta)/ IDE 扩展,共享同一服务内核
服务内核(server)会话管理、上下文装配、工具执行、智能体循环
LSP 集成层按项目语言自动加载 LSP,产出类型/符号/诊断注入上下文
模型网关Models.dev 75+ 提供商 + 订阅复用 + 本地模型
会话存储本地会话记录与分享链接生成

图 18-1|OpenCode 的 client-server 架构与 LSP 上下文注入

OpenCode:client-server 分离与 LSP 注入 客户端层(共享同一内核) 终端 TUI · 桌面应用(Beta) · IDE 扩展 服务内核(server) 会话管理 · 上下文装配 · 工具执行 · 智能体循环 LSP 集成层 类型 · 符号 · 诊断注入 模型网关 Models.dev 75+ 提供商 · 订阅复用 · 本地模型 本地会话存储 隐私优先:不存代码与上下文

示意图:基于官网与本文分析绘制。

架构要点:client-server 分离使「同一内核、多入口」成为可能,与 Claude Code 的 cli/core 分层(详见 02-claude-code.md)、Gemini CLI 的 cli/core 两包(详见 13-gemini-cli.md)思路同向。OpenCode 的增量在于 LSP 集成层被独立成层——它不是客户端的功能,而是内核级的上下文供给。


5. Harness 设计

5.1. L1 上下文工程层

OpenCode 的 L1 标志是 LSP 注入

  1. 编译器级语义。自动加载的 LSP 向模型供给类型定义、符号关系与实时诊断。与向量索引路线(Cursor,详见 01-cursor.md)相比,LSP 提供的是确定性语义——类型错了会立刻报错,不存在检索不准的问题。这直接压缩了「智能体引用不存在的符号」这类幻觉空间。
  2. 诊断作为机械判据。LSP 的诊断信息同时是 L5 的机械判据来源:编辑后诊断是否清零,是比测试更快的即时反馈环。
  3. 未公开项:上下文压缩策略、规则文件(AGENTS.md 类)的加载层级细节 。

5.2. L2 工具与执行层

机制说明
终端执行shell 命令与文件操作
多表面终端 / 桌面 / IDE 共享内核
沙箱实现细节
审批模型审批策略细节

L2 是 OpenCode 相对薄弱的披露面:与 Codex CLI 的 OS 级沙箱 × 审批正交矩阵、Claude Code 的 Seatbelt/bubblewrap 披露相比,OpenCode 的隔离与审批机制缺乏公开细节,高风险场景选型时是明确扣分项,。

5.3. L3 编排与控制层

多会话并行是 L3 的核心能力:同一项目上并行运行多个智能体,互不干扰。子智能体机制、计划模式的官方文档细节未核验,。与组内对照,OpenCode 的 L3 定位接近「多窗口」而非「深编排」——并行度由使用者手工管理,无 Agent Manager 式的统一控制台。

5.4. L4 记忆与状态层

机制持久化范围说明
会话管理本地会话记录与恢复
Share links可外链会话快照可分享协作
跨会话记忆未知

Share links 是 L4 的差异化设计:会话状态不只服务于本人恢复,还能以链接形式进入团队协作流(评审、调试求助)——把「状态外化」推进到「状态可分享」。

5.5. L5 评估与观测层

OpenCode 无原生评估观测体系(本批候选中最弱一档):无轨迹追踪产品、无回归集、无效果看板。L5 的实际形态是「外置」的——诊断信息提供即时反馈,测试与 CI 提供判据,其余由使用者自建。这与「工具免费、治理自建」的开源定位一致。

5.6. L6 治理与安全层

治理维度实现
MIT 可审计全源码开放,Harness 本身可审计
隐私优先不存储代码与上下文
BYOK 数据边界模型调用直连所选担保商,工具方不经手模型数据
组织级治理无内置,需自建
断供风险2026 年初 Claude API 短暂封禁事件暴露上游依赖风险,

L6 的结构性风险在上游依赖:订阅复用与 BYOK 模式下,模型访问权的最终控制方是提供商而非 OpenCode——Anthropic 封禁事件说明「开源 Harness + 商用 API」的组合存在单点断供风险,企业采用时应保持多提供商冗余。

5.7. 六层能力小结

评级一句话判断
L1 上下文工程★★★LSP 注入提供编译器级确定性语义,全组独有
L2 工具与执行★★终端 + 多表面;沙箱与审批披露不足
L3 编排与控制★★多会话并行;深编排机制待核实
L4 记忆与状态★★会话管理 + 可分享链接;跨会话记忆未知
L5 评估与观测无原生评估观测,依赖外部自建
L6 治理与安全★★MIT 可审计 + 隐私优先;组织治理自建 + 上游断供风险

6. 实际案例

说明:截至信息截止 2026-09-12,未检索到带对照测量的企业量化案例;以下为公开口径。

  1. 生态规模:官网自述 195K GitHub stars、950 贡献者、13,000+ commits、16M 月活开发者(官方口径,无第三方佐证;stars 第三方快照区间 172K—195K)。即便按保守区间取值,它也是「Claude Code 开源替代」赛道的最大项目。
  2. 贡献者结构:950 贡献者 + 13,000+ commits 表明其演进由社区分布式驱动,非单一公司可控——这与 sst/opencode 转入 anomalyco 的社区迁移历史一致。
  3. 断供事件(第三方报道):2026 年初 Anthropic 短暂封禁 OpenCode 访问 Claude API 后恢复。该事件是「开源 Harness 依赖商用模型 API」结构性风险的首个标志性案例,与组内「开源即治理」叙事构成张力——代码开源了,但模型访问权没有。
  4. 可确认的机制性结论:LSP 注入的思路已被多家厂商跟进(详见 19-jetbrains-junie.md 的 IDE 原生索引路线),说明「把编译器语义喂给模型」正在成为 L1 的收敛方向之一。

7. 总结

7.1. 优势

  1. 模型自由度全组最高:75+ 提供商 + 订阅复用 + 本地模型,成本与供应商风险完全可控于使用者。
  2. LSP 注入:编译器级确定性语义,直接压制符号幻觉。
  3. 多会话并行 + 会话分享:并行度与协作性兼备。
  4. MIT + 隐私优先:源码可审计,代码不出本机存储策略。
  5. 社区规模最大:950 贡献者的分布式演进,生命力强于单一维护者项目。

7.2. 局限

  1. L2/L6 披露最薄:沙箱、审批、凭据保护缺乏公开细节,高风险环境不适合默认选用。
  2. L5 空缺:无原生评估观测,效果体系全靠自建。
  3. 上游断供风险:商用 API 的访问权在提供商手中,历史已有封禁事件。
  4. 官方自述数据:16M 月活等数字无第三方佐证。
  5. 企业治理缺位:无组织级管控与审计,需叠加自建层。

7.3. 适用边界与选型建议

场景是否适用理由
多模型对比、成本敏感的个人/小团队强适用75+ 提供商 + 订阅复用
需要 LSP 语义的强类型语言开发强适用LSP 注入
隐私敏感但可接受本地执行适用不存储 + 本地模型可达
高风险环境的强沙箱需求不适用隔离披露不足,选 Codex CLI / Claude Code
需要组织级治理与审计不适用需自建,选闭源企业档或自建层
开源底座二次开发适用MIT + client-server 架构

选 OpenCode 的判断标准是:你要的是「模型接入自由 + 编译器级上下文」的开源底盘,并能自建治理层。它与 Codex CLI 的取舍判据是:接入自由与 LSP 语义(选 OpenCode)对比沙箱与审批工程化(选 Codex CLI);两者可以并存——用 OpenCode 做日常多模型工作,用 Codex CLI 跑高风险自动化。


信息缺口声明

  1. 沙箱与审批模型的官方文档细节:未核验,。
  2. 子智能体与计划模式机制:官方文档细节未核验,。
  3. 「16M 月活开发者」:官方自述口径,无第三方佐证,。
  4. Zen 模型层定价与构成:未公开,[待填写]
  5. 跨会话记忆机制:未公开,。
  6. Anthropic 封禁事件的时间线与细节:第三方报道,。
  7. GitHub stars 第三方快照区间(172K—195K)随时间波动:引用时须注明口径。
  8. 客户量化案例:未检索到官方一手对照数据,未采用任何营销口径数字。

8. 参考资料

  1. OpenCode 官方网站 — anomalyco / OpenCode 社区,2026。https://opencode.ai
  2. OpenCode 官方文档 — OpenCode 社区,2026。https://opencode.ai/docs
  3. OpenCode GitHub 仓库(MIT) — anomalyco,2025—2026。https://github.com/anomalyco/opencode
  4. Models.dev(模型提供商注册库) — 社区,2026。https://models.dev
  5. Introducing the Model Context Protocol — Anthropic,2024-11-25。https://www.anthropic.com/news/model-context-protocol
  6. Language Server Protocol 规范 — Microsoft / VS Code,2026。https://microsoft.github.io/language-server-protocol/
  7. Terminal-Bench 官方站(模型 + Harness 系统评测口径) — Stanford / Laude Institute,2025—2026。https://www.tbench.ai/
  8. SWE-bench 官方站 — Princeton / 社区,2023—2026。https://www.swebench.com/
  9. Harness engineering: leveraging Codex in an agent-first world — OpenAI,2026-02-11。https://openai.com/index/harness-engineering/
  10. Effective context engineering for AI agents — Anthropic,2025。https://www.anthropic.com/engineering/effective-context-engineering-for-ai-agents
  11. 2025 Stack Overflow Developer Survey — Stack Overflow,2025-07-30。https://survey.stackoverflow.co/2025/
  12. DORA 2025 State of AI-assisted Software Development — Google Cloud / DORA,2025。https://dora.dev/

OpenCode (AI IDE Platform Market Research)

1. Introduction

OpenCode is an open-source AI coding agent maintained by the open-source community (anomalyco/opencode, formerly sst/opencode). Its official positioning is "The open source AI coding agent" — the project with the largest star count in the "open-source alternative to Claude Code" track. It primarily takes the form of a terminal, while also offering a desktop app (Beta) and an IDE extension. It is licensed under MIT, and the tool itself is free (BYOK).

Within this group's open-source genealogy, OpenCode follows the open-source path alongside Codex CLI (Apache 2.0), Gemini CLI (Apache 2.0), and Cline (Apache 2.0), but its distinctive choice is extreme openness on the model side. 75+ model providers are integrated via Models.dev (including local models), and it supports logging in directly to reuse existing subscriptions from GitHub Copilot and ChatGPT Plus/Pro — this is an arbitrage design of "running your own Harness on fees someone else already paid," and it is also the structural difference between it and the model vendors' own tools.

1.1. Developer & Product History

ItemContentSource
DeveloperOpen-source community (anomalyco/opencode, formerly sst/opencode)Official repository
LicenseMITOfficial website
GitHub dataOfficial website self-reported 195K stars, 950 contributors, 16M monthly active developers (third-party snapshot range 172,198—195,000 stars, 13,000+ commits)Official website (re-verified with supplementary crawl); snapshot caliber noted
FormTerminal + desktop app (Beta) + IDE extensionOfficial website
Installation`curl -fsSL https://opencode.ai/install \bash` one-line installOfficial website
Related eventsIn early 2026 Anthropic briefly banned OpenCode's access to the Claude API, later restoredThird-party reporting

Data caliber note: 195K stars is the official website's self-reported caliber; third-party snapshots fluctuate in the 172K—195K range over time; "16M monthly active developers" is the official self-report with no third-party corroboration. This article always notes the caliber when citing.

1.2. Positioning & Differentiation Threads

OpenCode has three differentiation threads:

  1. LSP injection: automatically loads the corresponding language's LSP (Language Server Protocol) for the LLM, injecting types, symbols, and diagnostic information into the context — this is the flagship design for bringing compiler-level semantic understanding into L1; see Section 5.1.
  2. Full openness on the model side: 75+ providers, local models, subscription-account reuse (GitHub Copilot / ChatGPT Plus/Pro), handing the choice of model cost entirely to the user.
  3. Privacy-first: does not store code or context.

Contrast with Codex CLI: both are open-source terminal agents. Codex CLI's focus is the engineering of sandboxing and approval (see 05-codex-cli.md); OpenCode's focus is model integration and semantic context — the former bets on "execution governance," the latter on "integration freedom."

1.3. Business Model & Pricing

ItemContentSource
Tool itselfFree (open-source, MIT)Official website
Model costBYOK: users pay according to the provider they connect to; or reuse an existing subscription account (GitHub Copilot / ChatGPT Plus/Pro)Official website
Zen model layerAn officially curated group of models optimized and tested for coding-agent scenarios; pricing not public, [To be filled]Official website caliber
Enterprise governanceNo built-in organization-level controls; must be self-builtInferred

2. Glossary

TermEnglish / AbbreviationDefinition
LSPLanguage Server ProtocolThe standard protocol providing language intelligence such as completion, navigation, and diagnostics; OpenCode automatically loads the corresponding LSP for the LLM
LSP InjectionLSP InjectionInjecting type definitions, symbol information, and diagnostic errors produced by the LSP into the model context, giving the model compiler-level semantics
Models.devModels.devThe model provider registry through which OpenCode integrates 75+ providers
Multi-sessionMulti-sessionThe ability to run multiple agent sessions in parallel on the same project
Share LinksShare LinksGenerating a link from any session for others to review or collaboratively debug
ZenZenOpenCode's officially curated model layer: a group of models tested and optimized for coding-agent scenarios
BYOKBring Your Own KeyUsers bring their own model API key; the tool does not take a cut on model pricing
Subscription ReuseSubscription ReuseLogging in with an existing GitHub Copilot or ChatGPT Plus/Pro subscription to reuse its model quota for a third-party Harness
Client-Server ArchitectureClient-ServerAn architecture separating the interactive client (terminal/desktop/IDE) from the agent service core
Privacy-FirstPrivacy-FirstA data policy that does not store code or context
SandboxSandboxExecution isolation mechanism; OpenCode's sandbox implementation details
DiagnosticsDiagnosticsCompile errors, warnings, and hints reported by the LSP, usable as mechanical judging input for the agent
API Access BanAPI Access BanThe early-2026 event in which Anthropic briefly banned OpenCode's access to the Claude API and later restored it ()

3. Feature Description

3.1. Core Capabilities

The core features listed on the official website (re-verified directly during the writing of this article with a supplementary crawl):

CapabilityDescriptionHarness Layer
LSP enabledAutomatically loads the correct LSP for the LLML1
Multi-sessionStarts multiple agents in parallel on the same projectL3
Share linksGenerates a share link for any session, for reference or debuggingL4
GitHub Copilot loginReuses Copilot subscription quota with a GitHub accountModel layer
ChatGPT Plus/Pro loginReuses subscription quota with an OpenAI accountModel layer
Any model75+ providers (Models.dev), including local modelsModel layer
Any editorThree forms: terminal, desktop app, IDE extensionDistribution

3.2. Multi-Form Entry Points

FormStatusUse case
TerminalPrimary formScripting, long-running tasks, SSH environments
Desktop appBetaFor those who prefer a GUI
IDE extensionAvailableEmbedded use inside the editor

3.3. Model Integration

There are four integration paths: API keys for the 75+ providers registered on Models.dev; GitHub Copilot subscription login; ChatGPT Plus/Pro subscription login; and local models. These four paths cover the full range of budget profiles from "zero extra cost" (subscription reuse) to "fully offline" (local models) — on model cost, OpenCode is the most flexible platform in this group.


4. Platform Architecture

ComponentResponsibility
Client layerTerminal TUI / desktop app (Beta) / IDE extension, sharing the same service core
Service core (server)Session management, context assembly, tool execution, agent loop
LSP integration layerAutomatically loads the LSP by project language, producing type/symbol/diagnostic content injected into context
Model gatewayModels.dev's 75+ providers + subscription reuse + local models
Session storageLocal session records and share-link generation

Figure 18-1 | OpenCode's client-server architecture and LSP context injection

OpenCode:client-server 分离与 LSP 注入 客户端层(共享同一内核) 终端 TUI · 桌面应用(Beta) · IDE 扩展 服务内核(server) 会话管理 · 上下文装配 · 工具执行 · 智能体循环 LSP 集成层 类型 · 符号 · 诊断注入 模型网关 Models.dev 75+ 提供商 · 订阅复用 · 本地模型 本地会话存储 隐私优先:不存代码与上下文

The diagram is drawn based on the official website and this article's analysis.

Architecture highlights: client-server separation makes "one core, multiple entry points" possible, in line with Claude Code's cli/core layering (see 02-claude-code.md) and Gemini CLI's two-package cli/core design (see 13-gemini-cli.md). OpenCode's increment is that the LSP integration layer is elevated to its own layer — it is not a client feature, but core-level context supply.


5. Harness Design

5.1. L1 Context Engineering Layer

OpenCode's L1 hallmark is LSP injection:

  1. Compiler-level semantics. The automatically loaded LSP supplies the model with type definitions, symbol relationships, and real-time diagnostics. Compared with the vector-index route (Cursor, see 01-cursor.md), the LSP provides deterministic semantics — a wrong type immediately reports an error, with no retrieval-inaccuracy problem. This directly compresses the hallucination space of "the agent referencing a nonexistent symbol."
  2. Diagnostics as mechanical judging. The LSP's diagnostic information also serves as the mechanical judging source for L5: whether diagnostics return to zero after an edit is an instant feedback loop faster than tests.
  3. Not-yet-public items: context-compaction strategy and the loading-hierarchy details of rule files (AGENTS.md-type).

5.2. L2 Tools & Execution Layer

MechanismDescription
Terminal executionShell commands and file operations
Multiple surfacesTerminal / desktop / IDE sharing one core
SandboxImplementation details
Approval modelApproval-policy details

L2 is OpenCode's relatively thin disclosure surface: compared with Codex CLI's OS-level sandbox × approval orthogonal matrix and Claude Code's Seatbelt/bubblewrap disclosures, OpenCode's isolation and approval mechanisms lack public detail, a clear deduction when selecting for high-risk scenarios.

5.3. L3 Orchestration & Control Layer

Parallel multi-session is L3's core capability: running multiple agents in parallel on the same project without interfering with one another. The official-documentation details of the sub-agent mechanism and plan mode are unverified. Compared within the group, OpenCode's L3 positioning is closer to "multiple windows" than "deep orchestration" — parallelism is managed manually by the user, with no Agent-Manager-style unified console.

5.4. L4 Memory & State Layer

MechanismPersistence scopeDescription
Session managementLocalSession records and recovery
Share linksLinkable externallySession snapshots can be shared for collaboration
Cross-session memoryUnknown

Share links are L4's differentiating design: session state not only serves the user's own recovery, but can also enter the team collaboration flow (review, debugging requests) as links — advancing "state externalization" to "state shareability."

5.5. L5 Evaluation & Observability Layer

OpenCode has no native evaluation-observability system (the weakest tier among this batch of candidates): no trace-tracking product, no regression set, no effectiveness dashboard. L5's actual form is "external" — diagnostics provide instant feedback, tests and CI provide judging criteria, and the rest is self-built by the user. This is consistent with the open-source positioning of "free tool, self-built governance."

5.6. L6 Governance & Security Layer

Governance dimensionImplementation
MIT auditableFull source code open; the Harness itself is auditable
Privacy-firstDoes not store code or context
BYOK data boundaryModel calls connect directly to the chosen provider; the tool does not handle model data
Organization-level governanceNot built-in; must be self-built
Supply-cutoff riskThe early-2026 short-lived Claude API ban exposed upstream dependency risk

L6's structural risk lies in upstream dependency: under subscription-reuse and BYOK modes, the ultimate controller of model access rights is the provider, not OpenCode — the Anthropic ban event () shows that the "open-source Harness + commercial API" combination carries a single-point supply-cutoff risk, so enterprises should maintain multi-provider redundancy when adopting.

5.7. Six-Layer Capability Summary

LayerRatingOne-line assessment
L1 Context engineering★★★LSP injection provides compiler-level deterministic semantics, unique in the group
L2 Tools & execution★★Terminal + multiple surfaces; sandbox and approval disclosure insufficient
L3 Orchestration & control★★Parallel multi-session; deep-orchestration mechanism to be verified
L4 Memory & state★★Session management + shareable links; cross-session memory unknown
L5 Evaluation & observabilityNo native evaluation-observability; relies on external self-built
L6 Governance & security★★MIT auditable + privacy-first; org governance self-built + upstream supply-cutoff risk

6. Real-World Cases

Note: As of the information cutoff of 2026-09-12, no corporate quantitative case with controlled measurement was found; the following reflects public accounts.

  1. Ecosystem scale: The official website self-reports 195K GitHub stars, 950 contributors, 13,000+ commits, and 16M monthly active developers (official caliber, no third-party corroboration; stars third-party snapshot range 172K—195K). Even taking the conservative range, it is the largest project in the "open-source Claude Code alternative" track.
  2. Contributor structure: 950 contributors + 13,000+ commits indicate its evolution is community-driven in a distributed way, not controlled by a single company — consistent with the community-migration history of sst/opencode moving to anomalyco.
  3. Supply-cutoff event (third-party reporting): In early 2026 Anthropic briefly banned OpenCode's access to the Claude API and later restored it. This event is the first landmark case of the structural risk of "open-source Harness depending on commercial model APIs," creating tension with the group's "open source as governance" narrative — the code is open source, but model access rights are not.
  4. Confirmable mechanistic conclusion: The LSP-injection idea has already been followed by multiple vendors (see the IDE-native indexing route in 19-jetbrains-junie.md), showing that "feeding compiler semantics to the model" is becoming one of L1's convergence directions.

7. Summary

7.1. Strengths

  1. Highest model freedom in the group: 75+ providers + subscription reuse + local models, giving the user full control over cost and vendor risk.
  2. LSP injection: compiler-level deterministic semantics that directly suppress symbol hallucination.
  3. Parallel multi-session + session sharing: combines parallelism with collaboration.
  4. MIT + privacy-first: source code auditable; a storage policy that keeps code on the local machine.
  5. Largest community: distributed evolution with 950 contributors, more robust than single-maintainer projects.

7.2. Limitations

  1. Thinnest L2/L6 disclosure: sandbox, approval, and credential protection lack public detail; not suitable for default use in high-risk environments.
  2. L5 gap: no native evaluation-observability; the effectiveness system relies entirely on self-building.
  3. Upstream supply-cutoff risk: commercial API access rights are held by the provider; there is already a history of ban events.
  4. Officially self-reported data: figures such as 16M monthly actives have no third-party corroboration.
  5. Missing enterprise governance: no organization-level controls or auditing; a self-built layer must be added.

7.3. Applicability Boundaries & Selection Advice

ScenarioApplicable?Reason
Multi-model comparison, cost-sensitive individuals/small teamsStrongly applicable75+ providers + subscription reuse
Strongly-typed language development requiring LSP semanticsStrongly applicableLSP injection
Privacy-sensitive but acceptable to run locallyApplicableNo storage + local models reachable
Strong sandbox need in high-risk environmentsNot applicableIsolation disclosure insufficient; choose Codex CLI / Claude Code
Need organization-level governance and auditingNot applicableMust be self-built; choose a closed-source enterprise tier or a self-built layer
Secondary development on an open-source baseApplicableMIT + client-server architecture

The criterion for choosing OpenCode is: you want an open-source base offering "model-integration freedom + compiler-level context," and can build the governance layer yourself. Its tradeoff criterion vs. Codex CLI is: integration freedom and LSP semantics (choose OpenCode) versus sandbox-and-approval engineering (choose Codex CLI); the two can coexist — use OpenCode for daily multi-model work and Codex CLI for high-risk automation.


Information-gap statement

  1. Official-documentation details of the sandbox and approval model: unverified.
  2. Sub-agent and plan-mode mechanism: official-documentation details unverified.
  3. "16M monthly active developers": official self-report caliber, no third-party corroboration.
  4. Zen model-layer pricing and composition: not public, [To be filled].
  5. Cross-session memory mechanism: not public.
  6. Timeline and details of the Anthropic ban event: third-party reporting.
  7. GitHub stars third-party snapshot range (172K—195K) fluctuates over time: caliber must be noted when citing.
  8. Customer quantitative cases: no official first-hand controlled data found; no marketing-caliber figures used.

8. References

  1. OpenCode official website — anomalyco / OpenCode community, 2026. https://opencode.ai
  2. OpenCode official documentation — OpenCode community, 2026. https://opencode.ai/docs
  3. OpenCode GitHub repository (MIT) — anomalyco, 2025—2026. https://github.com/anomalyco/opencode
  4. Models.dev (model provider registry) — community, 2026. https://models.dev
  5. Introducing the Model Context Protocol — Anthropic, 2024-11-25. https://www.anthropic.com/news/model-context-protocol
  6. Language Server Protocol specification — Microsoft / VS Code, 2026. https://microsoft.github.io/language-server-protocol/
  7. Terminal-Bench official site (model + Harness system evaluation caliber) — Stanford / Laude Institute, 2025—2026. https://www.tbench.ai/
  8. SWE-bench official site — Princeton / community, 2023—2026. https://www.swebench.com/
  9. Harness engineering: leveraging Codex in an agent-first world — OpenAI, 2026-02-11. https://openai.com/index/harness-engineering/
  10. Effective context engineering for AI agents — Anthropic, 2025. https://www.anthropic.com/engineering/effective-context-engineering-for-ai-agents
  11. 2025 Stack Overflow Developer Survey — Stack Overflow, 2025-07-30. https://survey.stackoverflow.co/2025/
  12. DORA 2025 State of AI-assisted Software Development — Google Cloud / DORA, 2025. https://dora.dev/