Make `/status` and/or login account checkable from command line
Status Fixed / completed
Maintainer reply ✓ Yes — claude[bot]
Workaround ✓ Mentioned in thread ↓
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.
9 Comments
echo "/status" | claude -pdoes 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...
Any news here? Working with different Claude Subscription Accounts, too. Sure, this little but practical feature could be implemented easily by the Anthropic Team ...
I'm also interested in this
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.
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.
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.
Yeah this isn't 100% full proof, but took some inspiration from some other repos:
It's been working fine enough for me:
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!
This issue was fixed as of version 2.1.41.
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.