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:
curl -fsSL https://d.uselovelace.com/install | sh
For version pinning, installer options, and troubleshooting, see Installation.
2. Verify Installation#
# 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#
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.
# 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.
# 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:
# 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#
# 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:
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.
# 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:
# 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#
# 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#
# 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#
# 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#
# 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 stepsada auth login: sign in to Lovelaceada auth status: check authenticationada config show: view configuration
Workspace Management#
ada workspaces list: list workspacesada workspaces init: initialize a workspace for the current directoryada workspaces current: show the active workspaceada workspaces sync: sync the active workspace
AI Interaction#
ada chat: start an interactive chat sessionada sessions list: list chat sessionsada sessions resume: resume a chat session
Agents and Tasks#
ada agents list: list running agentsada agents status: show daemon or agent statusada tasks list: list tasks
System Utilities#
ada doctor: system diagnosticsada status: daemon, agent, tool, and reachability healthada --help: command help
Next Steps#
- Editor Integration: set up Zed or another ACP editor
- CI/CD Integration: use
adafrom build pipelines
Need Help? Run ada doctor for system diagnostics or ada --help for command assistance.