Overrides webMirrorPort and forces auto-start, regardless of settings.
HT_SOCKET_PATH
<config dir>/hyperterm.sock
Override the Unix socket path. Must match between τ-mux and ht CLI. Since 0.3.187 the default is derived from the config dir (macOS: ~/Library/Application Support/hyperterm-canvas/hyperterm.sock), so ht connects from any shell — not just panes the app spawned.
HYPERTERM_INCLUDE_TEST_HOOKS
1 (dev), 0 (stable)
Whether test-only RPC methods are exposed. Set to 0 for production builds.
HT_CONFIG_DIR
~/Library/Application Support/hyperterm-canvas
Where settings.json, telegram.db, browser-history.json, cookie-store.json, and (in e2e) logs/ live. Tests override this.
HT_RPC_TOKEN_PATH
a socket.token file next to the RPC socket
Overrides the path where the ht CLI (and the pi/Claude ht-bridge) reads the per-boot RPC socket token. Only relevant when Require RPC socket token (rpcSocketRequireToken) is enabled. (added v0.3.163)
These are populated automatically when τ-mux spawns a new terminal surface. Scripts inside the shell can read them.
Variable
Value
Purpose
HT_SURFACE
e.g. surface:3
This surface’s id. The CLI reads it as the default --surface; bun handlers resolve the owning workspace from it for ht plan, ht set-status, ht log, ht notify.
HYPERTERM_PROTOCOL_VERSION
1
Set on every spawned shell. Sideband clients use it as a “are we inside τ-mux?” check.
Override the default socket path (<config dir>/hyperterm.sock).
HT_SURFACE
Default --surface for ht commands.
HT_RPC_TOKEN_PATH
Overrides where the ht CLI reads the per-boot RPC socket token. Defaults to a socket.token file in the same directory as the RPC socket. Only relevant when Require RPC socket token is enabled. (added v0.3.163)
HYPERTERM_DEBUG
Enables debug logs in the Python / TS sideband clients.