配置步骤
创建配置文件
在项目根目录创建 opencode.json配置文件:
{
"$schema": "https://opencode.ai/config.json",
"theme": "opencode",
"provider": {
"google": {
"options": {
"apiKey": "YOUR_API_KEY_HERE",
"baseURL": "https://llmoxy.com/v1"
}
}
},
"model": "google/gpt-5.4",
"autoupdate": true
}
配置说明
- apiKey:将
YOUR_API_KEY_HERE替换为您的 LLMoxy 令牌 - baseURL:API 接入点
https://llmoxy.com/v1 - model:使用
google/gpt-5.4模型
💡 提示 请使用 auto 分组的令牌。配置完成后,OpenCode 将自动使用 LLMoxy 的 API 服务。
