Skip to content
Lovelace

Authentication & Setup Guide

Sign in to Lovelace and configure AI providers

Overview#

Ada CLI works with a local AI provider without signing in. Signing in to Lovelace lets chat use the remote assistant service. This guide covers first-run setup, sign-in, account switching, and provider configuration.

First-Run Setup#

The first time you run ada chat, a setup wizard walks you through:

  1. Lovelace sign-in (optional)
  2. Provider setup: detects local model servers and accepts API keys for cloud providers such as Anthropic and OpenAI
  3. Default model selection
  4. Execution preference: local or cloud routing
  5. Theme selection
bash
ada chat

Pass --skip-setup to bypass the wizard for a single run.

To see what is configured and what to do next at any time:

bash
# Setup status and recommended next steps
ada setup status

# Install and start the Lattice daemon as an OS service
ada setup repair

Signing In#

Sign In#

bash
# Check current authentication status
ada auth status

# Sign in (alias: ada auth signin)
ada auth login

ada auth login opens the Lovelace sign-in page in your browser and also shows a QR code for the device flow, so you can finish sign-in on another device.

bash
# Do not open a browser (use the QR code or device flow instead)
ada auth login --no-browser

# Do not show the QR code
ada auth login --no-qr

Multiple Accounts#

bash
# List stored accounts
ada auth switch --list

# Make a stored account active
ada auth switch --account user@example.com

Sign Out#

bash
ada auth logout

Token Storage#

Auth tokens and provider API keys are stored in the operating system keyring. Set LOVELACE_DISABLE_KEYRING=1 to stop the CLI from storing account credentials there.

AI Provider Configuration#

Supported Providers#

ProviderProvider IDSetup Required
AnthropicanthropicAPI key
OpenAIopenaiAPI key
LM Studio (local)lmstudioServer URL
OpenAI-compatibleany nameServer URL

Provider Setup#

Anthropic (Claude)#

bash
ada config provider set anthropic --api-key "$ANTHROPIC_API_KEY" --model claude-sonnet-4-20250514
ada config provider activate anthropic

Create an API key in the Anthropic Console.

OpenAI#

bash
ada config provider set openai --api-key "$OPENAI_API_KEY" --model gpt-4o
ada config provider activate openai

Create an API key on the OpenAI Platform.

LM Studio (Local)#

bash
ada config provider set lmstudio --base-url http://localhost:1234/v1
ada config provider activate lmstudio

Other OpenAI-Compatible Servers#

bash
ada config provider set my-server --provider-type openai-compat --base-url http://localhost:8000/v1
ada config provider activate my-server

Provider Management#

bash
# List configured providers
ada config provider list

# Show one provider (API keys are hidden unless you pass --show-secrets)
ada config provider show anthropic

# Test the connection to a provider (the active one when no ID is given)
ada config provider test anthropic

# List the models a provider offers
ada config provider models anthropic

# Delete a provider
ada config provider delete lmstudio

To use a different provider or model for one chat session without changing the default:

bash
ada chat --provider openai --model gpt-4o

Configuration Management#

View Configuration#

bash
# Show all configuration (secrets hidden)
ada config show

# Show a single value
ada config get cli.history_limit

Set Configuration#

ada config set accepts these keys: cli.debug, cli.history_limit, cli.auto_save_sessions, and cli.update_check.

bash
ada config set cli.auto_save_sessions true
ada config set cli.update_check false

Reset Configuration#

bash
# Reset configuration to defaults (asks for confirmation)
ada config reset

# Reset without a confirmation prompt
ada config reset --yes

See the ada config reference for every subcommand.

Troubleshooting#

Authentication Issues#

Session expired or invalid

bash
# Check status, then sign in again
ada auth status
ada auth logout
ada auth login

No browser available

bash
ada auth login --no-browser

Provider Issues#

API key invalid or server unreachable

bash
# Test the provider connection
ada config provider test anthropic

# Replace the API key
ada config provider set anthropic --api-key "$ANTHROPIC_API_KEY"

General diagnostics

bash
ada doctor

Environment Variables#

  • LOVELACE_WORKSPACE_ID: workspace ID that chat uses for the session
  • LOVELACE_DISABLE_KEYRING: set to 1 to keep account credentials out of the OS keyring
  • LOVELACE_NO_UPDATE_CHECK: set to any value to skip the update check (also skipped when CI is set)

Next Steps: