Skip to content
Apixo
Tools

OpenCode

Configure OpenCode to use Apixo models.

OpenCode reads ~/.config/opencode/opencode.json (or opencode.json in your project). The easiest way: download the file with your key filled in from Dashboard → Setup, or ask the bot with /setup.

Minimal example:

{
  "$schema": "https://opencode.ai/config.json",
  "model": "apixo/gpt-6-astra",
  "provider": {
    "apixo": {
      "npm": "@ai-sdk/openai-compatible",
      "name": "Apixo",
      "options": { "baseURL": "https://api.apixoai.online/v1", "apiKey": "sk-apixo-..." },
      "models": {
        "gpt-6-astra": { "name": "gpt-6-astra" },
        "glm-5.2": { "name": "glm-5.2" }
      }
    },
    "apixo-claude": {
      "npm": "@ai-sdk/anthropic",
      "name": "Apixo — Claude",
      "options": { "baseURL": "https://api.apixoai.online/v1", "apiKey": "sk-apixo-..." },
      "models": { "claude-fable-5": { "name": "claude-fable-5" } }
    }
  }
}

Run opencode and choose a model with /models.