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_KEY environment variable set

Details

  • ~/.claude.json contains a valid oauthAccount object with the correct email and org
  • No API key is stored in the config file or environment
  • /logout followed by /login re-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:

  1. Show "Max" (not "Claude API") in the status bar
  2. Use OAuth tokens for --teleport session authentication
  3. /usage should show Max plan usage limits

Steps to Reproduce

  1. Have a Max plan subscription on claude.ai
  2. Run claude/logout/login → authenticate via browser
  3. Observe status bar still shows "Claude API"
  4. 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.

View original on GitHub ↗

This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗