CLI Command Reference
Every Ada CLI command and subcommand on one page
ada is the Ada CLI. lovelace is a second name for the same binary and accepts identical commands. Detailed pages for the most used commands are in the command reference. Every command also prints its own help with --help.
Global Options#
Every command accepts these options:
| Option | Description |
|---|---|
--debug | Enable debug logging |
-v, --verbose | Verbose output |
-q, --quiet | Suppress non-essential diagnostic output |
--no-color | Disable ANSI colors and text styling in human-readable output |
--skip-setup | Bypass automatic first-run setup prompts for this invocation |
-h, --help | Print help |
A few subcommands, such as ada agents list and ada mcp servers list, define their own --verbose without the -v short form. ada --version prints the version. ada and ada chat also accept --session <SESSION>, --provider <PROVIDER>, and --model <MODEL>.
Chat#
ada # same as ada chat
ada chat
ada chat --session <SESSION_ID> # resume a session
ada chat --provider anthropic --model claude-sonnet-4-5
ada chat --local # use the local daemon even when signed in
ada chat --no-daemon # run in the CLI process without the daemon
Chat is interactive only and takes no message argument. See ada chat.
Authentication#
ada auth login # alias: ada auth signin
ada auth login --no-browser --no-qr
ada auth logout
ada auth status --format json
ada auth switch --list
ada auth switch --account user@example.com
See ada auth.
Developer credentials#
ada developer api-key create # write LOVELACE_API_KEY to .env.local or .env
ada developer api-key create --scope lattice:compute:inference --env-file .env.production
ada developer app create --redirect-uri http://localhost:3000/auth/callback
ada developer app create --redirect-uri http://localhost:5173/callback --public
Each command signs in through the browser when this machine is not signed in,
writes the credential to the project's env file, and never prints a secret.
app create writes LOVELACE_CLIENT_ID, plus LOVELACE_CLIENT_SECRET for a
confidential app. Apps whose redirect URIs are all localhost, 127.x.x.x, or
[::1] work right away; any other redirect URI needs an approved developer
account.
Keyless CI access#
ada developer trust-policy create --preset github-actions --repository acme/agents --ref refs/heads/main
ada developer trust-policy create --preset gitlab --project-path acme/agents
ada developer trust-policy create --preset kubernetes --namespace agents --service-account runner --issuer-url https://oidc.cluster.example.com
ada developer trust-policy list --format json
ada developer trust-policy delete tp_9f2c --yes
A trust policy lets a CI job or cluster workload exchange its platform OIDC
token for a short-lived Lattice token, so the workload stores no Lovelace
credential. create prints the trust policy ID, token endpoint, audience, and
resource the workload sends in that exchange; none of them is a secret.
| Preset | Required flags |
|---|---|
github-actions | --repository, --ref |
gitlab | --project-path |
kubernetes | --namespace, --service-account, --issuer-url |
The policy grants lattice:compute:inference on the Lattice Cloud gateway
unless --scope or --resource names others. --format json prints the
policy id, its version, and the exchange object. delete asks for
confirmation unless --yes is given, and deletes the policy only at the
version it reads first. These commands sign in through the browser when this
machine is not signed in, and the person who approves must own the account.
Configuration#
ada config show
ada config show --show-secrets
ada config get cli.history_limit
ada config set cli.update_check false
ada config reset --yes
ada config provider list
ada config provider set anthropic --api-key "$ANTHROPIC_API_KEY" --model claude-sonnet-4-5
ada config provider show anthropic
ada config provider activate anthropic
ada config provider test
ada config provider models --refresh
ada config provider delete anthropic --yes
ada config migrate-context # preview AGENT.md generated from editor rules
ada config migrate-context --apply
See ada config and the configuration schema.
Setup and diagnostics#
ada setup # same as ada setup status
ada setup status --format json
ada setup repair # install and start lattice-daemon as an OS service
ada doctor
ada status
ada status --wide
ada status --json
See ada setup and ada doctor.
Workspaces and sync#
ada workspaces list
ada workspaces current
ada workspaces init
ada workspaces create --name my-project --description "My project"
ada workspaces select --id <WORKSPACE_ID> # aliases: switch, use
ada workspaces update --id <WORKSPACE_ID> --name renamed-project
ada workspaces delete --id <WORKSPACE_ID> --yes
ada workspaces sync
ada workspaces push
ada workspaces pull
ada sync now
ada sync status
ada sync push
ada sync pull
ada sync conflicts
ada sync resolve <OBJECT_ID> --strategy keep-local # keep-local, keep-remote, or keep-both
ada workspace is an alias for ada workspaces. The workspace and sync commands take --workspace <WORKSPACE> where noted in their help; without it they use the active workspace. See ada workspaces.
Sessions#
ada sessions # interactive browser; select a session to resume it
ada sessions list --format json
ada sessions info --last
ada sessions resume <SESSION_ID>
ada sessions update <SESSION_ID> --title "New title"
ada sessions delete <SESSION_ID> --force
See ada sessions.
Agents and tasks#
ada agents # interactive dashboard
ada agents start "Write unit tests for the user service" --wait
ada agents list --format json
ada agents status
ada agents status <AGENT_ID>
ada agents stop <AGENT_ID> --yes
ada tasks submit "Refactor the logging module" # alias: ada tasks create
ada tasks submit "Add tests" --parent <TASK_ID> --tag testing
ada tasks list --limit 20
ada tasks get <TASK_ID>
ada tasks monitor <TASK_ID> --follow
ada tasks tree <TASK_ID>
ada tasks pause <TASK_ID>
ada tasks resume <TASK_ID>
ada tasks cancel <TASK_ID> --force
ada tasks queue-status
ada tasks get, cancel, monitor, and queue-status take --agent-id <AGENT_ID> for agent-routed and cloud tasks. See ada agents.
MCP servers#
ada mcp add filesystem --command node --arg mcp-filesystem-server.js
ada mcp add docs --url https://example.com/mcp
ada mcp remove docs --yes
ada mcp config --validate
ada mcp servers
ada mcp servers status --health-check
ada mcp tools --group
ada mcp call filesystem:read_file --args '{"path": "README.md"}'
ada mcp exec 'filesystem:read_file(path="README.md")'
ada mcp repl --server filesystem
ada mcp resources list
ada mcp resources read <URI>
ada mcp sessions list
See ada mcp.
Editor integration (ACP)#
ada acp start # serve ACP over stdio for an editor
ada acp start --workspace-id <WORKSPACE_ID>
ada acp start --provider anthropic --model claude-sonnet-4-5
ada acp status --format json
Editors launch ada acp start as a subprocess and exchange JSON-RPC over stdin and stdout. Stdout carries only ACP frames; diagnostics go to stderr. ada acp start also accepts --config <CONFIG> and --base-url <BASE_URL>, and reads LATTICE_CONFIG_PATH, LATTICE_PROVIDER, LATTICE_MODEL, and LATTICE_BASE_URL.
Devices and pairing#
ada pair # interactive pairing and approval
ada devices list
ada devices info # this device
ada devices remove <DEVICE_ID> --force
ada pair handles first-device setup, showing a pairing code on a new device, and approving pending requests on a trusted device.
Installation, updates, and shell integration#
ada install localhost # install the Lattice runtime (lattice-daemon and lattice-ctl)
ada install localhost --status
ada install localhost --dry-run
ada update --check
ada update
ada update --include-daemon
ada update --channel preview # stable, preview, or dev
ada runtime status
ada runtime install bun # bun or deno
ada completions install
ada completions zsh
ada completions uninstall --shell zsh
ada shell-init zsh
ada man ./man
ada uninstall
ada uninstall --keep-config --keep-keyring
ada completions prints scripts with the bash, zsh, fish, and power-shell subcommands. ada shell-init takes bash, elvish, fish, powershell, or zsh, and --with-prompt adds a daemon reachability prompt segment.
Resetting configuration and removing data#
ada config resetresets the configuration file to defaults and keeps keyring credentials.ada uninstallremoves all Ada and Lovelace data from the machine.--keep-data,--keep-config, and--keep-keyringkeep those parts.
Configuration Files#
| File | Contents |
|---|---|
lovelace/config.toml in the platform configuration directory (~/.config on Linux, ~/Library/Application Support on macOS, %APPDATA% on Windows) | CLI settings and LLM providers |
~/.lovelace/mcp-servers.toml | External MCP servers |
| System keyring | Sign-in tokens and provider API keys |
ada config show prints the configuration file path. Field-by-field documentation is in the configuration schema.
Environment Variables#
| Variable | Description |
|---|---|
LOVELACE_AGENT_PREFERENCE | Where chat runs: prefer_cloud, prefer_local, only_cloud, or only_local |
LATTICE_CONFIG_PATH, LATTICE_PROVIDER, LATTICE_MODEL, LATTICE_BASE_URL | Overrides for ada acp start |
Exit Status#
Commands exit 0 on success and nonzero on failure. Invalid arguments or unknown subcommands exit 2.
See Also: