← All docs

opencode

Example openai-compatible provider configuration.

Add a provider to opencode.json.

{
  "provider": {
    "everyais": {
      "npm": "@ai-sdk/openai-compatible",
      "options": {
        "baseURL": "https://api.everyais.com/v1",
        "apiKey": "{env:EVERYAIS_API_KEY}"
      },
      "models": {
        "everyais/claude-opus-5": { "name": "Claude Opus 5" },
        "everyais/gemini-3-5-flash": { "name": "Gemini 3.5 Flash" }
      }
    }
  }
}

Look up the IDs to put in models with GET /v1/models or in the model catalog.