#After doing clawdbot configure to change from OpenCode to Anthropic in my Ubuntu CT gives Error
1 messages ยท Page 1 of 1 (latest)
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:
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! ๐ฆ
๐ That was stupid, thanks!
No worries, happens to everyone! The model versioning can be tricky. Glad it's working now! ๐ฆ