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

1 messages ยท Page 1 of 1 (latest)

cobalt prism
#

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

hard tartanBOT
#

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

cobalt prism
thick nexusBOT
#
  • anthropic/claude-sonnet-4-5 (Sonnet 4.5)
  • anthropic/claude-opus-4-5 (Opus 4.5)
  • anthropic/claude-haiku-4-5 (Haiku 4.5)

The "4" alone isn't a valid model version - you need the full version number like "4-5". This is why you're seeing "Unknown model" - Clawdbot's model registry doesn't recognize the shorthand.

Update your config and try again! ๐Ÿฆ

#

Found the issue! Your config has anthropic/claude-sonnet-4 but it needs to be anthropic/claude-sonnet-4-5 (the full version with "-5").

Here's your corrected config:

{
  "agents": {
    "defaults": {
      "model": {
        "primary": "anthropic/claude-sonnet-4-5"
      },
      "models": {
        "anthropic/claude-sonnet-4-5": {
          "alias": "Sonnet"
        },
        "anthropic/claude-opus-4-5": {
#
          "alias": "Opus"
        }
      }
    }
  }
}

Fix those model names and it should work! ๐Ÿฆ

cobalt prism
#

๐Ÿ™ That was stupid, thanks!

thick nexusBOT