Skip to content
Lovelace

Getting Started with Ada CLI

Install the Ada CLI and run your first session

This guide installs Ada CLI and walks through chat, workspaces, agents, and sessions.

Quick Start#

1. Install#

For macOS / Linux / WSL:

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

For version pinning, installer options, and troubleshooting, see Installation.

2. Verify Installation#

bash
# Check the installed version
ada --version

# Run local diagnostics
ada doctor

# Show setup status and recommended next steps
ada setup status

3. Start Your First Chat Session#

bash
ada chat

The first run opens a setup wizard for sign-in, provider, and model selection. After that, ada chat opens an interactive session where you can ask questions about your code and get suggestions.

Step-by-Step Tutorial#

Step 1: Authentication#

Signing in is optional for local chat. When you are signed in, chat routes to the remote assistant service by default.

bash
# Check current authentication
ada auth status

# Sign in with your browser or a QR code device flow
ada auth login

Step 2: Workspace Setup#

Workspaces are environments for organizing agents and tasks.

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

# Initialize a workspace for the current directory
ada workspaces init

# List your workspaces
ada workspaces list

# Show the active workspace
ada workspaces current

To create a workspace by name, or switch to another one:

bash
# Create a workspace
ada workspaces create --name my-new-project

# Switch the active workspace by ID
ada workspaces select --id <workspace-id>

Step 3: Chat#

bash
# Basic chat
ada chat

# Chat with a specific provider
ada chat --provider anthropic

# Keep chat on the local daemon even when signed in
ada chat --force-local

Example conversation:

text
You: Explain the structure of this codebase
Ada: This is a Next.js project written in TypeScript...

You: How can I improve the authentication flow?
Ada: Based on your current implementation, here are three improvements...

Step 4: Agents#

Agents run long tasks in the Lattice daemon.

bash
# Start an agent on a task
ada agents start "Analyze the code under src/ and summarize the main modules"

# List running agents
ada agents list

# Show daemon status, or one agent's status
ada agents status
ada agents status <agent-id>

To queue work on the local daemon instead of starting an agent directly:

bash
# Queue a task
ada tasks submit "Review src/auth for missing error handling"

# List tasks and follow one until it finishes
ada tasks list
ada tasks monitor <task-id> --follow

Step 5: Session Management#

bash
# List previous chat sessions
ada sessions list

# Resume a session (pick interactively when no ID is given)
ada sessions resume
ada sessions resume <session-id>

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

Common Workflows#

Daily Development Workflow#

bash
# 1. Pull remote changes for the active workspace
ada workspaces pull

# 2. Start an interactive session
ada chat

# 3. Hand longer work to an agent
ada agents start "Write integration tests for the changes on this branch"

Code Review Workflow#

bash
# 1. Start a review agent
ada agents start "Review the uncommitted changes in this repository for security issues"

# 2. Discuss the findings interactively
ada chat

Workspace Sync Workflow#

bash
# 1. Check sync status for the active workspace
ada sync status

# 2. Sync local and remote changes
ada workspaces sync

# 3. List any unresolved conflicts
ada sync conflicts

Essential Commands#

Authentication & Setup#

  • ada setup status: show setup status and recommended next steps
  • ada auth login: sign in to Lovelace
  • ada auth status: check authentication
  • ada config show: view configuration

Workspace Management#

  • ada workspaces list: list workspaces
  • ada workspaces init: initialize a workspace for the current directory
  • ada workspaces current: show the active workspace
  • ada workspaces sync: sync the active workspace

AI Interaction#

  • ada chat: start an interactive chat session
  • ada sessions list: list chat sessions
  • ada sessions resume: resume a chat session

Agents and Tasks#

  • ada agents list: list running agents
  • ada agents status: show daemon or agent status
  • ada tasks list: list tasks

System Utilities#

  • ada doctor: system diagnostics
  • ada status: daemon, agent, tool, and reachability health
  • ada --help: command help

Next Steps#


Need Help? Run ada doctor for system diagnostics or ada --help for command assistance.