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

Library import menu showing the supported transfer file types
Import choices include individual files and a full backup.

Data folder

termorq under the platform data directory.

Builds before this change used com.garrardkitchen.ai-terminal. When the app or termorq-cli starts and finds that folder, it moves the contents into termorq. If a file exists in both, the copy in termorq is kept. The old folder is then deleted. If any copy fails, the old folder is kept and the move runs again at the next start. The result goes to the OS log and to logs/app-data-migration.log:

  • Windows: Event Viewer, Application log, source Termorq.
  • macOS: Unified Logging (log show --predicate 'process == "termorq"').
  • Linux: the journal (journalctl -t termorq).

Keychain secrets used the service com.garrardkitchen.ai-terminal and now use termorq. Each secret moves the first time the app reads it. Deleting a connection removes the entry under both names.

PlatformPath
macOS~/Library/Application Support/termorq
Linux$XDG_DATA_HOME or ~/.local/share/termorq
Windows%APPDATA%\termorq
FileWhat it is
collections.jsonThe shelf. Older localStorage data is moved here once
workflows/user/<id>.ymlA workflow you saved. Included workflows ship read-only with the app
workflows/runs/<workflow id>/<run id>/One run: run.json, masked block logs, and files/
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
ssh_connections.jsonSSH connections, without passwords or passphrases
ssh_known_hostsHost keys you trusted, in OpenSSH format. ~/.ssh/known_hosts is read, never written
mcp_prefs.jsonFavourites and related MCP preferences
network_settings.jsonThe additional CA certificate setting
reports/AI content reports: ai-report-YYYYMMDD-HHMMSS.json and .md, UTC time. No API key. A Microsoft Store install keeps this folder under %LOCALAPPDATA%\Packages\<package family>\LocalCache\Roaming\termorq

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

The Pro-only 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
workflows/<id>.ymlA workflow for this checkout. The app reads it while the workspace is open and never commits it
.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