[FEATURE] whoami for claude code - show what account is in use

Resolved 💬 3 comments Opened Apr 14, 2026 by hlinn-knostic Closed Apr 18, 2026

Preflight Checklist

  • [x] I have searched existing requests and this feature hasn't been requested yet
  • [x] This is a single feature request (not multiple features)

Problem Statement

I need to audit my organization to ensure my staff are logged in to claude code using the approved corporate claude account for monitoring and contractual management of data, instead of personal accounts on work assets.

Proposed Solution

I would like to be able to determine what account is being used for claude code billing both programmatically (say, catting a file, examining a keychain, or using a claude command line flag) and within the UI (say, using /whoami) and see what account is associated for billing.

Alternative Solutions

I have looked for this information in keychains, configuration files, and using /status, but none of these are truly adequate for this need.

Priority

Medium - Would be very helpful

Feature Category

Configuration and settings

Use Case Example

Enterprise GRC

  1. I am an enterprise administrator who needs to make sure all claude usage within my organization uses corporate approved credentials bound by corporate contracts for data management, in order to mitigate data loss concerns.
  2. I would use my enterprise software management tools to poll claude code instances to determine what accounts they are logged into
  3. I would be able to enforce only specific accounts by being able to automatically change this setting as needed.

Additional Context

_No response_

View original on GitHub ↗

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