⚠️ 注意:Windows 系统需先安装 Git for Windows(下载地址:https://git-scm.com/install/windows);全平台需确保网络可正常访问外部资源。
打开终端/命令行工具,执行一键安装命令:
备选安装方式(Node.js 环境):
若一键安装失败,可先安装 Node.js(v18+),再执行:
注: ~代表用户主目录:Windows 为C:\Users\你的用户名,macOS/Linux 为/Users/你的用户名;无对应文件/目录请手动创建(Windows 需开启「显示隐藏的项目」才能看到以.开头的文件夹)。
~/.config/opencode/opencode.json 文件,粘贴以下内容(固定对接 api.echoflow.cn):{
"$schema": "https://opencode.ai/config.json",
"provider": {
"anthropic": {
"options": {
"baseURL": "https://api.echoflow.cn/v1"
}
}
}
}api.echoflow.cn → 控制台 → API令牌 → 添加令牌,务必选择「claude 专属」分组(选其他分组无法使用),复制生成的 sk- 开头令牌;~/.local/share/opencode/auth.json 文件,替换 sk-xxxxxxxxxxxxx 为你的实际令牌:{
"anthropic": {
"type": "api",
"key": "sk-xxxxxxxxxxxxx"
}
}/models 并回车;扫码加入 Apifox 微信交流群
在这里,获得 Apifox 使用上的任何帮助,快速上手让你的研测效率得到大幅提升

扫码加入交流群