auth for browser login and local credential management. For headless
environments, set ATLANAI_TOKEN instead.
No auth subcommand accepts positional arguments unless shown below.
Commands
login
Opens browser authentication and stores the resulting refresh credential in the operating system’s supported credential store. UsageATLANAI_TOKEN is set, login stops because that environment credential
would shadow the stored session.
status
Shows whether the CLI has a usable credential and where it came from. Usage
Returns exit code
4 when no usable credential exists.
logout
Removes the stored session and clears the credential held by the running daemon. Usagetoken
Prints a stored bearer token for another local process. UsageATLANAI_TOKEN from the environment.
Examples
Output and behavior
auth statusprints state, token source, Gateway, and resolved identity. It never prints the credential.auth tokenwrites the token to stdout. Treat it as a secret and do not put it in logs, prompts, or source control.ATLANAI_TOKENaccepts an API key or bearer token and takes precedence over stored OAuth credentials.- After changing
ATLANAI_TOKEN, runatlanai daemon stopso the next hook starts the daemon with the new value.