Pix
Reference

Configuration

Where Pix stores host state and which settings the CLI manages.

Pix keeps host state in one per-user JSON configuration. Use the CLI commands below to change it; Pix validates and writes the file atomically.

Configuration file

The default file is:

$HOME/.config/pix/config.json

The same .config/pix layout is used on macOS and Linux. Select another file for one command, or for the host service, with the global option:

pix --config /absolute/path/to/pix.json status

PIX_CONFIG is the equivalent environment variable. A service installed with one config path is not silently controlled through another path. When both are supplied, the explicit --config option selects the file for that invocation.

Pix creates the file when setup or another state-changing command first needs it. A missing file is reported by read-only commands such as pix status.

What the file contains

AreaStored informationSupported command
HostHost UUID and display namePix generates and persists the host UUID; pix setup --advanced edits the display name
WorkspacesExplicitly authorized folder roots and namespix workspace add, list, remove
DevicesApproved device identities and pairing metadatapix device pair, list, revoke
RelayWebSocket endpoint and enabled/disabled statepix relay set, show, enable, disable, clear
PiOptional selected executable pathpix pi show, set, clear
Runtime preferencesIdle timeout and active/concurrent session limitsNo dedicated setting command in the current CLI; defaults are persisted in the file

Workspace paths are stored as absolute, canonical directories. Removing a workspace removes its Pix authorization; it does not delete the directory or its files.

The host identity key is kept beside the configuration as a protected local recovery file. Runtime status, control sockets, event sockets, and host logs are under the same directory's run/ and logs/ subdirectories. These are host-local implementation state, not additional cloud storage.

The platform service definition embeds the selected config path and starts pix serve --service; installing a service for another path is a separate host state, not a second view of the current one.

On macOS Pix prefers the Keychain for the identity when it is available; Linux may use the desktop Secret Service. Pix also keeps the protected local recovery copy needed by a background service.

Editing and precedence

The CLI is the supported way to change configuration. It applies one change to the latest file and restarts or refreshes a running host when necessary. The current CLI does not expose a setting command for runtime limits, so do not assume that editing those values or adding arbitrary JSON keys is supported. Use --config/PIX_CONFIG to select a separate host state instead of copying parts of the file.

For environment variables, see Environment variables. For command syntax, see the CLI reference.

On this page