After doing clawdbot configure to change from OpenCode to Anthropic in my Ubuntu CT gives Error

The error is [clawdbot] โš ๏ธ Agent failed before reply: Unknown model: anthropic/claude-sonnet-4. Check gateway logs for details.

I'll append the Config to the next message I don't have Nitro and it doesn't fit
Solution
The issue is with your model name - you're using anthropic/claude-sonnet-4 but it should be anthropic/claude-sonnet-4-5 (note the "-5" suffix).

The correct format for Anthropic models in Clawdbot is provider/model-version, so for Claude Sonnet 4.5 it needs to be:

{
  "agents": {
    "defaults": {
      "model": {
        "primary": "anthropic/claude-sonnet-4-5"
      }
    }
  }
}


Common valid Anthropic models:
Was this page helpful?