Skip to content
Lovelace

Quickstart

Get up and running with Ada CLI in just a few minutes

This guide installs Ada CLI, connects it to an AI provider, and runs your first chat and agent.

Installation#

macOS / Linux / WSL:

bash
curl -fsSL https://d.uselovelace.com/install | sh
ada --version

The installer adds ada, lovelace (a second name for ada), and the Lattice runtime (lattice-daemon, lattice-ctl). For version pinning, installer options, and troubleshooting, see Installation.

Quick Setup#

Step 1: Start Ada#

bash
# Navigate to your project
cd /path/to/your/project

# Start an interactive chat (the default command)
ada chat

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

  1. Signing in to Lovelace (optional)
  2. Connecting a provider: a local server such as LM Studio, or an API key for Anthropic or OpenAI
  3. Choosing a default model
  4. Choosing local or cloud execution
  5. Picking a theme

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

Step 2: Sign In (Optional)#

When you are signed in, chat routes to the remote assistant service by default (ada chat --force-local keeps it on the local daemon). If you skipped sign-in in the wizard:

bash
ada auth login

ada auth login opens your browser and also shows a QR code for the device flow. On a machine without a browser, use ada auth login --no-browser and complete sign-in from another device.

Step 3: Verify Your Setup#

bash
# Local diagnostics
ada doctor

# Setup status and recommended next steps
ada setup status

# Authentication status
ada auth status

Step 4: Chat#

Inside ada chat, type a message and press Enter. Try prompts such as:

text
You: What's the structure of this codebase?

You: How can I improve error handling in auth.ts?

Tips:

  • Type /help to see available slash commands
  • Type /session list to see saved sessions
  • Type /exit to end the session

Step 5: Start an Agent#

Agents run long tasks in the Lattice daemon while you keep working:

bash
# Start an agent on a task and wait for it to start
ada agents start "Generate unit tests for src/user-service.ts" --wait

# List running agents
ada agents list

# Check one agent
ada agents status <agent-id>

# Stop an agent
ada agents stop <agent-id>

Next Steps#

Essential Commands#

AI Interaction:

bash
ada chat                              # Interactive AI chat
ada sessions list                     # List chat sessions
ada sessions resume                   # Pick a session to resume

Agents and Tasks:

bash
ada agents list                       # List running agents
ada agents start "Refactor src/auth"  # Start an agent on a task
ada tasks submit "Update the README"  # Queue a task on the local daemon
ada tasks list                        # List tasks

Workspaces:

bash
ada workspaces list                   # List workspaces
ada workspaces current                # Show the active workspace
ada workspaces sync                   # Sync the active workspace

Configuration:

bash
ada config show                       # View configuration
ada config provider list              # List configured providers
ada doctor                            # System diagnostics

Learn Common Workflows#

Explore Advanced Features#

Multiple Providers:

bash
# Add or update a provider
ada config provider set openai --api-key "$OPENAI_API_KEY" --model <model-id>

# Make it the default
ada config provider activate openai

# Use a specific provider and model for one session
ada chat --provider anthropic --model <model-id>

MCP Integration:

bash
# List configured MCP servers
ada mcp servers list

# List tools from all configured servers
ada mcp tools

# Start an interactive MCP shell
ada mcp repl

Session Management:

bash
# List previous chats
ada sessions list

# Resume a session
ada sessions resume <session-id>

# Show details for the last session
ada sessions info --last

Troubleshooting#

Common Issues#

Authentication fails:

bash
# Sign out, then sign in again
ada auth logout
ada auth login

Command not found:

bash
# Verify installation
which ada

# Reinstall
curl -fsSL https://d.uselovelace.com/install | sh

Daemon not running:

bash
# Show daemon, agent, and reachability health
ada status

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

Workspace issues:

bash
# Show the active workspace
ada workspaces current

# Show sync status for the active workspace
ada sync status

Getting Help#

Built-in Diagnostics:

bash
# System check
ada doctor

# Verbose diagnostic output
ada doctor --verbose

Command Help:

bash
# General help
ada --help

# Command-specific help
ada chat --help
ada agents start --help

What's Next?#

  1. Explore Common Workflows: practical examples for everyday tasks
  2. Read the CLI Reference: every available command
  3. Set Up Editor Integration: use Ada from your editor

Need more help? Run ada doctor for diagnostics.