[BUG] Claude Code shows "Claude API" in banner instead of Max plan after login

Status Fixed / completed
Reported on v2.1.34
Maintainer reply None cached
Activity 4 comments · opened Feb 6, 2026 · closed Feb 6, 2026

Preflight Checklist

  • [x] I have searched existing issues and this hasn't been reported yet
  • [x] This is a single bug report (please file separate reports for different bugs)
  • [x] I am using the latest version of Claude Code

What's Wrong?

## Description

Claude Code v2.1.34 displays "Claude API" in the startup banner despite being authenticated with a Max plan subscription. This also
prevents /usage from working.

▐▛███▜▌ Claude Code v2.1.34
▝▜█████▛▘ Opus 4.6 · Claude API
▘▘ ▝▝ /Users/...

Expected: Opus 4.6 · Max plan

## Environment

  • Claude Code v2.1.34
  • macOS (Darwin 25.2.0, Apple Silicon)
  • Max plan subscriber

## What I've tried

  • claude logout && claude login (multiple times)
  • Verified no ANTHROPIC_API_KEY env var is set
  • No stale API key in shell configs, nix config, or anywhere on the system
  • Was working correctly ~2 days ago in v2.1.32 with no config changes on my end

## Observations

  • No ~/.claude/.credentials.json file is created after login
  • No macOS keychain entry for "Claude Code" exists
  • Authentication itself works fine (sessions function normally)
  • Only the auth detection/display appears broken, causing the banner to show "Claude API" and /usage to not work

What Should Happen?

After logging in with a Max plan subscription, the startup banner should display the plan type (e.g. "Opus 4.6 · Max plan") rather than
"Claude API". The /usage command should also work correctly.

Error Messages/Logs

Error messages/logs:

No error messages during login — the OAuth flow appears to complete successfully.

After login:

  - `~/.claude/.credentials.json` does not exist
  - Claude API listed in header rather than Max Plan

Steps to Reproduce

Steps to reproduce:

  1. Have a Max plan subscription
  2. Run /logout
  3. Run /login and complete the OAuth flow in the browser
  4. Launch a new session with claude
  5. Observe the startup banner shows "Opus 4.6 · Claude API" instead of the Max plan
  6. Run /usage — it doesn't work (presumably because it thinks I'm on API billing)

Claude Model

Opus

Is this a regression?

Yes, this worked in a previous version

Last Working Version

v2.1.32

Claude Code Version

2.1.34

Platform

Anthropic API

Operating System

macOS

Terminal/Shell

Other

Additional Information

_No response_

View original on GitHub ↗

4 Comments

github-actions[bot] · 8 months ago

Found 3 possible duplicate issues:

  1. https://github.com/anthropics/claude-code/issues/20976
  2. https://github.com/anthropics/claude-code/issues/22972
  3. https://github.com/anthropics/claude-code/issues/22990

This issue will be automatically closed as a duplicate in 3 days.

  • If your issue is a duplicate, please close it and 👍 the existing issue instead
  • To prevent auto-closure, add a comment or 👎 this comment

🤖 Generated with Claude Code

joekryan · 8 months ago
Found 3 possible duplicate issues: 1. Max plan shows as 'API Usage Billing' in CLI #20976 2. CLI shows 'Claude API' despite OAuth account configured — teleport fails #22972 3. [[BUG] Opus 4.5 API Usage Billing can't use claude CLI max plan anymore why? #22990](https://github.com/anthropics/claude-code/issues/22990) This issue will be automatically closed as a duplicate in 3 days. If your issue is a duplicate, please close it and 👍 the existing issue instead To prevent auto-closure, add a comment or 👎 this comment 🤖 Generated with Claude Code

The other issues were to do with leftover ANTHROPIC_API_KEY variables.

I have no ANTHROPIC_* variables anywhere:

  • Not in settings.json or settings.local.json
  • Not in shell configs
  • Not in .config or nix-config
  • Not in the current environment
  • Not in launchd
  • No project-level settings files exist
joekryan · 8 months ago

ah, it was actually a stray $CLAUDE_CODE_OAUTH_TOKEN variable I'd set...

check those too, not just the ANTHROPIC_* variables

github-actions[bot] · 8 months ago

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.