You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Make /status and/or login account checkable from command line #1886
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.
Reacted by Devin de Hueck, David Montague, Cody De Arkland, Yasuhiro SHIMIZU, P-Chan, lissette, MDsza, Lewis Nelson, vmgadam, John Larkin and 7 more
Any news here? Working with different Claude Subscription Accounts, too. Sure, this little but practical feature could be implemented easily by the Anthropic Team ...
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.
╭─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!
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.
Activity
elee1766 commentedon Jun 24, 2025
echo "/status" | claude -pdoes not seem to work either.i'm trying to do what this person is doing #1407 (comment)
but like that's a really deranged workaround lol...
MDsza commentedon Oct 21, 2025
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 commentedon Nov 16, 2025
I'm also interested in this
github-actions commentedon Dec 17, 2025
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 commentedon Jan 7, 2026
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 commentedon Jan 7, 2026
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 commentedon Jan 13, 2026
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!
claude commentedon Apr 17, 2026
This issue was fixed as of version 2.1.41.
github-actions commentedon Apr 25, 2026
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.