Cline
Cline can connect to OdiRouter through its OpenAI Compatible provider. The setup is done inside the Cline extension settings.
Requirements
Section titled “Requirements”| Requirement | Value |
|---|---|
| Editor | VS Code or Cursor with the Cline extension installed |
| Provider | OpenAI Compatible |
| Base URL | https://www.odirouter.ai/v1 |
| API Key | OdiRouter API key |
| Model ID | An OdiRouter LLM model ID |
Install Cline
Section titled “Install Cline”- Open VS Code or Cursor.
- Open the Extensions marketplace.
- Search for
Cline. - Install the extension and open the Cline panel.
Configure OdiRouter
Section titled “Configure OdiRouter”- In the Cline panel, click the settings gear.
- Set
API ProvidertoOpenAI Compatible. - Set
Base URLtohttps://www.odirouter.ai/v1. - Paste your OdiRouter API key.
- Set
Model IDto an OdiRouter model, such asgpt-5.5. - Save the settings.
Verify The Connection
Section titled “Verify The Connection”Ask Cline a read-only question first:
Explain the structure of this repository and list the main entry points.If the response succeeds, run a small scoped task:
Find the package manager used by this project. Do not edit files.Direct API Check
Section titled “Direct API Check”Use this command when Cline fails but the error message is unclear:
curl -sS "https://www.odirouter.ai/v1/chat/completions" \ -H "Authorization: Bearer YOUR_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "model": "gpt-5.5", "messages": [ { "role": "user", "content": "Reply with: Cline connected to OdiRouter" } ] }'Troubleshooting
Section titled “Troubleshooting”| Symptom | Fix |
|---|---|
| Base URL field is missing | Make sure the provider is OpenAI Compatible, not the standard OpenAI provider |
401 or invalid API key | Recreate the OdiRouter API key and paste it again |
| Model not found | Query GET https://www.odirouter.ai/v1/models and copy the exact model ID |
Request URL contains /chat/completions/chat/completions | Use https://www.odirouter.ai/v1 in the Base URL field, not the full endpoint |