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:
- Lovelace sign-in (optional)
- Provider setup: detects local model servers and accepts API keys for cloud providers such as Anthropic and OpenAI
- Default model selection
- Execution preference: local or cloud routing
- Theme selection
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:
# 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#
# 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.
# 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#
# List stored accounts
ada auth switch --list
# Make a stored account active
ada auth switch --account user@example.com
Sign Out#
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#
| Provider | Provider ID | Setup Required |
|---|---|---|
| Anthropic | anthropic | API key |
| OpenAI | openai | API key |
| LM Studio (local) | lmstudio | Server URL |
| OpenAI-compatible | any name | Server URL |
Provider Setup#
Anthropic (Claude)#
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#
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)#
ada config provider set lmstudio --base-url http://localhost:1234/v1
ada config provider activate lmstudio
Other OpenAI-Compatible Servers#
ada config provider set my-server --provider-type openai-compat --base-url http://localhost:8000/v1
ada config provider activate my-server
Provider Management#
# 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:
ada chat --provider openai --model gpt-4o
Configuration Management#
View Configuration#
# 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.
ada config set cli.auto_save_sessions true
ada config set cli.update_check false
Reset Configuration#
# 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
# Check status, then sign in again
ada auth status
ada auth logout
ada auth login
No browser available
ada auth login --no-browser
Provider Issues#
API key invalid or server unreachable
# 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
ada doctor
Environment Variables#
LOVELACE_WORKSPACE_ID: workspace ID that chat uses for the sessionLOVELACE_DISABLE_KEYRING: set to1to keep account credentials out of the OS keyringLOVELACE_NO_UPDATE_CHECK: set to any value to skip the update check (also skipped whenCIis set)
Next Steps:
- Workspace Management: organize agents and tasks
- Interactive Chat: start using Ada