Skip to content

OpenCode Setup

This guide is provided for informational purposes. Because it involves third party tooling we cannot guarantee things still work exactly as described here.

Additional model providers can be added to OpenCode via configuration. This example assumes that you have access to the private-preview Qwen3.8-27B model in at-vie-2.

Write the following json to the ~/.config/opencode/opencode.jsonc file:

{
  "$schema": "https://opencode.ai/config.json",
  "providers": {
    "exoscale": {
      "name": "Exoscale",
      "package": "@opencode/ai/providers/openai-compatible",
      "settings": {
        "baseURL": "https://inference.at-vie-2.exoscale-cloud.com/v1"
      },
      "models": {
        "Qwen3.8-27B": {
          "name": "Qwen3.8-27B"
        }
      }
    }
  }
}

Adapt as necessary. Once configured:

  • run opencode
  • type /connect in the prompt
  • select “Exoscale” in the providers list and enter the API key of your deployment.
  • type /models and pick the public model from the list.
Last updated on