Connect OpenCode to TeamoRouter
OpenCode is an open-source AI coding assistant that can run in terminal and desktop/web-style interfaces.
1. OpenCode is already installed
If OpenCode Desktop is already installed, add TeamoRouter:
- Open OpenCode Desktop and click the settings icon in the lower-left corner.

- In the left navigation, choose Server -> Providers.
- At the bottom of the provider list, find Custom provider and click Connect.

- Fill in the custom provider form:
- Provider ID:
teamorouter - Display name:
TeamoRouter - Base URL:
https://api.teamorouter.com/v1 - API Key: paste the key you created in the TeamoRouter dashboard
- In Models, click Add model and add the model IDs you need.
| Model ID | Display name |
|---|---|
| claude-fable-5 | Claude fable 5 |
| claude-opus-4-8 | Claude opus 4.8 |
| claude-opus-4-7 | Claude opus 4.7 |
| claude-opus-4-6 | Claude opus 4.6 |
| claude-sonnet-4-6 | Claude sonnet 4.6 |
| claude-haiku-4-5 | Claude haiku 4.5 |
| gpt-5.5 | GPT 5.5 |
| gpt-5.4 | GPT 5.4 |
| gemini-3.1-pro-preview | Gemini 3.1 pro preview |
| gemini-3.5-flash | Gemini 3.5 flash |
- Leave request headers empty.
- Click Submit to save.
Note: Because of OpenCode client behavior, cache can be lost easily during model calls, which may cause repeated cache writes and unnecessary cost. We do not recommend heavy API-platform usage inside OpenCode for now.
2. Install OpenCode from scratch
Install OpenCode
Install or upgrade from the OpenCode download page.
Run and configure
Run:
opencode
Add TeamoRouter
Open OpenCode Desktop and follow steps 1 to 7 in the previous section.
Set the model
In Settings, choose Server -> Models and switch the default chat model to a TeamoRouter model. New conversations will use it by default.
Start using OpenCode
Return to the main OpenCode Desktop screen and create a new conversation.
