Checked 2026-10-26
OpenCode with RelaySwitch
Point OpenCode at RelaySwitch for coding models with one prepaid key.
Point OpenCode at RelaySwitch for coding models with one prepaid key. RelaySwitch uses an OpenAI-compatible endpoint at https://api.relayswitch.io/v1; create a key in the console, choose a model id from the catalog, and set the base URL in this tool.
01Connection settings
- Open the tool's provider or API settings.
- Set the base URL to
https://api.relayswitch.io/v1. - Set the API key to your
sk-relay-key. - Choose a model id from the Models page.
02Billing
Requests bill input and output tokens from a prepaid USD balance. Top up by card or crypto; there is no subscription and no identity check.
03Troubleshooting
A 401 means the key is missing or revoked; 402 means the balance is too low; 404 means the model id is not in the catalog; 429 means the key rate limit was reached. See the API docs for the complete error table.
Questions
- Does this work with every model?
- Use any model id shown on the live Models page; the same base URL and key apply.
- How do I pay?
- Top up by card or crypto from the console.