Skip to content

Environment variables

hal0 reads its configuration primarily from TOML under /etc/hal0, but a set of environment variables (mostly written into the API systemd unit’s env file) control the server, override paths, and tune install/update behaviour. The most useful ones are below.

VariableWhat it doesDefault
HAL0_PORTAPI listen port. The API binds 0.0.0.0 unconditionally.8080
HAL0_SELF_BASE_URLBase URL hal0 uses to re-enter its own /v1 surface (omni router).http://127.0.0.1:8080
HAL0_LOG_LEVELLog verbosity for the API.info
HAL0_UI_DISTOverride path to the built dashboard bundle (ui/dist).unset (FHS/editable autodetect)
HAL0_ALLOWED_ORIGINSAllowed browser origins for cross-origin requests.unset
HAL0_ACTIVITY_RETENTION_DAYSOverride the activity/audit store retention window.from hal0.toml
VariableWhat it doesDefault
HAL0_HOMERelocate all four roots (code/config/state/log) under one prefix.unset (use FHS)
HAL0_MODEL_STOREModel-store directory slot containers bind-mount (highest precedence).[models].store, then the conventional mount
VariableWhat it doesDefault
HAL0_CONTAINER_RUNTIMEContainer runtime binary for slots./usr/bin/podman, falling back to /usr/bin/docker
HAL0_TOOLBOX_IMAGE_ROCMOverride the rocm toolbox image ref.from manifest.json
HAL0_TOOLBOX_IMAGE_VULKANOverride the vulkan toolbox image ref.from manifest.json
HAL0_TOOLBOX_IMAGE_FLMOverride the flm toolbox image ref.from manifest.json
HAL0_TOOLBOX_IMAGE_KOKOROOverride the kokoro toolbox image ref.from manifest.json
HAL0_TOOLBOX_IMAGE_COMFYUIOverride the comfyui toolbox image ref.from manifest.json
VariableWhat it doesDefault
HAL0_MEMORY_ENABLEDEnable the memory subsystem (Hindsight / Cognee-backed, /mcp/memory, /api/memory/*). Memory is opt-in.0 (disabled)
HAL0_MCP_ALLOWED_HOSTSAllowlist of Host headers accepted by the mounted MCP servers.unset
HAL0_MCP_ALLOWED_ORIGINSAllowlist of origins for MCP transport requests.unset
VariableWhat it doesDefault
HF_TOKENHugging Face token used when pulling gated/private models.unset
HF_HOMEHugging Face cache root.tool default

These are honoured by the installer / bootstrap scripts.

VariableWhat it doesDefault
HAL0_PREFIXInstallation root./usr/lib/hal0 (system) / $PWD/.hal0ai (no-sudo)
HAL0_CHANNELRelease channel for the default download URL.stable
HAL0_INSTALL_SKIP_VERIFYInstall from an unverified source (skip the cosign check). Not recommended.0
HAL0_UPDATE_SKIP_COSIGNSkip cosign signature verify on updates. Only honoured on pre-release/dev builds — silently ignored on stable v1+. Not recommended.0
HAL0_NO_PROBESkip the hardware probe during install.unset