#Model error in pro
1 messages · Page 1 of 1 (latest)
That error means the backend you’re hitting doesn’t recognize that exact model ID anymore (either it was retired/renamed, or your key/provider doesn’t have access to that specific dated variant). So it’s not “your prompt” — it’s the model selection.
Fix (Discord / hosted):
- Run
/model listand pick a Claude/Sonnet option that shows up there (don’t type the dated…-20240620one manually). - If it still errors, paste
/model statusoutput here (it shows what provider/model it’s actually trying to use).
Fix (self-hosted OpenClaw):
- Please paste:
openclaw --versionopenclaw models status- Then switch to an available model from:
openclaw models list --provider anthropic
Docs for the model picker/CLI: https://docs.openclaw.ai/concepts/models
Those /model … commands are chat commands, not terminal commands.
If you’re using the Discord “Pro” bot:
Type /model list (or just /model) directly in this Discord channel/thread, and send it as a normal message. Then pick one of the models that shows up.
Only if you’re self-hosting OpenClaw on your own machine do you use terminal commands — and then they’re like:
openclaw --versionopenclaw models status
Which one are you doing?
- Using the Discord bot here (no terminal involved), or
- Running OpenClaw yourself (terminal + your own gateway)?
If you reply with what you typed in terminal + the exact error text, I’ll tell you the next step.
Ah — if you mean the Clawdbot “terminal” window inside the app: that’s usually just a log/output console, not an interactive shell. Typing /model … (or even openclaw …) in there won’t do anything.
To fix the model error from your actual computer terminal (Terminal / PowerShell), please run and paste the output of:
- Which CLI do you have?
openclaw --version
If that says “command not found”, try:
clawdbot --version
- Show what model it’s trying to use
openclaw models status
(or clawdbot models status if that’s your command)
That 404 specifically means the configured Anthropic model id claude-3-5-sonnet-20240620 isn’t available anymore (renamed/retired or not accessible for your credentials). Once we see models status, I’ll tell you the exact … models set … command to switch to one that your install/provider actually supports.
If you paste the exact “command not found” / error you get when running the above, we can zero in fast.
Current: anthropic/claude-3-5-sonnet-20240620
Default: anthropic/claude-3-5-sonnet-20240620
Agent: main
Auth file: ~/.clawdbot/agents/main/agent/auth-profiles.json
[anthropic] endpoint: default auth: sk-ant-a...nDsW7QAA (env: ANTHROPIC_API_KEY)
• anthropic/claude-3-5-sonnet-20240620
does this work ?
That output shows your setup is being read correctly (OpenClaw sees ANTHROPIC_API_KEY and is trying to use anthropic/claude-3-5-sonnet-20240620).
But if you’re still getting HTTP 404 not_found_error: model …20240620, then Anthropic is rejecting that model for that API key (either the model name is retired/renamed, or—very commonly—your account/key simply doesn’t have access to that model).
Two quick fixes:
- Switch to a model that your key can actually use
openclaw models list --provider anthropic --all
Pick an Anthropic model from that list, then set it:
openclaw models set anthropic/<model-from-the-list>
(After that, restart your gateway if needed.)
- Double-check what “Pro” you bought
Claude.ai Pro (chat subscription) ≠Anthropic API access. For OpenClaw you need an Anthropic API key from Anthropic Console with API access/billing enabled.
If you paste the output of:
openclaw models list --provider anthropic --all --plain
I can tell you which one to select from your list (without guessing model IDs).
I'm using telegram, how can I switch it from there?
In Telegram you switch it with the chat command (not terminal):
- Open the Telegram chat with your bot
- Send this as a standalone message:
/model
(or /model list)
- Pick a model from the menu / numbered list, e.g.:
/model 2
- Verify:
/model status
Notes:
- If this is a Telegram group, you may need to use Telegram’s “command for a specific bot” form like:
/model@YourBotUsername/model …is handled by the Gateway, so it should still work even if the current model is erroring.
If /model shows only that broken Sonnet entry, then you don’t have other models configured yet — in that case run on your machine:
openclaw models list --provider anthropic --all
and paste it here, and I’ll tell you which one to openclaw models set … so Telegram can pick it.
Numeric model selection is not supported in chat.
Browse: /models or /models <provider>
Switch: /model <provider/model>
Yep — in your build, numeric /model 2 selection isn’t supported. Use the “browse then set” flow it’s telling you:
In Telegram (recommended)
- Browse what the gateway thinks is available:
/models
or (sometimes more useful):
/models anthropic
- Copy one exact
provider/modelfrom that list and switch:
/model anthropic/<paste-the-model-id-from-/models>