About
OpenCode is an open-source terminal AI agent supporting many LLM providers. It connects to our gateway via the @ai-sdk/openai-compatible provider.
How to connect
Install OpenCode:
npm install -g opencode-aiIn the OpenCode window open File → Settings → Providers.
📷 Screenshot: "File → Settings" menu, "Providers" section selected
Click Add provider and choose the Other type (OpenAI-compatible).
📷 Screenshot: adding a provider, "Other" type selected
Fill in the provider fields:
- Provider ID:
openrussiarouter - Base URL:
https://api.openrussiarouter.com/v1 - API Key: your
sk-or-...key
📷 Screenshot: filled-in OpenRussiaRouter provider fields
- Provider ID:
Add the models you need from the /models catalog — for each one specify its ID and display name.
📷 Screenshot: models added in the provider settings
Save the settings, type
/modelsand pick a model.📷 Screenshot: OpenRussiaRouter models listed in
/models