Skip to main content
provision.sh rewrites host.env only when run with SP_HOST_TOKEN. It writes only the variables marked “written by provision.sh”; lines added by hand are lost. Put a machine’s own settings, such as SP_RUNNER_MEMORY_MAX, in /etc/slack-presence/host.local.env instead (root, mode 0600). provision.sh never writes it, and a variable set in both files takes its value from host.local.env. The host reads its settings once at start (src/host/host-config.ts). A value that does not parse, such as SP_IDLE_MS=2h, SP_POOL_SIZE=-1 or SP_LAUNCH=docker, logs a warning and keeps the default. Only SP_LAUNCH=podman without SP_RUNNER_USER, SP_IMAGE or SP_IMAGE_ABI stops the host from starting.

Host

Identity and connection

Runners

Workspaces

The four durations accept a number of seconds or a unit: 300, 500ms, 30s, 5m, 2h, 1d.

Telemetry

See Telemetry.

Model proxy

Passed from the host to runners

The host sets each of these on every runner, to its own value or empty; a runner treats empty as unset. Nothing else from the host’s environment reaches a runner. Credentials go over the runner’s socket, not the environment. WORKDIR is also on the list and applies only in one-machine mode.

API relay

Read by slack-presence-wire.service.

One-machine mode

npm start in a checkout runs everything in one process, with no gateway or host (see Run from source). It reads .env and these variables, plus MODEL, FOLD_AT, SP_COMPACT_AT, SP_CONTEXT_WINDOW and SP_PROMPT_CACHE_TTL: The host does not pass STREAMING and FLUSH_MS to runners, so on a computer they keep their defaults.

provision.sh inputs

Read from the environment of each provision.sh run. See Host VM and Upgrade.