Troubleshooting Integrations
Most integration issues come from an incorrect Base URL, missing API key, unavailable model ID, or a tool not loading the latest configuration.
Common errors
Section titled “Common errors”| Symptom | Likely cause | Fix |
|---|---|---|
| 401 or invalid API key | Missing or incorrect key | Create a new API key and send it as Authorization: Bearer YOUR_API_KEY |
| 404 model not found | Wrong model ID | Query GET https://www.odirouter.ai/v1/models and copy the exact model ID |
| Tool appends paths twice | Full endpoint pasted into a Base URL field | Use the Base URL field for https://www.odirouter.ai/v1 |
Tool calls /chat/completions/chat/completions | Full endpoint pasted into a Base URL field | Use the Base URL field for https://www.odirouter.ai/v1 |
| Streaming hangs | Client cannot parse SSE or model does not stream | Disable streaming or choose a streaming-capable model |
| Claude Code cannot connect | Environment variables are not loaded | Set ANTHROPIC_BASE_URL to https://www.odirouter.ai and restart claude |
Verify outside the tool
Section titled “Verify outside the tool”Run this command before debugging an IDE or workflow platform:
curl -sS "https://www.odirouter.ai/v1/chat/completions" \ -H "Authorization: Bearer ${ODIROUTER_API_KEY}" \ -H "Content-Type: application/json" \ -d '{ "model": "gpt-5.5", "messages": [ { "role": "user", "content": "Reply with: OdiRouter integration works" } ] }'If the direct call works but the tool fails, the problem is in the tool’s provider configuration. If the direct call fails, fix the API key, model ID, or account balance first.
Base URL rules
Section titled “Base URL rules”- OpenAI-compatible integration Base URL fields use
https://www.odirouter.ai/v1. - Anthropic-compatible integration Base URL fields use
https://www.odirouter.ai; the full Messages endpoint ishttps://www.odirouter.ai/v1/messages. - Full endpoint fields should use
https://www.odirouter.ai/v1/chat/completions. - Multimodal queue workflows use
https://www.odirouter.ai/model/v1/queue/{endpoint}.