
安装
1
安装 OpenCode
2
初始化项目
3
配置 MCP Server
在项目根目录的
opencode.json 中添加 MCP 配置:4
启动并使用
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
开源 AI 编程 TUI,支持 MCP 和多提供商,本地优先。

安装 OpenCode
# macOS
brew install sst/tap/opencode
# 或者使用 Go 安装
go install github.com/sst/opencode@latest
初始化项目
opencode init
配置 MCP Server
opencode.json 中添加 MCP 配置:{
"mcp": {
"dropcv": {
"url": "https://api.dropcv.work/api/external/v1/mcp/mcp",
"headers": {
"Authorization": "Bearer <你的 API Key>"
}
}
}
}
启动并使用
opencode
Was this page helpful?
