Signed out and signed in
The checks judge your rules with a runner, such as the Claude Code CLI, and that runner has its own sign-in.
actual auth checks the runner’s sign-in; it has nothing to do with your Actual AI account.
Sign in from your terminal
actual login opens your browser to sign in to Actual AI, then stores your credentials on your machine. It needs a person at the browser, so an agent can’t finish it from its shell. Ask your agent to sign you in and the actual skill either asks you to run actual login or runs it with --no-browser and gives you the URL to open.
Check who you are
actual whoami prints the signed-in organization, account and scopes from your local credentials, with no network request. It exits with status 2 when you aren’t signed in, which makes it a quick check before a command that needs a sign-in.
actual whoami --check (CLI 0.15.0 or later) asks the auth server whether your sign-in still works, renewing the access token first when it expires within a minute. Its exit status tells a lapsed sign-in from an outage:
Sign out
actual logout signs you out of Actual AI and deletes the local credentials.
Where credentials live
Your sign-in is stored in~/.actualai/actual/credentials.yaml, readable only by you, beside the CLI’s config.yaml. When ACTUAL_CONFIG_DIR names another directory, the file lives there instead. Commands renew the access token as it expires, so you sign in again only when the server stops accepting the sign-in.
While you’re signed in, the telemetry the CLI sends carries your sign-in. Privacy and telemetry covers what is sent and how to turn it off.
Sign-in for CI and headless agents
A CI job or an unattended agent has no browser to sign in with.actual auth create-token mints a scoped token from your own sign-in, and actual mint-token gets one from a service-account key with no person involved. Both pass the token through ACTUAL_TOKEN. Unattended agents and CI walks through each.
