集成/OpenCode
OpenCode
开源终端编码代理,支持自定义 OpenAI 兼容服务商。
配置步骤
编辑 ~/.config/opencode/opencode.json:
json
{
"provider": {
"bigmodel": {
"npm": "@ai-sdk/openai-compatible",
"options": {
"baseURL": "https://www.wangyidaai.com/v1",
"apiKey": "你的_API_KEY"
},
"models": {
"你选的模型ID": {}
}
}
}
}保存后运行 opencode,用 /models 切到该服务商下的模型。
更新时间:2026-08-24