TokenDNS LogoTokenDNS

Using with OpenCode

Configure a TokenDNS OpenAI-compatible provider in OpenCode.

Download and install

Open the OpenCode website and download the build for your operating system.

Connect a custom provider

  1. Open OpenCode.
  2. Click "Connect provider" at the bottom.
  3. Choose "Custom OpenAI-compatible provider".
  4. The provider ID and provider name are up to you.
  5. Enter this base URL:
https://api.tokendns.net/v1
  1. Enter your TokenDNS API key.
  2. Enter the model ID you want to use in the model field.
  3. Save the configuration.

Verify

Start a new session and send a test message. If the model replies, the configuration works. For the currently available model IDs, refer to the TokenDNS model list.

On this page