No way to confirm which account a session is authenticated as when using a per-project CLAUDE_CODE_OAUTH_TOKEN override

Status Open
Maintainer reply None cached
Activity 0 comments · opened Aug 5, 2026

Claude Code supports pinning a project directory to a specific Pro/Max subscription via CLAUDE_CODE_OAUTH_TOKEN in .claude/settings.local.json — useful for anyone running multiple projects on separate paid accounts in parallel. However, there's no way to confirm which account is actually active for a given session:

  • claude auth status reports the underlying macOS Keychain identity, not the CLAUDE_CODE_OAUTH_TOKEN override actually in effect for that session — so it gives a wrong answer in exactly this setup.
  • The raw token isn't exposed to any subprocess the session spawns (confirmed via a statusline script and direct shell commands), so there's no way to build a custom check either.
  • /status shows the auth method ("Auth token: CLAUDE_CODE_OAUTH_TOKEN") but not the account behind it.

Feature request: either make claude auth status respect the active session's token override, or surface the resolved email/org somewhere safe (e.g. an extra /status row) — enough for a user to confirm "I am who I think I am" without needing to check an external usage dashboard.

View original on GitHub ↗