OpenCode

Connetti OpenCode tramite l'API Model Gate compatibile con Anthropic

OpenCode

Configura il provider antropico in ~/.config/opencode/opencode.jsonc su Linux/macOS o C:\Users\%USERNAME%\.config\opencode\opencode.jsonc su Windows.

{
  "$schema": "https://opencode.ai/config.json",
  "provider": {
    "anthropic": {
      "options": {
        "baseURL": "https://api.model-gate.com/v1",
        "apiKey": "mg_live_..."
      }
    }
  }
}

Per OpenCode, baseURL include /v1. Salva il file e avvia OpenCode normalmente.