OpenCode 文档
完整的 OpenCode 参考文档,从官方仓库同步。包含配置、提供商、工具、MCP 服务器等内容。
📚核心
🚀使用
TUI
Using the OpenCode terminal user interface.
CLI
OpenCode CLI 选项和命令。
Web
Using OpenCode in your browser.
IDE
The OpenCode extension for VS Code, Cursor, and other IDEs
Zen
Curated list of models provided by OpenCode.
Share
Share your OpenCode conversations.
GitHub
Use OpenCode in GitHub issues and pull-requests.
GitLab
Use OpenCode in GitLab issues and merge requests.
OpenCode Plan 与 Build 模式详解
比较 OpenCode Plan 与 Build 的用途,用 Tab 切换代理,配置权限,并从审阅方案推进到经过验证的代码修改。
⚙️配置
Tools
Manage the tools an LLM can use.
Rules
Set custom instructions for opencode.
Agents
配置和使用专用 agents。
Models
Configuring an LLM provider and model.
Themes
Select a built-in theme or define your own.
Keybinds
Customize your keybinds.
命令
为重复性任务创建自定义命令。
Formatters
OpenCode uses language specific formatters.
Permissions
Control which actions require approval to run.
OpenCode LSP 配置与故障排查
启用 OpenCode LSP,配置语言服务器,并针对 LSPs are disabled、TypeScript、Python 和 Go 的常见问题逐步排查。
MCP 服务器
添加本地和远程 MCP 工具。
ACP Support
Use OpenCode in any ACP-compatible editor.
Agent Skills
Define reusable behavior via SKILL.md definitions
自定义工具
创建 LLM 可以在 opencode 中调用的工具。