Skip to content

Command reference

claude auth status

Prints authentication status as JSON, exiting 0 when you are signed in and 1 when you are not.

Terminal commandsAccount and appscurrent

What the documentation does not say

The exit code is the reason to use it: a script can guard on it, while reading the printed text would break the first time the wording changes. --text prints the same thing for a person.