CLI shows 'Claude API' despite OAuth account configured — teleport fails
Resolved 💬 3 comments Opened Feb 4, 2026 by evolsb Closed Feb 4, 2026
Description
After /logout and /login with OAuth (Max plan), the CLI status bar always shows "Opus 4.5 · Claude API" instead of "Max". This causes --teleport to fail with:
Error: Session expired. Please run /login to sign in again.
Environment
- Claude Code v2.1.31
- macOS (native install)
- Max plan subscription (confirmed via claude.ai/settings/billing)
- No
ANTHROPIC_API_KEYenvironment variable set
Details
~/.claude.jsoncontains a validoauthAccountobject with the correct email and org- No API key is stored in the config file or environment
/logoutfollowed by/loginre-authenticates but still shows "Claude API"/usage→ Status tab shows "Login method: Claude API Account"/usage→ Usage tab returns permission error:"does not meet scope requirement user:profile"--teleport <session_id>always fails with "Session expired"
Expected Behavior
After OAuth login with a Max plan account, the CLI should:
- Show "Max" (not "Claude API") in the status bar
- Use OAuth tokens for
--teleportsession authentication /usageshould show Max plan usage limits
Steps to Reproduce
- Have a Max plan subscription on claude.ai
- Run
claude→/logout→/login→ authenticate via browser - Observe status bar still shows "Claude API"
- Try
claude --teleport <any-session-id>→ fails with session expired
Workaround
None found. The OAuth account is stored in config but the CLI doesn't seem to use it for authentication.
This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗