#Openrouter configuration

1 messages ยท Page 1 of 1 (latest)

crystal jacinth
#

โš ๏ธ Agent failed before reply: Unknown model: openrouter/auto. Check gateway logs for details.

grand thunderBOT
#

To help others find answers, you can mark your question as solved via Right click solution message -> Apps -> โœ… Mark Solution

rare basaltBOT
# crystal jacinth โš ๏ธ Agent failed before reply: Unknown model: openrouter/auto. Check gateway logs...

Hey! ๐Ÿ‘‹ That "Unknown model: openrouter/auto" error usually means the model format isn't quite right.

First things first: What version of Clawdbot are you running? (clawdbot --version) Version mismatches are a common cause of weird errors.

Quick troubleshooting:

  1. Model format: The auto suffix might not be valid. Check what models OpenRouter actually supports โ€” you typically need to use the specific model ID like anthropic/claude-sonnet-4-20250506 or openrouter/auto might not be a real model path.

  2. Config format: Make sure your config is in JSON5 format, not YAML. The FAQ has examples: https://docs.clawd.bot/start/faq

  3. Provider config: For OpenRouter, your provider block should look something like:

{
  "openrouter": {
    "apiKey": "sk-or-v1-...",
    "models": {
crystal jacinth
#

2026.1.15

where to check - Check what models OpenRouter actually supports โ€” you typically need to use the specific model ID like anthropic/claude-sonnet-4-20250506 or openrouter/auto might not be a real model path.