Skip to content
Lovelace

Configuration Schema Reference

The Ada CLI configuration files, their fields, and where credentials live

Files#

FileContentsManaged by
lovelace/config.toml in the platform configuration directoryCLI settings and LLM providersada config, ada config provider, the onboarding wizard
~/.lovelace/mcp-servers.tomlExternal MCP serversada mcp add, ada mcp remove
System keyringSign-in tokens, provider API keys, MCP credential headersada auth, ada config provider set --api-key, ada mcp add --credential-header

The platform configuration directory is:

Platformconfig.toml path
Linux~/.config/lovelace/config.toml (or $XDG_CONFIG_HOME/lovelace/config.toml)
macOS~/Library/Application Support/lovelace/config.toml
Windows%APPDATA%\lovelace\config.toml

ada config show prints the exact path on the current machine. The file is created the first time a setting or provider is saved; until then, defaults apply.

config.toml#

toml
[cli]
onboarded = true
debug = false
history_limit = 100
auto_save_sessions = true
update_check = true
session_resume = "always_new"
# session_dir = "/path/to/sessions"
# client_preference = "prefer_cloud"

[providers]
active_provider = "anthropic"

[providers.providers.anthropic]
id = "anthropic"
name = "anthropic"
api_protocol = "openai-compatible"
base_url = "https://api.anthropic.com"
default_model = "claude-sonnet-4-5"
available_models = []
is_default = true

[providers.providers.anthropic.auth_scheme]
type = "apikey"

[cli]#

KeyTypeDefaultDescription
onboardedbooleanfalseSet when the first-run onboarding wizard is completed or dismissed
debugbooleanfalseEnable debug logging
session_dirpathunsetSession directory
history_limitinteger100Chat history limit
auto_save_sessionsbooleantrueSave sessions automatically
update_checkbooleantrueAllow a background, notify-only update check
session_resumestring"always_new""always_new" starts a fresh session; "always_resume" resumes the last one
themestringunsetChat theme name; unset means detect automatically
client_preferencestringunset (prefer_cloud)Where chat runs: prefer_cloud, prefer_local, only_cloud, or only_local

ada config set and ada config get handle cli.debug, cli.history_limit, cli.auto_save_sessions, and cli.update_check. Edit the file directly for the other keys.

[providers]#

KeyTypeDescription
active_providerstringProvider ID that chat uses when --provider is not given
providers.<id>tableOne entry per configured provider

Each [providers.providers.<id>] entry:

KeyTypeDescription
idstringProvider identifier
namestringDisplay name
api_protocolstringopenai-compatible (default) or custom
base_urlstringBase URL for API requests (required)
auth_schemetabletype is none, apikey, oauth, bearertoken, basicauth, or custom; an optional credential_id names the keyring entry (defaults to the provider ID); custom also takes scheme
default_modelstringDefault model
available_modelsarrayKnown models
settingstableProvider-specific settings
is_defaultbooleanWhether this is the default provider for chat

Use ada config provider set rather than editing provider entries by hand: it fills in known base URLs, stores the API key in the keyring, and syncs the provider to the local Lattice daemon.

bash
ada config provider set anthropic --api-key "$ANTHROPIC_API_KEY" --model claude-sonnet-4-5
ada config provider activate anthropic
ada config provider test

mcp-servers.toml#

Each [[servers]] entry defines one external MCP server:

toml
[[servers]]
name = "filesystem"
command = "node"
args = ["mcp-filesystem-server.js"]

Add remote servers, environment variables, headers, and timeouts with ada mcp add (see ada mcp). Check the file with:

bash
ada mcp config --validate

Environment variables#

VariableUsed byDescription
LOVELACE_AGENT_PREFERENCEada chatOverrides cli.client_preference: prefer_cloud, prefer_local, only_cloud, or only_local
LATTICE_CONFIG_PATHada acp startLattice TOML config file path (same as --config)
LATTICE_PROVIDERada acp startDefault LLM provider override (same as --provider)
LATTICE_MODELada acp startDefault model override (same as --model)
LATTICE_BASE_URLada acp startProvider API base URL override (same as --base-url)

ada chat --local takes precedence over LOVELACE_AGENT_PREFERENCE and forces the local daemon.

Resetting and removing configuration#

bash
# Reset config.toml to defaults (keyring credentials are kept)
ada config reset

# Remove all Ada and Lovelace data from this machine
ada uninstall

# Remove data but keep configuration and keyring credentials
ada uninstall --keep-config --keep-keyring

ada uninstall options: --keep-data keeps session data and the offline store in ~/.lovelace/, --keep-config keeps the configuration directory, --keep-keyring keeps keyring credentials, and -y, --yes skips the confirmation.


See Also: