zgba

opencode(开源终端 AI 编程 Agent) 评测 2026

Anomaly 团队(原 SST)出品的开源终端 AI 编程 Agent,MIT 协议;GitHub 约 21 万 Star(2026-10 核实,仓库已从 sst/opencode 迁至 anomalyco/opencode)。provider-agnostic:75+ LLM 供应商任意切换、自带密钥(BYOK)、Ollama/LM Studio 本地模型。核心免费,托管套餐 Go $10/月、Go Plus $40/月、Zen 按量(2026-10 核实),价格以官网为准。

Open-source (MIT) terminal AI coding agent from the Anomaly team (formerly SST): ~210K GitHub stars (verified Oct 2026; repo moved from sst/opencode to anomalyco/opencode). Provider-agnostic — 75+ LLM providers, BYOK, local models via Ollama/LM Studio. Core free; managed tiers Go $10/mo, Go Plus $40/mo, Zen pay-as-you-go (verified Oct 2026). Price per official site.

⭐ 208k+ stars 📜 MIT 🏷️ agent

概述 Overview

Anomaly 团队(原 SST)出品的开源终端 AI 编程 Agent,MIT 协议;GitHub 约 21 万 Star(2026-10 核实,仓库已从 sst/opencode 迁至 anomalyco/opencode)。provider-agnostic:75+ LLM 供应商任意切换、自带密钥(BYOK)、Ollama/LM Studio 本地模型。核心免费,托管套餐 Go $10/月、Go Plus $40/月、Zen 按量(2026-10 核实),价格以官网为准。

Open-source (MIT) terminal AI coding agent from the Anomaly team (formerly SST): ~210K GitHub stars (verified Oct 2026; repo moved from sst/opencode to anomalyco/opencode). Provider-agnostic — 75+ LLM providers, BYOK, local models via Ollama/LM Studio. Core free; managed tiers Go $10/mo, Go Plus $40/mo, Zen pay-as-you-go (verified Oct 2026). Price per official site.

专家点评 Expert Take

opencode 赢得开源编程智能体竞赛的原因只有一个:它拒绝锁定你。Claude Code 想要你的 Anthropic 账单,Cursor 想要你的订阅——opencode 只想要你的 API 密钥,而且在你注重隐私时,它用本地模型同样好用。计划/构建双智能体分工(只读的计划智能体用于安全探索,完整权限的构建智能体)是终端智能体中最好的默认安全设计。诚实的代价是配置开销:你用选择换掉了精致的单一供应商上手体验,而且 2.0 版本下旧插件无法运行。如果你已经为 Anthropic API 额度付费,opencode + BYOK 是获得 Claude 驱动终端智能体最便宜的路径。

opencode won the open-source coding-agent race for one reason: it refuses to lock you in. Claude Code wants your Anthropic bill, Cursor wants your subscription — opencode just wants your API key, and it works just as well with a local model when you care about privacy. The plan/build dual-agent split (read-only plan agent for safe exploration, full-access build agent) is the best default safety design among terminal agents. The honest cost: configuration overhead. You trade a polished, single-vendor onboarding for choice, and on 2.0 old plugins don't run. If you already pay for Anthropic API credits, opencode + BYOK is the cheapest path to a Claude-powered terminal agent.

优点 Pros

  • ✓ 完全 MIT 开源——GitHub 上最大的编程智能体社区(约 21 万 Star)
  • ✓ 零模型锁定:BYOK、75+ 供应商、本地模型,甚至现有的 Copilot/ChatGPT 登录
  • ✓ 计划模式为探索陌生代码提供了最安全的默认设置
  • ✓ 真实的 LSP 诊断和 Git 级撤销让 AI 编辑可审计
  • ✓ Fully MIT-licensed — the largest coding-agent community on GitHub (~210K stars)
  • ✓ Zero model lock-in: BYOK, 75+ providers, local models, even existing Copilot/ChatGPT logins
  • ✓ Plan mode gives the safest default for exploring unfamiliar code
  • ✓ Real LSP diagnostics and git-level undo make AI edits auditable

缺点 Cons

  • ✗ BYOK 的配置开销——供应商需要自己配置
  • ✗ 桌面应用仍标注为 beta;终端才是成熟路径
  • ✗ 发布节奏快、容易出 bug;v2.0 会破坏旧插件
  • ✗ BYOK setup overhead — you configure providers yourself
  • ✗ Desktop app still labeled beta; the terminal is the mature path
  • ✗ Fast, bug-prone release cadence; v2.0 breaks old plugins

核心功能 Key Features

应用场景 Use Cases

访问官网 Visit Official Website → 查看工具页 View Tool Page

结论 Verdict

opencode(开源终端 AI 编程 Agent)是同类 AI 工具中的顶级选择(208k+ GitHub stars)。凭借庞大的开发者社区与持续更新,2026 年值得推荐。

opencode is a top-tier agent solution with 208k+ GitHub stars. Its large developer community and ongoing updates make it a recommended choice in 2026.

常见问题 Frequently Asked Questions

什么是 opencode?

opencode 是 Anomaly(原 SST)团队出品的开源 MIT 协议 AI 编程智能体,可在终端、桌面应用和 IDE 扩展中运行。其决定性特征是供应商无关:可连接 75+ LLM 供应商、支持自带 API 密钥(BYOK),并通过 Ollama 或 LM Studio 运行本地模型。截至 2026 年 10 月,它是 GitHub 上 Star 最多的开源编程智能体,约 21 万 Star。

opencode 免费吗?

核心智能体免费且开源(MIT)——你只需为所连接的模型付费。截至 2026 年 10 月,官方托管套餐为 Go($10/月)和 Go Plus($40/月,面向开放模型),Zen 为按量计费($20 起充)。价格会变化,使用前请在 opencode.ai 确认当前价格。

opencode 与 Claude Code 有何不同?

Claude Code 是 Anthropic 的官方智能体,只锁定 Claude 模型;opencode 供应商无关——通过一个工具使用 Claude、GPT、Gemini、开放模型或本地模型。opencode 采用 MIT 协议、完全开源,内置计划/构建智能体模式,而 Claude Code 捆绑 Anthropic 生态(skills、自动记忆),并需要付费 Claude 套餐。许多开发者通过 BYOK 在 opencode 中使用 Claude 模型。

sst/opencode 仓库怎么了?

SST 团队更名为 Anomaly 后,仓库从 sst/opencode 迁移到了 anomalyco/opencode。旧链接会自动跳转,但请更新书签和安装脚本,改用新仓库名和 opencode.ai 上的最新安装说明。

What is opencode?

opencode is an open-source, MIT-licensed AI coding agent from the Anomaly (formerly SST) team that runs in your terminal, as a desktop app, and as an IDE extension. Its defining trait is provider-agnosticism: it connects to 75+ LLM providers, lets you bring your own API keys (BYOK), and runs local models via Ollama or LM Studio. As of October 2026 it is the most-starred open-source coding agent on GitHub with roughly 210K stars.

Is opencode free?

The core agent is free and open source (MIT) — you only pay for the models you connect. As of October 2026 the official managed tiers were Go ($10/month) and Go Plus ($40/month) for open models, and Zen as pay-as-you-go from a $20 balance. Pricing changes; confirm the current rates on opencode.ai before relying on them.

How is opencode different from Claude Code?

Claude Code is Anthropic's official agent and locks you to Claude models; opencode is provider-agnostic — use Claude, GPT, Gemini, open models, or local models through one tool. opencode is MIT-licensed and fully open source with built-in plan/build agent modes, while Claude Code bundles Anthropic's ecosystem (skills, auto memory) and requires a paid Claude plan. Many developers run Claude models through opencode via BYOK.

What happened to the sst/opencode repository?

The repository moved from sst/opencode to anomalyco/opencode when the SST team became Anomaly. Old links redirect, but update your bookmarks and install scripts to the new repository name and to the current install instructions on opencode.ai.