AONISDocs

Integrations

OpenCode

Connect OpenCode to Aonis using the OpenAI-compatible provider.

Verified

Configuration

Add this configuration to your OpenCode configuration file.

json · OpenCode configuration
{
  "$schema": "https://opencode.ai/config.json",
  "provider": {
    "aonis": {
      "npm": "@ai-sdk/openai-compatible",
      "name": "Aonis",
      "options": {
        "baseURL": "https://api.aonis.space/v1",
        "apiKey": "YOUR_AONIS_API_KEY"
      },
      "models": {
        "claude-sonnet-5": {}
      }
    }
  }
}

Select a model

Start OpenCode and select claude-sonnet-5 under the Aonis provider.

Any model listed in the Aonis model catalog can be added to the same provider configuration using its model ID.

Reasoning variants

GPT-5.6 family models support OpenCode variants using reasoningEffort.

json · OpenCode reasoning variants
{
  "$schema": "https://opencode.ai/config.json",
  "provider": {
    "aonis": {
      "npm": "@ai-sdk/openai-compatible",
      "name": "Aonis",
      "options": {
        "baseURL": "https://api.aonis.space/v1",
        "apiKey": "YOUR_AONIS_API_KEY"
      },
      "models": {
        "gpt-5.6": {
          "variants": {
            "low": { "reasoningEffort": "low" },
            "medium": { "reasoningEffort": "medium" },
            "high": { "reasoningEffort": "high" },
            "xhigh": { "reasoningEffort": "xhigh" },
            "max": { "reasoningEffort": "max" }
          }
        }
      }
    }
  }
}

OpenCode forwards the selected reasoningEffort through Aonis. Higher effort can increase reasoning depth, latency and token usage.

The same variant structure can be used with gpt-5.6-sol, gpt-5.6-terra, and gpt-5.6-luna. gpt-5.6-sol-ultra already represents the extended-reasoning configuration.

Generate this configuration →