PILOOP_HOME | ~/.piloop | The directory that holds the database, the artifact store and the directories of each run (worktrees, logs, workspaces). |
PILOOP_ACTOR | human | Who this process is. Every row it updates records this value in updated_by. The daemon launches each agent with <role>#<agent_session_id>, for example implementer#12. |
PILOOP_AGENT_TOKEN | none | The token of the agent that the daemon launched as actor, which its worker sets at its start: its calls act as that agent with it, and as nobody else. |
PILOOP_SERVER | none | The daemon that the commands which call the API ask, such as https://piloop.example.com: its network’s client dials it, with the credential of this machine. Unset: the daemon of this home, on its socket. |
PILOOP_MESSAGES | none | The queue of messages for this agent’s turn, set by a runtime that keeps one. piloop agent messages takes them. |
PILOOP_MIGRATION_BACKUPS | 3 | The number of copies of the database to keep, one written before each migration: piloop.db.bak-<revision>-<UTC time> next to it, the database as that revision left it. A new copy removes the oldest beyond this number. 0 writes none. Each copy is about the size of the database. |
OTEL_EXPORTER_OTLP_ENDPOINT | none | The standard OTLP endpoint. piloop exports traces only when this is set. |
UV_TOOL_DIR | ~/.local/share/uv/tools | Where uv keeps its tools (uv’s own UV_TOOL_DIR). The default is uv’s default when XDG_DATA_HOME is not set. piloop upgrade reads the uv-receipt.toml of the piloop tool there to learn where the CLI was installed from. |
PILOOP_CLI | piloop | The command that runs this install. piloop doctor names it in what it tells you to run. A second install, such as a build of main next to a release, sets it in its wrapper (PILOOP_CLI=piloop-canary), so that an orchestrator restarts and upgrades that install, never the release. |
PILOOP_AUTO_UPGRADE | false | Whether the orchestrator may upgrade piloop by itself when piloop doctor reports a newer version at its source. Off, it asks you in the inbox: an upgrade migrates the database one way, and the runs after it are scored by the new code. A daemon that runs older code than the installed CLI is restarted either way. |
PILOOP_DEBUG | false | Show the full traceback of an unexpected error in the CLI, instead of a short message. |
PILOOP_AGENT_SKILLS_DIR | ~/.agents/skills | The user directory of Agent Skills, which Codex, pi, Gemini CLI and Cursor read. piloop installs the orchestrator skills there for them. |
PILOOP_CLAUDE_SKILLS_DIR | none | The directory in which piloop installs the orchestrator skills for Claude Code. Unset, it is the one Claude Code reads: skills in its config directory (CLAUDE_CONFIG_DIR, by default ~/.claude). A second piloop on the same machine, such as a build of main next to a release, sets this and agent_skills_dir to directories of its own, so that its skills do not replace those of the release. |
PILOOP_STORAGE__<KEY> | its table | [storage] in config.toml: how archiving uses the disk of this home. |
PILOOP_TRACING__<KEY> | its table | [tracing] in config.toml: what this home measures for its exported spans. |
PILOOP_EVALUATION__<KEY> | its table | [evaluation] in config.toml: what the daemon allows the evaluate command of its campaigns. |
PILOOP_DAEMON__<KEY> | its table | [daemon] in config.toml: the timings of the daemon’s loop and launches. |
PILOOP_AGENTS__<KEY> | its table | [agents] in config.toml: how the daemon steers and ends agents. |
PILOOP_WATCH__<KEY> | its table | [watch] in config.toml: how piloop watch reads the API. |
PILOOP_SQL__<KEY> | its table | [sql] in config.toml: the limits of piloop sql. |