Make `/status` and/or login account checkable from command line

Status Fixed / completed
Maintainer reply ✓ Yes — claude[bot]
Activity 9 comments · opened Jun 10, 2025 · closed Apr 17, 2026
💡 Likely answer: A maintainer (claude[bot], contributor) responded on this thread — see the highlighted reply below.

I would like to be able to check the account I am logged into with Claude, from the command line. I can check it in an interactive session, with /status, but it doesn't appear possible to pass commands to claude, e.g. claude -p "/status"

I'm looking into this to be able to have a script double-check that I am logged into the correct Claude account / Claude Pro/Max Subscription, for the project I am working on, before starting Claude Code.

View original on GitHub ↗

9 Comments

elee1766 · 1 year ago

echo "/status" | claude -p does not seem to work either.

i'm trying to do what this person is doing https://github.com/anthropics/claude-code/issues/1407#issuecomment-2995805615

but like that's a really deranged workaround lol...

MDsza · 10 months ago

Any news here? Working with different Claude Subscription Accounts, too. Sure, this little but practical feature could be implemented easily by the Anthropic Team ...

bc · 9 months ago

I'm also interested in this

github-actions[bot] · 8 months ago

This issue has been inactive for 30 days. If the issue is still occurring, please comment to let us know. Otherwise, this issue will be automatically closed in 30 days for housekeeping purposes.

martymcenroe · 7 months ago

Still needed. I've filed #16629 with a concrete use case: Windows Task Scheduler automation for Max subscribers. The three issues (#1886, #8412, #16629) cover different angles of the same gap - no programmatic access to usage data.

elee1766 · 7 months ago

for a while i was extracting rate limit information out from the headers and that worked.

but now that you can do /status and there is an actual % usage there, i assume there is an api now that is easy to figure out and you can call using the token and free of claude code, so probably this isnt needed.

johnlarkin1 · 7 months ago

Yeah this isn't 100% full proof, but took some inspiration from some other repos:

It's been working fine enough for me:

╭─johnlarkin@Mac ~/Documents/coding
╰─➤  claude --usage

 Current session
 ████████████████████████████                       56% used
 Resets Jan 13 at 12AM (EST)

 Current week (all models)
 ███████████████                                    30% used
 Resets Jan 15 at 8AM (EST)

 Current week (Sonnet only)
                                                    0% used
 Resets not enabled

 ○ Extra usage not enabled


╭─johnlarkin@Mac ~/Documents/coding
╰─➤  claude --status

 Version: 2.0.76
 Session ID: d9010208-8551-4ce7-bfb4-f8ae885ef8bd
 cwd: /Users/johnlarkin/Documents/coding
 Login method: Claude Max Account
 Organization: John
 Email: <redacted>

 Model: Default (Opus 4.5)
 MCP servers: 21 enabled
 Memory: none
 Setting sources: User,settings

Room for improvement on the repo so feel free to open up PRs, clone, cla(ude)one it and re-write your own, etc.

but would still love for this to be incorproated in the normal CLI please and thank you!

claude[bot] contributor · 4 months ago

This issue was fixed as of version 2.1.41.

github-actions[bot] · 4 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.