Skip to main content
Routeway exposes a standard OpenAI-compatible API, which means any application, SDK, or framework that lets you configure a custom base URL and API key can connect to Routeway with no code changes.
All integrations require a valid Routeway API key. Get yours from the dashboard.

Generic Connection Details


How to Connect Any Tool

If your tool asks for an “OpenAI API key” and “base URL”, you just need two values:
1

Set the base URL

Replace the default OpenAI URL with:
2

Enter your Routeway API key

Use your Routeway API key wherever the tool asks for an “OpenAI API key” or “API token”.
3

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:
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: See the Claude Code integration for a full example.

Troubleshooting

Double-check that your API key is correct and has available balance (for paid models). Create a new key from the dashboard if needed.
Verify the model ID matches exactly. Use the models endpoint or browse routeway.ai/models to see available models.
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.
Check if the tool supports environment variables like OPENAI_BASE_URL or OPENAI_API_BASE. Many tools read these as fallbacks.