All integrations require a valid Routeway API key. Get yours from the dashboard.
Generic Connection Details
| Setting | Value |
|---|---|
| Base URL (OpenAI-compatible) | https://api.routeway.ai/v1 |
| Base URL (Anthropic-compatible) | https://api.routeway.ai |
| Auth header | Authorization: Bearer YOUR_API_KEY |
| Models endpoint | GET https://api.routeway.ai/v1/models |
How to Connect Any Tool
If your tool asks for an “OpenAI API key” and “base URL”, you just need two values:Enter your Routeway API key
Use your Routeway API key wherever the tool asks for an “OpenAI API key” or “API token”.
Pick a model
Enter a model ID from routeway.ai/models. If the tool has a “fetch models” button, click it to load the full list automatically.
SDK Examples
Drop-in replacement for the OpenAI SDK in any language:Common Tools That Work Out of the Box
Any of these tools can be pointed at Routeway by changing the base URL:| Tool / Framework | Where to set the base URL |
|---|---|
| LangChain | ChatOpenAI(base_url="https://api.routeway.ai/v1") |
| LlamaIndex | OpenAI(api_base="https://api.routeway.ai/v1") |
| Vercel AI SDK | createOpenAI({ baseURL: "https://api.routeway.ai/v1" }) |
| AutoGen | Set base_url in the OAI config list |
| CrewAI | Use the OpenAI-compatible LLM config |
| Continue (VS Code) | Set apiBase in config.json |
| Cursor | Settings → Models → OpenAI API Base |
| LibreChat | Set the endpoint URL in admin config |
| TypingMind | Custom API Endpoint field |
| BoltAI | Custom provider → API Base URL |
If a tool supports “OpenAI-compatible” or “custom endpoint” configuration, it will work with Routeway. Just set the base URL and API key.
Anthropic-Compatible Tools
Some tools (like Claude Code) use the Anthropic Messages API instead of OpenAI’s format. For those, use:| Setting | Value |
|---|---|
| Base URL | https://api.routeway.ai |
| Auth token | Your Routeway API key |
| Endpoint | /v1/messages |
Troubleshooting
401 Unauthorized
401 Unauthorized
Model not found
Model not found
Verify the model ID matches exactly. Use the models endpoint or browse routeway.ai/models to see available models.
Connection refused or timeout
Connection refused or timeout
Ensure you’re using
https://api.routeway.ai/v1 (with HTTPS and /v1). Some tools require the trailing /v1, others don’t — try both if you get errors.Tool doesn't have a base URL field
Tool doesn't have a base URL field
Check if the tool supports environment variables like
OPENAI_BASE_URL or OPENAI_API_BASE. Many tools read these as fallbacks.