---
title: "OpenCode Setup"
description: "Coding models deployed on Dedicated inference can be targeted by open source agentic harnesses like Opencode."
url: https://community.exoscale.com/product/concrete-ai/dedicated-inference/recipes/opencode/
product: "Dedicated Inference"
section: product
last_updated: 2026-09-30
---
> For AI agents: the documentation index is at https://community.exoscale.com/llms.txt. Every page is available as markdown at `<page URL>index.md` or with `Accept: text/markdown`.

# 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.
Assuming you have deployed `MiniMaxAI/MiniMax-M2.5` in `hr-zag-1`

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

```json
{
  "$schema": "https://opencode.ai/config.json",
  "provider": {
    "exoscale": {
      "npm": "@ai-sdk/openai-compatible",
      "name": "Exoscale",
      "options": {
        "baseURL": "https://<deployment-uuid>.inference.hr-zag-1.exoscale-cloud.com/v1"
      },
      "models": {
        "minimax": {
          "name": "MiniMaxAI/MiniMax-M2.5"
        }
      }
    }
  }
}
```

Adapt as necessary. Once configured:

- run `opencode`
- type `/connect` in the prompt
- select "Exoscale" in the providers list and enter an [AI API Key](https://community.exoscale.com/product/concrete-ai/quick-start/index.md) scoped to your deployment.
- type `/models` and pick your deployment from the list.

