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.

Gateway

Credentials

/setup stores these in the database, encrypted. An environment variable of the same name wins.

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 PORT, PERMISSION_MODE, MODEL, SLACK_APP_NAME, NGROK_URL, PUBLIC_URL, 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.