npm install -g opencode-ai
~/.config/opencode/opencode.json
{
"$schema": "https://opencode.ai/config.json",
"provider": {
"anthropic": {
"options": {
"baseURL": "https://365sent.com/v1"
}
}
}
}
~/.local/share/opencode/auth.json
{
"google": {
"type": "api",
"key": "1111111111111111111"
},
"anthropic": {
"type": "api",
"key": "sk-xxxxxxxxxxxxx"
}
}
如有疑问请加客服微信
在这里,您将获得 AI 使用上的任何帮助,快速上手让你的研测效率得到大幅提升

客服微信