Skip to content

Environment Variables

Environment variables configure Warden’s server binaries at startup. None are required — all have sensible defaults.

VariableDefaultDescription
ADDR127.0.0.1:8090Listen address for the HTTP API server.
WARDEN_DB_DIR~/.config/warden/Directory for the SQLite database and event files.
WARDEN_LOG_LEVELinfoLog level (debug, info, warn, error).
VariableDefaultDescription
WARDEN_NO_UPDATE_CHECK(disabled)Set to 1 to skip the startup version check against GitHub releases.
WARDEN_NO_OPEN(disabled)Set to any value to prevent warden-desktop from opening the browser on startup.
VariableDefaultDescription
DOCKER_HOST(auto-detected)Overrides the Docker daemon socket path.

These are set automatically by the engine when creating containers. They are not user-configurable — listed here for reference when writing container scripts or debugging.

VariableDescription
WARDEN_CONTAINER_NAMEContainer name, used by hook scripts in event payloads.
WARDEN_PROJECT_IDDeterministic 12-char hex project identifier (SHA-256 of host path).
WARDEN_AGENT_TYPEAgent type running in this container (claude-code or codex).
WARDEN_WORKSPACE_DIRWorkspace directory inside the container (e.g. /home/warden/my-project).
WARDEN_EVENT_DIRBind-mounted directory where hook scripts write event files (/var/warden/events).
WARDEN_HOST_UIDHost user ID — the entrypoint remaps the container user to match file ownership.
WARDEN_HOST_GIDHost group ID — paired with WARDEN_HOST_UID.
WARDEN_NETWORK_MODENetwork isolation mode (full, restricted, or none).
WARDEN_ALLOWED_DOMAINSComma-separated domain allowlist for restricted network mode.
WARDEN_ENABLED_RUNTIMESComma-separated runtime IDs to install at startup (e.g. node,python,go).
WARDEN_CLAUDE_VERSIONPinned Claude Code CLI version to install at startup (from agent/versions.go).
WARDEN_CODEX_VERSIONPinned Codex CLI version to install at startup (from agent/versions.go).