Pix
Reference

Environment variables

Pix environment variables that are part of the command-line contract.

These variables are intentional CLI inputs. Other variables used by CI, the relay deployment, tests, or Pi itself are not Pix configuration and are not listed here.

VariablePurposeFormat and defaultApplies to
PIX_CONFIGSelect the Pix configuration fileA file path. Unset uses $HOME/.config/pix/config.json.Every CLI command
PIX_OUTPUTSelect output formathuman (default) or jsonEvery CLI command
PIX_RELAY_URLSupply the relay endpoint to setupA valid ws:// or wss:// URL without credentials or a fragment. Unset leaves setup to its normal prompt/default.pix setup
PIX_WORKSPACESupply the workspace root to setupA path to an existing directory. Unset leaves setup to its normal prompt.pix setup

Examples:

PIX_CONFIG="$HOME/.config/pix-headless/config.json" pix status
PIX_OUTPUT=json pix --no-input status
PIX_RELAY_URL=wss://relay.example.com \
  PIX_WORKSPACE="$HOME/Projects/app" \
  pix setup --non-interactive --no-pair

PIX_OUTPUT=json selects the same versioned envelope as pix --output json; JSON mode never opens an interactive menu. PIX_CONFIG also lets the optional Pi TUI extension find the matching host-local bridge when Pi runs with that configuration.

For settings persisted by these commands, see Configuration.