zerohead
Get started

Reference

Settings

Every server setting, its environment variable, its flag and its default.

The source is not public yet. It will be published under MIT. The pages under Contributing describe working on it once it is.

zerohead's server settings are environment variables. Each also has a flag on the zerohead command. A flag wins over the variable.

Server settings

SettingVariableFlagDefault
Data folderZEROHEAD_HOME--homezerohead inside your platform's data folder
Listen addressZEROHEAD_BIND--bind127.0.0.1
PortZEROHEAD_PORT--port4747
Extra allowed host namesZEROHEAD_ALLOWED_HOSTS--allowed-hostsempty
Scheduler tick, in millisecondsZEROHEAD_TICK_MS--tick-ms2000
Runs at onceZEROHEAD_MAX_RUNS--max-runs2
Runs per agent per hourZEROHEAD_RUNS_PER_HOUR--runs-per-hour12
Run timeout, in secondsZEROHEAD_RUN_TIMEOUT_S--run-timeout-s1800
Built web appZEROHEAD_WEB_DIR--web-dirthe 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.

zeroheadHomeMIT license