Two places hold state. The data folder is this machine. The workspace folder is what you commit.

Data folder

com.garrardkitchen.ai-terminal under the platform data directory.

PlatformPath
macOS~/Library/Application Support/com.garrardkitchen.ai-terminal
Linux$XDG_DATA_HOME or ~/.local/share/com.garrardkitchen.ai-terminal
Windows%APPDATA%\com.garrardkitchen.ai-terminal
FileWhat it is
collections.jsonThe shelf. Older localStorage data is moved here once
command_history.jsonThe last 500 commands and their times
api_connections.jsonAPI connections, without secret values
api_endpoints.jsonEndpoints
openai_connections.jsonModel connections, without the key
mcp_connections.jsonMCP servers, without secret values
mcp_prefs.jsonFavourites and related MCP preferences
network_settings.jsonThe additional CA certificate setting

The keychain service is com.garrardkitchen.ai-terminal. An AES-256-GCM fallback file lives in this folder when the keychain cannot be used. Do not edit it to plant a token.

termorq-cli --data-dir points at this folder. termorq-cli models and termorq-cli tools use it. Checks and environment variables for a headless run come from --workspace, not from this folder.

Team workspace

<folder>/.ai-terminal/, schema 1, pretty JSON, sorted keys.

FileWhat you commit
workspace.jsonName
api-connections.jsonConnections and vault references
endpoints.jsonEndpoints and checks
collections.jsonLines and captures
environments.jsonEnvironments, variables, customers
mcp-servers.jsonServers, secret env names only
.gitignorelocal.json and *.local.json

termorq-cli --workspace is the folder that contains .ai-terminal, not the .ai-terminal directory itself. The path is absolute or starts with ~.

Transfer files

ExtensionEncryptionNotes
.aitcolOptional, required when a bundle includes secretsCollections, optional endpoints, connections, and MCP servers
.aitmcpAlwaysMCP only
.aitapiAlwaysEndpoints and their API connections, including secrets
.aitbakAlwaysFull backup, including secrets. Restore replaces same-named records and deletes nothing else

Passwords are at least 12 characters and are not stored.

YAML beside the app

skills.yaml and commands.yaml ship with the app. A checkout uses the copies at the repo root while CARGO_MANIFEST_DIR or the working directory points there. Edit, then restart.

A plan file for termorq-cli run --file is schema 1 and is not written back. The shape is on Run a collection.

localStorage

These stay in the webview, on this machine.

KeyContents
ai-terminal-settingsEnvironments and customers as used by the header, history behaviour, command times, font, shell, interpretation, Agent system prompt
ai-terminal-tabsTab title, colour, folder, history, capped scrollback, active tab, and whether Agent is on
ai-terminal-themeCurrent scheme
ai-terminal-theme-light / ai-terminal-theme-darkLast scheme in each group
ai-terminal-railWhether the rail is collapsed