Skip to content
Hallway is out (npm i -g hallway): v0, v1 and v2 have shipped, apart from checking it all on a real Mac. See the roadmap.

Environment variables

Hallway needs no environment variables to work. Agents often run commands from shells that load no profile, and launchd jobs and systemd units inherit no shell environment, so every default works with an empty environment. These are overrides.

VariableMeaning
HALLWAY_HOMEThe data home. Default ~/.hallway.
PORTThe daemon’s port for hallway serve. Default 4255. --port does the same.
VISUAL, EDITORThe editor hallway app edit and hallway bookmark edit open (VISUAL first; default vi).
XDG_CONFIG_HOMELinux: where systemd user units go ($XDG_CONFIG_HOME/systemd/user; default ~/.config/systemd/user).
LOCALAPPDATAWindows: where the scheduled tasks’ files go (%LOCALAPPDATA%\hallway\tasks; default ~\AppData\Local\hallway\tasks).
HALLWAY_DEVDevelopment mode, for working on Hallway itself (the API runs next to Vite’s dev server, as Local Review does).

v1 Every managed service and every server started with hallway run gets:

VariableValue
PORTThe app’s port.
HOSTThe app’s host, by default 127.0.0.1, so the server isn’t exposed to your network.
HOSTNAMEThe same, for frameworks that read this instead.
PATHBuilt from stable directories, with the service’s own Node first. See the PATH trap.

Anything in the app’s service.env is added on top.