Environment variables

Set these in the shell that starts wsx. wsx passes its environment on to the agents it starts.

Agent binaries and models

VariablePurpose
WSX_CLAUDE_BINPath to claude. Default: claude on PATH.
WSX_PI_BINPath to pi. Default: pi on PATH.
WSX_PI_MODELModel pattern passed to pi as --model.
WSX_PI_PROVIDERLimits pi to one provider's models.
WSX_HERMES_BINPath to hermes. Default: hermes on PATH.
WSX_HERMES_MODELModel for Hermes, overriding ~/.hermes/config.yaml.
WSX_HERMES_PROVIDERProvider passed to Hermes as --provider. Hermes's default REPL mode may ignore it in favour of ~/.hermes/config.yaml.
WSX_CODEX_BINPath to codex. Default: codex on PATH.
WSX_CODEX_MODELModel passed to Codex as -m.
WSX_OMP_BINPath to omp (oh-my-pi). Default: omp on PATH.
WSX_OMP_MODELModel passed to omp as --model.

See Coding agents.

Other tools

VariablePurpose
WSX_TMUX_BINPath to tmux, for shared workspaces.
WSX_SSH_BINPath to ssh, for browsing remote hosts.
WSX_WAYBAR_MENUMenu command for the Waybar workspace picker. Default: walker --dmenu.
VISUAL, EDITOREditor for e when editor_cmd is unset.
EDITOREditor for wsx config edit, the edit-* commands, and repo settings. Default: vi.
TERMINALTerminal for t when terminal_cmd is unset.
SHELLShell for setup and archive scripts. Falls back to bash for sh, dash and ash.

Behavior and diagnostics

VariablePurpose
WSX_RENAME_MODEAuto-rename mode: claude (default), local, or off. See Auto-rename.
RUST_LOGLog filter. Default: info. Use wsx=debug for verbose logs.
WSX_INPUT_TRACESet to 1 to log every key and mouse event to wsx.log.

Paths

VariablePurpose
XDG_STATE_HOMEBase of the state directory. Default: ~/.local/state.
XDG_CONFIG_HOMEBase of the config directory. Default: ~/.config.
XDG_RUNTIME_DIRBase of the directory for the dashboard's control sockets.

Set by wsx

wsx sets these for the processes it starts.

VariableSet forPurpose
WSX_WORKSPACE_IDAgent sessionsThe workspace the session belongs to.
WSX_AGENT_INSTANCE_IDAgent sessionsThe agent instance, used to sign and receive messages.
WSX_REPO_ROOTSetup and archive scriptsThe source repo's path.
WSX_WORKTREESetup and archive scriptsThe workspace's worktree path.

See Multi-agent workspaces and Setup and archive scripts.