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
- Open OpenCode.
- Click "Connect provider" at the bottom.
- Choose "Custom OpenAI-compatible provider".
- The provider ID and provider name are up to you.
- Enter this base URL:
https://api.tokendns.net/v1- Enter your TokenDNS API key.
- Enter the model ID you want to use in the model field.
- 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.
