claude-code icon indicating copy to clipboard operation
claude-code copied to clipboard

Authentication Error: Claude Pro Users Unable to Access Opus 4

Open ArturoTorresMartinez opened this issue 7 months ago • 4 comments

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"}]

ArturoTorresMartinez avatar Jun 17 '25 18:06 ArturoTorresMartinez

Can you try logging in again? /logout -> /login. Claude Code does not automatically pick up your subscription plan.

dicksontsai avatar Jun 19 '25 18:06 dicksontsai

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?

jimutt avatar Jun 22 '25 08:06 jimutt

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

mikemp7 avatar Jun 22 '25 17:06 mikemp7

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.

mikemp7 avatar Jun 22 '25 17:06 mikemp7

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.

dicksontsai avatar Jun 23 '25 05:06 dicksontsai

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.

emchristiansen avatar Jul 10 '25 23:07 emchristiansen

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

ArturoTorresMartinez avatar Jul 11 '25 00:07 ArturoTorresMartinez

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...

davidspiegs avatar Jul 12 '25 03:07 davidspiegs

@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

realdimas avatar Jul 18 '25 15:07 realdimas

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.

github-actions[bot] avatar Jul 29 '25 16:07 github-actions[bot]