ada auth
Sign in to your Lovelace account and manage stored accounts
ada auth signs the CLI in to Lovelace with the OAuth 2.0 device authorization flow, reports the current session, signs out, and switches between accounts you have signed in with. Signing in is optional for local use: chat and agents can run on the local Lattice daemon without an account. When you are signed in, chat routes to the Lovelace assistant service by default.
Usage#
ada auth <COMMAND> [OPTIONS]
Subcommands#
| Subcommand | Description |
|---|---|
ada auth login | Sign in to Lovelace (alias: signin) |
ada auth logout | Sign out and clear the stored session |
ada auth status | Show whether you are signed in, and as whom |
ada auth switch | List stored accounts or switch the active account |
All subcommands accept the global options listed in the command reference.
ada auth login#
Starts the device authorization flow. The CLI opens your browser at the verification page and also prints a QR code, so you can finish sign-in on this machine or on a phone.
ada auth login
ada auth signin
ada auth login --no-browser
ada auth login --no-browser --no-qr
| Option | Description |
|---|---|
--no-browser | Do not open a browser; complete sign-in from the printed instructions |
--no-qr | Do not print the QR code |
-q, --quiet | Suppress progress indicators |
Use --no-browser on a remote or headless machine: open the printed verification page on any device and approve the request there. Signing in with a different account adds it to the list of stored accounts.
ada auth logout#
Signs out of the active account and removes its session from the system keyring.
ada auth logout
ada auth status#
Shows the signed-in user and session health.
ada auth status
ada auth status --format json
| Option | Description |
|---|---|
--format <FORMAT> | text (default) or json |
JSON output when signed in:
{
"authenticated": true,
"user": {
"id": "...",
"email": "user@example.com",
"name": "...",
"emailVerified": true
},
"session": {
"health": "...",
"savedAt": "...",
"accountsUrl": "..."
}
}
When no session exists, the output is {"authenticated": false, "loginCommand": "ada auth login"}.
ada auth switch#
Without --account, lists the accounts stored on this machine and marks the active one. With --account, makes that account active.
ada auth switch
ada auth switch --list --format json
ada auth switch --account user@example.com
| Option | Description |
|---|---|
--list | List stored accounts instead of switching |
--account <ACCOUNT> | Email of the account to make active |
--format <FORMAT> | text (default) or json |
If the account is not stored yet, sign in to it first with ada auth signin.
Credential storage#
Session tokens are stored in the operating system keyring. They are never written to the configuration file. ada uninstall removes them unless you pass --keep-keyring.
Common tasks#
Check whether a script can reach cloud features:
ada auth status --format json
Sign in on a server without a browser:
ada auth login --no-browser --no-qr
Related Commands#
- ada config - Configure LLM providers and their API keys
- ada doctor - Checks for an active auth session among other diagnostics
Related Guides#
See the Command Reference for all available commands.