Authentication Error: Claude Pro Users Unable to Access Opus 4
Bug Description I am a MAX user and I got the "claude Pro users are not currently able to use Opus 4 i Claude Code". Great way to make users downgrade
Environment Info
- Platform: darwin
- Terminal: vscode
- Version: 1.0.25
- Feedback ID: c370e9dd-cf50-45d6-a12c-298b9d079a91
Errors
[{"error":"Error: Command failed: security find-generic-password -a $USER -w -s \"Claude Code\"\nsecurity: SecKeychainSearchCopyNext: The specified item could not be found in the keychain.\n\n at genericNodeError (node:internal/errors:983:15)\n at wrappedFn (node:internal/errors:537:14)\n at checkExecSyncError (node:child_process:882:11)\n at execSync (node:child_process:954:15)\n at wZ (file:///Users/arturo/.nvm/versions/node/v22.12.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:659:3921)\n at file:///Users/arturo/.nvm/versions/node/v22.12.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:582:8863\n at Q (file:///Users/arturo/.nvm/versions/node/v22.12.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:526:17199)\n at IX (file:///Users/arturo/.nvm/versions/node/v22.12.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:582:8009)\n at NS (file:///Users/arturo/.nvm/versions/node/v22.12.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:582:7090)\n at T6 (file:///Users/arturo/.nvm/versions/node/v22.12.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:582:11202)","timestamp":"2025-06-17T18:04:55.522Z"}]
Can you try logging in again? /logout -> /login. Claude Code does not automatically pick up your subscription plan.
I am experiencing the same issue now, but as a Pro user and I'm not sure if it's intended or not, from what I'm able to find the documentation on Claude Code doesn't provide satisfying information on which models are supposed to be available on the different subscription plans.However I did restart my Claude subscription earlier today (after having been expired for a couple of days).
I'm running Claude Code 1.0.31 on Linux.
Successfully logged out from your Anthropic account.
Total cost: $0.0004
Total duration (API): 3.4s
Total duration (wall): 7.7s
Total code changes: 0 lines added, 0 lines removed
Token usage by model:
claude-3-5-haiku: 376 input, 23 output, 0 cache read, 0 cache write
After login:
Claude Code Status v1.0.31
L Session ID: 9710cf2c-05fd-4fce-b653-5739f5f82fdf
Working Directory
L _redacted_
Account • /login
L Login Method: Claude Pro Account
L Organization: _redacted_ Organization
L Email: _redacted_
Memory • /memory
L project: CLAUDE.md
Model • /model
L Sonnet Sonnet 4 for daily use
> /model Opus
⎿ Invalid model. Claude Pro users are not currently able to use Opus 4 in Claude Code. The current model is now Sonnet 4.
I'm quite sure I was able to use Opus 4 + Claude Code with my pro plan before though? Has it been restricted to be available only for Max users lately?
I am also experiencing this issue.
Claude Code Status v1.0.31
Account • /login
L Login Method: Claude Pro Account
Model • /model
L Sonnet Sonnet 4 for daily use
When trying to switch
/model claude-opus-4-20250514
⎿ Invalid model. Claude Pro users are not currently
able to use Opus 4 in Claude Code. The current
model is now Sonnet 4.
Using CC in vscode on debian
Logging out and logging back in with account did not fix this. However, if I login with API I can choose Opus, but I should get access via my Pro plan.
Claude Pro users do not have access to Opus in Claude Code. (See the pricing section of https://www.anthropic.com/claude-code).
The original issue here was for a user with a Claude Max subscription. Closing this issue but will still await a response from @ArturoTorresMartinez if more troubleshooting is needed.
I'm having the same issue as Arturo - I pay $200 for Max, but I'm getting "Claude Pro users are not currently able to use Opus 4 in Claude Code. The current model is now Sonnet 4."
I've tried logging out then in and a few variations. Up to date.
I'm having the same issue as Arturo - I pay $200 for Max, but I'm getting "Claude Pro users are not currently able to use Opus 4 in Claude Code. The current model is now Sonnet 4."
I've tried logging out then in and a few variations. Up to date.
Hi man, does uninstalling and reinstalling work? That's what did it for me, not the log out/ log in
Hey I found a fix that worked for me! Log out of Claude Code. Then go into your Claude settings on the Claude website, go to Claude Code, delete the authentication token.
Now go back to your terminal, and do /login with claude code, follow the instructions, and that fixed it for me. Do /status when you get back in and hopefully it says Max...
@dicksontsai using CLAUDE_CODE_OAUTH_TOKEN to authenticate limits model choice to Sonnet on a Max plan.
Cross-posting from anthropics/claude-code-action#236:
$ claude -p 'what model are you'
I'm Claude, powered by the model Opus 4 (claude-opus-4-20250514).
$ export CLAUDE_CODE_OAUTH_TOKEN
$ claude -p 'what model are you'
I'm Claude Sonnet 4 (model ID: claude-sonnet-4-20250514).
CC @ashwin-ant
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.