Configuration Schema Reference
The Ada CLI configuration files, their fields, and where credentials live
Files#
| File | Contents | Managed by |
|---|---|---|
lovelace/config.toml in the platform configuration directory | CLI settings and LLM providers | ada config, ada config provider, the onboarding wizard |
~/.lovelace/mcp-servers.toml | External MCP servers | ada mcp add, ada mcp remove |
| System keyring | Sign-in tokens, provider API keys, MCP credential headers | ada auth, ada config provider set --api-key, ada mcp add --credential-header |
The platform configuration directory is:
| Platform | config.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#
[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]#
| Key | Type | Default | Description |
|---|---|---|---|
onboarded | boolean | false | Set when the first-run onboarding wizard is completed or dismissed |
debug | boolean | false | Enable debug logging |
session_dir | path | unset | Session directory |
history_limit | integer | 100 | Chat history limit |
auto_save_sessions | boolean | true | Save sessions automatically |
update_check | boolean | true | Allow a background, notify-only update check |
session_resume | string | "always_new" | "always_new" starts a fresh session; "always_resume" resumes the last one |
theme | string | unset | Chat theme name; unset means detect automatically |
client_preference | string | unset (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]#
| Key | Type | Description |
|---|---|---|
active_provider | string | Provider ID that chat uses when --provider is not given |
providers.<id> | table | One entry per configured provider |
Each [providers.providers.<id>] entry:
| Key | Type | Description |
|---|---|---|
id | string | Provider identifier |
name | string | Display name |
api_protocol | string | openai-compatible (default) or custom |
base_url | string | Base URL for API requests (required) |
auth_scheme | table | type 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_model | string | Default model |
available_models | array | Known models |
settings | table | Provider-specific settings |
is_default | boolean | Whether 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.
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:
[[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:
ada mcp config --validate
Environment variables#
| Variable | Used by | Description |
|---|---|---|
LOVELACE_AGENT_PREFERENCE | ada chat | Overrides cli.client_preference: prefer_cloud, prefer_local, only_cloud, or only_local |
LATTICE_CONFIG_PATH | ada acp start | Lattice TOML config file path (same as --config) |
LATTICE_PROVIDER | ada acp start | Default LLM provider override (same as --provider) |
LATTICE_MODEL | ada acp start | Default model override (same as --model) |
LATTICE_BASE_URL | ada acp start | Provider 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#
# 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:
- ada config - Configuration commands
- Authentication Setup
- Command Reference