[BUG] 500 No available Claude accounts support the requested model: claude-sonnet-4-5

Status Fixed / completed
Maintainer reply None cached
Activity 11 comments · opened Jan 19, 2026 · closed Feb 25, 2026

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

  1. Open a command prompt window (even after multiple restarts)
  2. Run claude --version to confirm version (v2.1.12)
  3. Enter the command claude to launch the CLI dialogue interface
  4. Send a simple message like hello
  5. 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_

View original on GitHub ↗

11 Comments

github-actions[bot] · 7 months ago

Found 3 possible duplicate issues:

  1. https://github.com/anthropics/claude-code/issues/12268
  2. https://github.com/anthropics/claude-code/issues/12272
  3. https://github.com/anthropics/claude-code/issues/17966

This issue will be automatically closed as a duplicate in 3 days.

  • If your issue is a duplicate, please close it and 👍 the existing issue instead
  • To prevent auto-closure, add a comment or 👎 this comment

🤖 Generated with Claude Code

songaiju · 7 months ago

Why this is NOT a duplicate:

  • Other issues mention general 500 errors, but mine specifically shows claude-sonnet-4-5 model name
  • My environment details are different (Windows + Node v24.11.1)
  • This is 100% reproducible in my specific setup while others work fine
  • Workaround with /model command works, indicating a default model resolution bug
songaiju · 7 months ago

myday!

songaiju · 7 months ago

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

luckyrinwang · 7 months ago
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

songaiju · 7 months ago
> 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.

songaiju · 7 months ago

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

> > 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.
luckyrinwang · 7 months ago
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 > > > 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.

Thank you very much. I modified Claude's version, and it was fine after waiting for a while.

songaiju · 7 months ago
> 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 > > > > 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. Thank you very much. I modified Claude's version, and it was fine after waiting for a while.

good idea

stevenpetryk · 6 months ago

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.

github-actions[bot] · 5 months ago

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.