OpenCode setup

Configure OpenCode with Asterionyx as a custom OpenAI-compatible provider for coding sessions in your local projects.

This page describes how to point OpenCode at Asterionyx’s Chat Completions endpoint. It is a setup guide, not a partnership or endorsement.

Before you startYou need an Asterionyx account, a customer API key, the Base URL, a published Model ID from the live catalog, and enough Credits for a test request.
Last verified 2026-08-27Checked against official documentation on 2026-08-27. A clean third-party install was not re-run in this environment. Official source: OpenCode providers.
Base URL
https://api.a.eus/v1

opencode.jsonc

Last verified against the official OpenCode providers documentation on 2026-08-27. The provider key used in /connect must match asterionyx. Never put a real API key in this file. A clean OpenCode install was not run in this environment.

opencode.jsonc
{
  "$schema": "https://opencode.ai/config.json",
  "provider": {
    "asterionyx": {
      "npm": "@ai-sdk/openai-compatible",
      "name": "Asterionyx",
      "options": {
        "baseURL": "https://api.a.eus/v1",
        "apiKey": "{env:ASTERIONYX_API_KEY}"
      },
      "models": {
        "asterionyx-from-catalog": {
          "name": "Published Model ID from the live catalog"
        }
      }
    }
  }
}
  1. Open custom provider setup

    In OpenCode, open the provider connection flow and choose the custom provider option for an OpenAI-compatible endpoint.

  2. Set Provider ID

    Use a lowercase integration label such as asterionyx. Keep the selected public model ID in your environment configuration.

  3. Set Display name

    Use Asterionyx as the display name so it is easy to recognize in OpenCode.

  4. Set the Base URL

    Paste the Asterionyx Base URL shown below. Keep the /v1 suffix because OpenCode sends OpenAI-compatible requests to that path.

  5. Add your API key

    Paste your Asterionyx API key in the API key field. OpenCode stores provider credentials locally, so do not commit the key to your project.

  6. Select a Model ID

    Open the model picker, select your Asterionyx connection, and choose the published model ID you configured.

TipProvider ID must be lowercase. Use asterionyx for the ID and Asterionyx for the display name.

Troubleshooting

401 / unauthorized

Recopy the API key from the portal. Do not use a placeholder or a key from another account.

402 / insufficient Credits

Create a recharge in the portal. The same API key and Base URL continue to work after Credits are added.

Unknown model

Copy a published public model ID from the live Model Catalog instead of typing a remembered name.

Related guides