OpenCode
Conectați OpenCode prin API-ul Model Gate compatibil cu Anthropic
OpenCode
Configurați furnizorul antropic în ~/.config/opencode/opencode.jsonc pe Linux/macOS sau C:\Users\%USERNAME%\.config\opencode\opencode.jsonc pe Windows.
{
"$schema": "https://opencode.ai/config.json",
"provider": {
"anthropic": {
"options": {
"baseURL": "https://api.model-gate.com/v1",
"apiKey": "mg_live_..."
}
}
}
}
Pentru OpenCode, baseURL include /v1. Salvați fișierul și lansați OpenCode în mod normal.