OpenRouter
OpenRouter is a unified API gateway that routes requests to 100+ models from providers like Anthropic, OpenAI, Google, Meta, and more. A single API key and a single base URL gives you access to the full catalog, making it easy to experiment with different models without managing multiple credentials.Requirements
- An OpenRouter API key from openrouter.ai
Quickstart
Configuration
Environment variable
OPENROUTER_API_KEY automatically and enables the openrouter provider.
Config snippet
Provider settings
Model IDs
OpenRouter model references follow the patternopenrouter/<provider>/<model>. Examples:
openrouter/auto to let OpenRouter pick the best model for each request.
The full model list is available at openrouter.ai/models.
Auto routing
Theopenrouter/auto model lets OpenRouter select the best available model for each request based on capability, cost, and availability. OpenClaw disables the reasoning effort parameter for auto because the target model is unknown at request time.
Troubleshooting
401 Unauthorized- Verify your key starts with
sk-or-and is copied in full. - Re-run onboarding:
openclaw onboard --auth-choice openrouter-api-key.
- Check that the model ID matches OpenRouter’s catalog exactly (case-sensitive).
- Some models require special approval; check your OpenRouter account settings.
openclaw models auth add-key --provider openrouter.