[BUG] TUI in Claude Code CLI instances using subscription via CLAUDE_CODE_OAUTH_TOKEN is misleading
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?
It is awesome that I can use claude setup-token to use my subscription Claude Code CLI instances installed on setups without a browser. However the TUI when I use the CLAUDE_CODE_OAUTH_TOKEN (from doing claude setup-token) is misleading as it is not clear if I am using my Claude subscription or an Anthropic API key.
Show here is a screenshot of my Claude Code CLI instance logged in my Claude subscription auth flow:
<img width="508" height="374" alt="Image" src="https://github.com/user-attachments/assets/67578e51-85d2-42c7-941d-233589afd65c" />
Note how the Claude Code banner shows "Claude Pro" (or respective subscription tier) and how a Current session usage bar is shown.
Now here is a screenshot of my other Claude Code CLI instance logged in with my CLAUDE_CODE_OAUTH_TOKEN:
<img width="509" height="280" alt="Image" src="https://github.com/user-attachments/assets/3eca147e-10bb-4d7e-ab9d-118f31b39e3a" />
Note how the Claude Code banner shows "Claude API" and how I can't track my current session.
What Should Happen?
The TUI should make it very clear that I am using my subscription when using the CLAUDE_CODE_OAUTH_TOKEN and I should be able to track my current session usage with a usage bar just like in Claude Code CLI instances logged in with the subscription auth flow.
Error Messages/Logs
Steps to Reproduce
- Log into Claude Code CLI using subscription auth flow.
- Note how the Claude Code banner shows "Claude Pro" (or respective subscription tier)
- Run
/usagecommand. - Note how a
Current sessionusage bar is shown. - In another Claude Code CLI installation, use
export CLAUDE_CODE_OAUTH_TOKEN=your-token(from runningclaude setup-token) to log in. - Note how the Claude Code banner shows "Claude API."
- Run
/usagecommand. - Note how I can't track my current session.
Claude Model
None
Is this a regression?
I don't know
Last Working Version
_No response_
Claude Code Version
2.1.119 (Claude Code)
Platform
Anthropic API
Operating System
macOS
Terminal/Shell
Terminal.app (macOS)
Additional Information
_No response_
This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗