本文由 AI 分析生成
建立時間: 2026-01-09 來源: https://x.com/canghe/status/2009298632823210304
Summary
This post introduces OpenCode, the open-source alternative to Claude Code, which has reached 51.7k GitHub stars. Unlike the closed Claude Code (which mainly supports Anthropic’s own models), OpenCode supports nearly any model provider and offers four free models including GLM-4.7, MiniMax M2.1, and Grok code fast. It matches most Claude Code features (built-in LSP, subagents, free model binding) and, with the oh-my-opencode plugin, even supports Claude Skills. The author covers both the desktop client (beginner-friendly point-and-click) and CLI install (npm install -g opencode-ai), highlighting Build/Plan agent modes and /model, /theme, /mcp commands.
本文介紹 Claude Code 的開源替代品 OpenCode,其 GitHub Star 已達 51.7k。相較於封閉、主要只支援 Anthropic 自家模型的 Claude Code,OpenCode 幾乎支援所有模型廠商,並提供四款免費模型,含 GLM-4.7、MiniMax M2.1 與 Grok code fast。它具備 Claude Code 多數功能(內建 LSP、子代理、自由綁定模型),搭配 oh-my-opencode 插件甚至支援 Claude Skills。作者介紹了桌面端(適合小白、點點點即可)與 CLI 安裝(npm install -g opencode-ai),並說明 Build/Plan 兩種 agent 模式與 /model、/theme、/mcp 指令。
Key Points
- OpenCode is an open-source Claude Code clone at 51.7k GitHub stars, motivated by Claude Code being closed and tied mostly to Anthropic models.
- It supports nearly any model provider; four models are free to use, including GLM-4.7, MiniMax M2.1, and Grok code fast.
- Feature parity with Claude Code: built-in LSP, subagent support, and free binding of multiple model vendors.
- The oh-my-opencode plugin extends it with richer capabilities including Claude Skills support; the project reportedly has ~$24,000 invested.
- Two install forms: a beginner-friendly desktop client (download from opencode.ai) and CLI (
npm install -g opencode-ai), with hacker-style TUI aesthetics. - Built-in Build and Plan agent modes (toggle with Tab);
/modellists models,/themeswitches themes,/mcplists MCP tools.
Insights
The post is part of a broader 2026 narrative (shared with the GLM-4.7 beginner guide in this batch) that open-source coding agents plus free/cheap Chinese models are eroding Claude Code’s moat — the recurring complaint about Anthropic account bans is the emotional driver behind adoption. Notably, OpenCode’s openness lets it absorb Claude’s own ecosystem (Skills via oh-my-opencode), so the differentiation is freedom and model flexibility rather than novel capability. The casual mention of building an AI comic app with GLM-4.7 signals these tools are already viable for real projects, not just demos.
Connections
Raw Excerpt
OpenCode 就是开源版的 Claude Code,目前在 GitHub 上已经狂飙到 51.7k 的 Star。