Reference
Settings
Every server setting, its environment variable, its flag and its default.
zerohead's server settings are environment variables. Each also has a flag on the zerohead command. A flag wins over the variable.
Server settings
| Setting | Variable | Flag | Default |
|---|---|---|---|
| Data folder | ZEROHEAD_HOME | --home | zerohead inside your platform's data folder |
| Listen address | ZEROHEAD_BIND | --bind | 127.0.0.1 |
| Port | ZEROHEAD_PORT | --port | 4747 |
| Extra allowed host names | ZEROHEAD_ALLOWED_HOSTS | --allowed-hosts | empty |
| Scheduler tick, in milliseconds | ZEROHEAD_TICK_MS | --tick-ms | 2000 |
| Runs at once | ZEROHEAD_MAX_RUNS | --max-runs | 2 |
| Runs per agent per hour | ZEROHEAD_RUNS_PER_HOUR | --runs-per-hour | 12 |
| Run timeout, in seconds | ZEROHEAD_RUN_TIMEOUT_S | --run-timeout-s | 1800 |
| Built web app | ZEROHEAD_WEB_DIR | --web-dir | the app inside the program |
--home, --bind and --port work with every command. The other flags belong to serve.
Details
Data folder. The default is ~/.local/share/zerohead on Linux (or under $XDG_DATA_HOME), ~/Library/Application Support/zerohead on macOS, and %LOCALAPPDATA%\zerohead on Windows.
Allowed host names. A comma-separated list. The server accepts a request only when its Host is localhost, 127.0.0.1, ::1 or on this list, and the value includes the server's port. If a request has an Origin, its host must be allowed too. Anything else is refused. Binding beyond loopback is allowed and prints a warning.
Runs per hour. 0 starts no runs. At the limit an agent stays active and its wakeups wait.
Built web app. The installed program carries the web app inside it, so you never need this. Set it to serve a folder instead, for example while you change the app. A relative path is read from the folder you start the server in. If the folder has no index.html, the server serves a small placeholder page. A program built from source without the app inside looks in web/dist.
Inside the data folder
instance.sqlite the install: companies, devices, settings
connector.key seals connector credentials
connect-link.json the Connect link, only while linked
companies/<company-id>/
company.sqlite
memory/ the git repository of pages
memory-index.sqlite search index, rebuilt from memory/
runs/<run-id>.ndjson one run's event log
agents/<agent-id>/ where an agent runs when its task has no project
Agent settings
Each agent has its own settings, which depend on its adapter. They are on the pages for Claude Code, Codex, OpenCode, Pi, Cursor and Scripts and HTTP. Values in an agent's Environment and Headers never leave the server.