Skip to content

Configuration & Storage

Lattis keeps its state under the platform data directory:

Platform Path
macOS ~/Library/Application Support/lattis
Linux ~/.local/share/lattis
Windows %APPDATA%\lattis
Entry What it is
config.json Theme, host/port, default agent, MCP servers and connectors, agent/code-exec settings, GUI panel sizes.
config.json.lock Lock file for writes to config.json, so the app and the daemon don’t overwrite each other’s changes.
pane_layouts.json Per-branch tiled workspace layouts — panes, tabs, and focus.
review_sessions.json Per-branch code review state — viewed marks and draft comment threads.
accounts.json Named cloud and local accounts per provider.
remote_auth.json Cloud credentials (mode 0600 on Unix).
connector_tokens.json Sign-in tokens of the built-in connectors: Gmail, Google Calendar, Google Drive, Outlook and Outlook Calendar. Encrypted on macOS and Windows. The key is in your macOS Keychain, or in connector_tokens.key on Windows. On Linux the tokens are not encrypted. On all platforms the file is owner-only: mode 0600 on macOS and Linux, and the access control of the per-user data directory on Windows.
connector_tokens.key Windows only. The key for connector_tokens.json, which only your Windows user account can unlock.
mcp_oauth.json Sign-in tokens of the MCP servers that use OAuth, as the Harvest connector does. Encrypted on macOS and Windows, as connector_tokens.json is, with its own key. The key is in your macOS Keychain, or in mcp_oauth.key on Windows. On Linux the tokens are not encrypted. On all platforms the file is owner-only.
mcp_oauth.key Windows only. The key for mcp_oauth.json, which only your Windows user account can unlock.
slack_tokens.json Sign-in tokens of the Slack connector. Encrypted on macOS and Windows, as connector_tokens.json is, with its own key. The key is in your macOS Keychain, or in slack_tokens.key on Windows. On Linux the tokens are not encrypted. On all platforms the file is owner-only.
slack_tokens.key Windows only. The key for slack_tokens.json, which only your Windows user account can unlock.
chats/ Saved conversations and their artifacts.
skills/ Your global Skills.
telemetry.db SQLite usage store; usage survives daemon restarts.
daemon.log Daemon output of the background service (macOS, Windows).
  • The API listens on 127.0.0.1:5288 by default. The host and port are configurable.
  • On a loopback bind the API is unauthenticated, on the assumption that only local processes can reach it.
  • On a non-loopback bind the daemon refuses to start without an auth token. Set LATTIS_AUTH_TOKEN (or auth_token in config) and send Authorization: Bearer <token>. See Headless & Remote Hosts for the trade-offs — including why an SSH tunnel is usually the better choice.
Variable Effect
LATTIS_DATA_DIR Relocate the whole data dir (config, telemetry, logs, state).
LATTIS_PORT Override the API port.
LATTIS_AUTH_TOKEN Bearer token required for a non-loopback bind. Persisted once set.
LATTIS_API_KEY Lattis API key, so a headless daemon can report usage without a browser sign-in.
LATTIS_ORG_ID Pin the organization a headless daemon attributes usage to. Optional — the daemon discovers your organizations from the key.
LATTIS_TELEMETRY_API_BASE Point the daemon at a different Lattis backend.
LATTIS_GOOGLE_CLIENT_ID The Google OAuth client that the Gmail, Google Calendar and Google Drive connectors sign in with. Read at run time. If it is not set, the daemon uses the value the build was made with. Without either, their cards do not appear.
LATTIS_GOOGLE_CLIENT_SECRET That client’s secret. Set it together with LATTIS_GOOGLE_CLIENT_ID.
LATTIS_MICROSOFT_CLIENT_ID The client ID of the Microsoft app that the Outlook and Outlook Calendar connectors sign in with. Read at run time, in place of the client ID in the build. Without either, their cards do not appear. For your own app, register it for work or school accounts in any organization and for personal Microsoft accounts, add the redirect http://127.0.0.1 for Mobile and desktop applications (in the app’s Manifest, redirectUris under publicClient, if the portal refuses it), and declare the delegated Microsoft Graph permissions Mail.Read, Mail.Send, Calendars.ReadWrite, openid and offline_access.

Setting LATTIS_DATA_DIR and LATTIS_PORT per checkout lets several instances run side by side with separate state and ports — useful when working across multiple worktrees. Run lattisd doctor to print which directories, ports, and binaries the daemon resolves from the current environment.

Two Lattis themes plus a range of built-in themes (Dracula, Nord, Tokyo Night, Catppuccin, Gruvbox, Kanagawa, and more), switchable live from Settings.

If something isn’t behaving, see Troubleshooting.