⌨️claude auth status Command
Also known as claude auth status, Check sign-in from a script
It says if you are signed in, as JSON or text.
Think of it like
It is like you check that your ticket is in your bag.
Example
Jack's nightly script runs Claude Code. It runs claude auth status first, and stops with a clear message when the exit code is 1.
Why it matters
A script that checks first fails with a clear reason, instead of halfway through a job.
Definition
Example code
bash
claude auth status --textCommon mistake
Key takeaways
- 1JSON or text. --text for people.
- 2Exit 0 or 1. Scripts can check.
- 3Names the method. Plan, key or token.