[BUG] There's an issue with the selected model (claude-sonnet-4-6).
Open 💬 33 comments Opened Feb 17, 2026 by nibblesnbits
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?
When trying to use the new Sonnet 4.6 model on the latest Claude Code CLI on both Windows and Ubuntu, I get this output:
juno@juno-thinkpad:~$ claude --model claude-sonnet-4-6
▐▛███▜▌ Claude Code v2.1.45
▝▜█████▛▘ Sonnet 4.6 · API Usage Billing
▘▘ ▝▝ /home/juno
/model to try Opus 4.6
❯ this working yet?
● There's an issue with the selected model (claude-sonnet-4-6). It may not exist or you may not have
access to it. Run /model to pick a different model.
What Should Happen?
Claude should respond without error.
Error Messages/Logs
● There's an issue with the selected model (claude-sonnet-4-6). It may not exist or you may not have
access to it. Run /model to pick a different model.
Steps to Reproduce
- Run the Claude Code CLI with
claude --model claude-sonnet-4-6or select the "Sonnet (1M context)" selection with the/modelcommand. - Send any prompt.
- Claude responds with "There's an issue with the selected model"
Claude Model
Sonnet (default)
Is this a regression?
Yes, this worked in a previous version
Last Working Version
_No response_
Claude Code Version
2.1.45 (Claude Code)
Platform
Anthropic API
Operating System
Ubuntu/Debian Linux
Terminal/Shell
Other
Additional Information
_No response_
33 Comments
me too~
Had to roll back to 2.0.64 to avoid this problem.
same issue here, macOS 26.3.1, pro account, terminal and vscode extension.
Tried downgrading, but it auto upgrades
Same here , cachyos linux. exact same message. I did just setup ollama to run claude and select and ollama model, but it started showing that message. Now that I've tried moving it back to opus, it still happens.
Same in v2.1.81, windows 11
Same here on MacOS Tahoe 26.3.1, ClaudeCode v2.1.81. When is this gonna be fixed, I just upgraded to Pro version and it's already not working, what a great start.
Same thing. Downgrade not helping aswell. My system: 6.12.74+deb13+1-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.12.74-2 (2026-03-08) x86_64 GNU/Linux. That ai slop is going crazy. That fucking thing now can be even debugged or just emulated. Good job anthropic with you obfuscation and anti-emulation efforts, gg wp!
The same issue:
Guys found the fix it's because 2 diffrent model of Opus is installed. You need to uninstall all the previous model and then install all the model at once.
i have attached the complete instruction (.md File)
Claude_Code_Fix_Guide.md
The same issue:
Claude Code v2.1.87
OS: Windows
Great job @jayanthmb14! Thanks for the guild, it helped!
The same issue:
Claude Code v2.1.96
OS: Windows
Seeing basically the same in Claude Code VSCode extension v2.1.100 until I manually select a model for every new conversation I start:
Update 4/28/26
Figured it out. Turns out, the Claude Code VSCode extension is now using the environment variables (in my case, they're in .bashrc file) to specify the LLM. Prior to this change, the VSCode extension had its own settings where you could specify the model used by the extension. If I change the model in my .bashrc file from Google Vertex AI naming convention (claude-opus-4-7@default) to Anthropic's naming convention (claude-opus-4-7[1m]), it works just fine.
worked for me
same issue in 2.1.101
This actually works! thanks man
May apply to some of you: Make sure your
ANTHROPIC_BASE_URLdoes not include the/v1suffix.Claude Code (at least as of v2.1.109) appends
/v1/messagesto yourANTHROPIC_BASE_URLbefore sending requests to the model server. So if your Base URL already ends with/v1, it will be concatenated into/v1/v1/messages, which triggers the error mentioned above.I confirmed this by launching Claude Code with the
--debugflag, then searching for lines marked[ERROR]in the most recently generated log file underC:\Users\MY_USER_NAME\.claude\debug:You can try doing the same — regardless of what your actual issue turns out to be.
See also:
https://help.apiyi.com/en/claude-code-third-party-api-base-url-setup-guide-en.html
it works for me. v2.1.114
记录一下解决方案,逻辑,将Claude原生模型名称直接映射到自己的模型名称:
第一步,创建CUSTOM_ROUTER_PATH脚本
第二步,将CUSTOM_ROUTER_PATH脚本添加到配置中
注意事项:配置文件中的Router不能少(我尝试删除,模型无法正常工作)
If you’re using a gateway/proxy (eg Ollama Anthropic-compatible API) and hitting "There's an issue with the selected model…": check debug logs for
has Authorization header: false.On my setup (Claude Code v2.1.117 -> Ollama
http://localhost:11434), missing Authorization header caused backend 404model ... not foundand CC surfaced the generic model error.Workaround (forces header):
Related locked issue: #39013.
it works, thanks
Me too
Same here.
🛠️ Fix: "● There's an issue with the selected model (anthropic/claude-3.5-sonnet). It may not exist or you may not have access to it. Run /model to pick a different model." error in Claude Code (Official API)
If you are getting the error below while using your official Anthropic Pro account (and NOT using Ollama), it is likely caused by stale environment variables in Windows.
🔴 The Error
● There's an issue with the selected model (anthropic/claude-3.5-sonnet). It may not exist or you may not have access to it. Run /model to pick a different model.---
✅ The Solution (Step-by-Step)
claude /logoutin your terminal.ANTHROPIC_variables.claude /loginand authorize via the browser.💻 Cleanup Script (PowerShell)
Copy and paste this into your PowerShell terminal:
For me, I check the settings.json in terminal.integrated.env.windows in vs code. Then, I fix the old ANTHROPIC_API_KEY, and it's solved.
Late to the party, but for me it was that the session was somehow "corrupted".
I had to launch a /new session and it worked back to normal.
The corruption had to do with some image i pasted that caused problems.
"Claude-opus-4.6 " change to "Claude-opus-4-6 " ,try it!
Thx! Worked on windows 11 Powershell install 💯
If you want to clear or reset those environment variables in Windows 10 using Command Prompt after logging into your account, run these one by one:
Then:
If you want to completely remove the variables instead of setting them to empty strings, use:
Tryed everything in this thread noting worked same issue:
There's an issue with the selected model (claude-sonnet-4-6). It may not exist or you may not have access to it. Run
/model to pick a different model.
Windows 10
run :
claude /doctorIf it returns the following duplicate installations message:
remove the native installation:
rm /Users/<username>/.local/bin/claudelogout and login again
I got this issue today in Claude desktop, turns out (in my case) the double opus is spot on. I didn't need a reinstall, though. Just go to Claude settings json e.g. ...\.claude\settings.json, then remove any custom double configuration, then restart Claude. Make sure you killed the background process before it relaunches.
Had the same issue on Ubuntu 24.04.
The cause was env variable
ANTHROPIC_BASE_URLpointing to localhost with Ollama.unset ANTHROPIC_BASE_URLand removing this env variable from~/.bashrc→source ~/.bashrcresolved the issue.