Skip to content
Lovelace

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#

bash
ada auth <COMMAND> [OPTIONS]

Subcommands#

SubcommandDescription
ada auth loginSign in to Lovelace (alias: signin)
ada auth logoutSign out and clear the stored session
ada auth statusShow whether you are signed in, and as whom
ada auth switchList 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.

bash
ada auth login
ada auth signin
ada auth login --no-browser
ada auth login --no-browser --no-qr
OptionDescription
--no-browserDo not open a browser; complete sign-in from the printed instructions
--no-qrDo not print the QR code
-q, --quietSuppress 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.

bash
ada auth logout

ada auth status#

Shows the signed-in user and session health.

bash
ada auth status
ada auth status --format json
OptionDescription
--format <FORMAT>text (default) or json

JSON output when signed in:

json
{
  "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.

bash
ada auth switch
ada auth switch --list --format json
ada auth switch --account user@example.com
OptionDescription
--listList 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:

bash
ada auth status --format json

Sign in on a server without a browser:

bash
ada auth login --no-browser --no-qr
  • ada config - Configure LLM providers and their API keys
  • ada doctor - Checks for an active auth session among other diagnostics

See the Command Reference for all available commands.