claude-code icon indicating copy to clipboard operation
claude-code copied to clipboard

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

Open joshuaballoch opened this issue 6 months ago • 1 comments

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.

joshuaballoch avatar Jun 10 '25 12:06 joshuaballoch

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...

elee1766 avatar Jun 24 '25 17:06 elee1766

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

MDsza avatar Oct 21 '25 06:10 MDsza

I'm also interested in this

bc avatar Nov 16 '25 18:11 bc