[BUG] Long-lived token use doesn't recognize Max subscription: "Claude Pro users are not currently able to use Opus in Claude Code. The current model is now Sonnet."
Resolved 💬 2 comments Opened Aug 12, 2025 by scald Closed Aug 12, 2025
Environment
- Platform (select one):
- [ ] Anthropic API
- [ ] AWS Bedrock
- [ ] Google Vertex AI
- [ x ] Other: Claude Code w/ Long-lived token
- Claude CLI version: 1.0.73 (Claude Code)
- Operating System: MacOS 15.5
- Terminal: Cursor, Warp
Bug Description
Using Claude code with a Long-lived token fails to recognize Claude Max subscription.
Steps to Reproduce
- Subscribe to Max
export $CLAUDE_CODE_OAUTH_TOKEN=<token>- Launch Claude
- See warning: "Claude Pro users are not currently able to use Opus in Claude Code. The current model is now Sonnet."
- Exit Claude.
unset CLAUDE_CODE_OAUTH_TOKEN- Launch Claude
- Max subscription is recognized
Expected Behavior
Since I signed in with my Claude account via OAuth and received a token, I would expect to be authorized for the same level of subscription access as when I sign in normally.
Actual Behavior
I receive the warning: "Claude Pro users are not currently able to use Opus in Claude code. The current model is now Sonnet." And when I run /status, the login method shows "Claude API account".
Additional Context
I don't think that this was happening before this morning's update but I just started using long-lived tokens yesterday.
This issue has 2 comments on GitHub. Read the full discussion on GitHub ↗