Skip to content

Make /status and/or login account checkable from command line #1886

Closed

Description

@joshuaballoch

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.

Activity

  1. elee1766 commented on Jun 24, 2025

    @elee1766

    echo "/status" | claude -p does 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...

  2. MDsza commented on Oct 21, 2025

    @MDsza

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

  3. bc commented on Nov 16, 2025

    @bc

    I'm also interested in this

  4. github-actions commented on Dec 17, 2025

    @github-actions

    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.

  5. martymcenroe commented on Jan 7, 2026

    @martymcenroe

    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.

  6. elee1766 commented on Jan 7, 2026

    @elee1766

    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.

  7. johnlarkin1 commented on Jan 13, 2026

    @johnlarkin1

    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!

  8. claude commented on Apr 17, 2026

    @claude
    Contributor

    This issue was fixed as of version 2.1.41.

  9. github-actions commented on Apr 25, 2026

    @github-actions

    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.

  10. locked as resolved and limited conversation to collaborators on Apr 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions