Global Configuration Directory

All PATAPIM configuration is stored at ~/.patapim/:

FilePurpose
workspaces.jsonProject list, active workspace, and project metadata
sessions.jsonTerminal sessions, working directories, and state per project
account.jsonAuth token, email address, and license tier
passkeys.jsonWebAuthn/PassKey credentials for remote access
trusted-passkeys.jsonWhitelist of trusted PassKeys for remote authentication
downloads/Files downloaded by embedded browser panels
mcp-tokenMCP server authentication token (production)
mcp-token-devMCP server authentication token (dev instance)

Environment Variables

VariableDescriptionDefault
PATAPIM_INSTANCE=devRun as dev instance (isolates CDP port to 9223, uses separate userData directory PATAPIM-dev/)Not set
PATAPIM_DEBUG=1Open Electron DevTools on startupNot set
PATAPIM_PORTOverride remote access server port31415
PATAPIM_MCP_TOKENMCP server authentication token (also synced to ~/.patapim/mcp-token file)Auto-generated
PATAPIM_TERMINAL_IDTerminal ID for MCP server — set by the remote server to link browser to terminalAuto-set

Per-Project Configuration

Each project can have a .patapim/config.json in its root for project-specific settings.

Runtime Settings

PATAPIM stores UI preferences in the Electron renderer’s localStorage:

  • Window size and position
  • Active terminal and tab state
  • Panel visibility preferences
  • Voice dictation provider selection
  • Grid layout preference

These settings persist across app restarts but are tied to the Electron app data directory.

Multi-Instance (Dev Mode)

You can run two PATAPIM instances simultaneously:

PropertyStableDev
CDP Port92229223
userDataPATAPIM/PATAPIM-dev/
Window TitlePATAPIMPATAPIM [DEV]
Logo ColorDefaultAmber
PID File%APPDATA%/PATAPIM-dev/patapim-dev.pid

Start a dev instance with PATAPIM_INSTANCE=dev npm start.