#openrouter issue - doesn't recognise auto
1 messages ยท Page 1 of 1 (latest)
Based on my investigation, here's what's happening and how to fix it:
The Issue
The error "Unknown model: openrouter/auto" occurs because OpenRouter needs to be explicitly configured in your Clawdbot config. The model registry doesn't automatically discover OpenRouter models without configuration.
Solution
Add OpenRouter to your config file:
{
env: {
OPENROUTER_API_KEY: "sk-or-your-key-here"
},
agents: {
defaults: {
model: { primary: "openrouter/auto" }
}
}
}
Or use a specific model instead of auto:
{
env: {
OPENROUTER_API_KEY: "sk-or-your-key-here"
},
agents: {
defaults: {
model: { primary: "openrouter/anthropic/claude-sonnet-4-5" }
}
}
}
Notes
openrouter/autois OpenRouter's auto-routing feature that selects the best model- You can browse available models at https://openrouter.ai/docs#models
- The
clawdbot models scancommand can help discover and test OpenRouter models (requires API key configured first) - Docs: https://docs.moltbot.ai/providers/openrouter
Once you add the config with your OpenRouter API key, restart Clawdbot and it should recognize the model.
@hexed jolt which file - whats the command