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.
Modes
Different modes for different use cases.
⚙️配置
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.
LSP Servers
OpenCode 集成了你的 LSP 服务器。
MCP 服务器
添加本地和远程 MCP 工具。
ACP Support
Use OpenCode in any ACP-compatible editor.
Agent Skills
Define reusable behavior via SKILL.md definitions
自定义工具
创建 LLM 可以在 opencode 中调用的工具。