[BUG] 500 No available Claude accounts support the requested model: claude-sonnet-4-5
Preflight Checklist
- [x] I have searched existing issues and this hasn't been reported yet
- [x] This is a single bug report (please file separate reports for different bugs)
- [x] I am using the latest version of Claude Code
What's Wrong?
Issue details:
I've been using claude-sonnet-4-5 model previously without issues
Other models like Opus and Haiku work normally when selected
I've tried multiple troubleshooting steps:
Exiting (/exit) and re-entering doesn't fix it
Closing the command window and reopening doesn't help
Updated to the latest package via npm update -g @anthropic-ai/claude-code - still broken
During the same time period, others have tested the same configuration and it works fine for them
The issue appears to be isolated to my environment/system
Environment:
OS: Windows
Claude Code CLI version: v2.1.12 (latest)
Node.js version: v24.11.1
Additional context:
This seems to be a model-specific issue, as switching to other models works. The claude-sonnet-4-5 model appears to be unavailable or incorrectly configured in my CLI setup.
What Should Happen?
Normal conversation should start using the Claude 4-5 Sonnet model without any errors.
Error Messages/Logs
╭─── Claude Code v2.1.12 ──────────────────────────────────────────────────────────────────────────────────────────────────╮
│ │ Tips for getting started │
│ Welcome back! │ Run /init to create a CLAUDE.md file with instructions for Claude │
│ │ Note: You have launched claude in your home directory. For the best experie… │
│ ▐▛███▜▌ │ ──────────────────────────────────────────────────────────────────────────── │
│ ▝▜█████▛▘ │ Recent activity │
│ ▘▘ ▝▝ │ No recent activity │
│ │ │
│ claude-sonnet-4-5 · API Usage Billing │ │
│ C:\Users\86185 │ │
╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯
/model to try Opus 4.5
> hello
⎿ 500 No available Claude accounts support the requested model: claude-sonnet-4-5
Retrying in 0 seconds… (attempt 4/10)
✻ Nucleating… (ctrl+c to interrupt)
Steps to Reproduce
- Open a command prompt window (even after multiple restarts)
- Run
claude --versionto confirm version (v2.1.12) - Enter the command
claudeto launch the CLI dialogue interface - Send a simple message like
hello - Observe the 500 error immediately appears
Note: The issue occurs every single time on my machine. Switching to other models with /model opus or /model haiku works as a workaround.
Claude Model
Sonnet (default)
Is this a regression?
I don't know
Last Working Version
Unknown
Claude Code Version
v2.1.12 (Claude Code)
Platform
Anthropic API
Operating System
Windows
Terminal/Shell
Windows Terminal
Additional Information
_No response_
11 Comments
Found 3 possible duplicate issues:
This issue will be automatically closed as a duplicate in 3 days.
🤖 Generated with Claude Code
Why this is NOT a duplicate:
claude-sonnet-4-5model name/modelcommand works, indicating a default model resolution bugmyday!
Finally, I solved it! I solved it manually first, and I thought about optimizing it from the code of the claude code project. I will submit the code later when I have time
how did you solve it? Could you share the manual steps
Check your local file settings.json. Find ANTHROPIC_DEFAULT_SONNET_MODEL, remove or set it empty. The model id is changed by the proxy company. I think this can be resolved from Claude Code automatically.
and I just forked the code for the claim code and haven't had the chance to contribute it yet. If possible, you can contribute according to my plan. The core idea is to make the model mapping configurable and fault-tolerant, rather than hard coding a potentially invalid model ID
Thank you very much. I modified Claude's version, and it was fine after waiting for a while.
good idea
Hi folks, thanks for reporting this. These 500 errors were caused by transient API outages on the Anthropic side — not a bug in Claude Code itself. The API is currently healthy, so I'm closing this out. If you're still experiencing 500 errors, you can check the API status at https://status.anthropic.com, and if the issue persists while the status page is green, please open a new issue with your request ID and we'll investigate.
This issue has been automatically locked since it was closed and has not had any activity for 7 days. If you're experiencing a similar issue, please file a new issue and reference this one if it's relevant.