Docs/Server/Environment variables
Environment variables
The environment variables HolaClaw Server reads, which config keys they override, and how to see where each value comes from.
- Server
- Configuration
- Reference
A few settings can come from the environment instead of config.toml. When both are set, the environment variable wins. This is how the container image sets its defaults.
Variables
| Variable | Overrides | Description |
|---|---|---|
HOLACLAW_CONFIG |
--config default |
The config directory every holaclaw command reads. Defaults to /etc/holaclaw, or $XDG_CONFIG_HOME/holaclaw for a non-root user on a machine with no /etc/holaclaw. |
HOLACLAW_LISTEN |
server.listen |
The TCP address the Control API listens on, such as 0.0.0.0:8484. |
HOLACLAW_PUBLIC_URL |
server.public_url |
The address devices reach the daemon at, used for pairing links and QR codes. |
HOLACLAW_ALLOW_INSECURE_TRANSPORT |
server.allow_insecure_transport |
Serve an off-loopback listen over plain http. |
HOLACLAW_BROWSER_ENABLED |
browser.enabled |
Turn the browser on or off, even with no [browser] table. |
A provider's api_key = "env:VAR" also reads VAR from the daemon's environment. See Secrets.
See where a value comes from
holaclaw config envIt lists every key an environment variable may set, its current value, and whether it comes from the environment, config.toml or the default.
Container defaults
| Variable | latest |
slim |
|---|---|---|
HOLACLAW_LISTEN |
0.0.0.0:8484 |
0.0.0.0:8484 |
HOLACLAW_ALLOW_INSECURE_TRANSPORT |
true |
true |
HOLACLAW_BROWSER_ENABLED |
true |
not set |
Change one with -e on docker run, for example -e HOLACLAW_BROWSER_ENABLED=false.
With systemd
The system unit and the NixOS module set HOLACLAW_CONFIG for the daemon, but your shell does not. When you run a command as the holaclaw user, pass --config or set the variable yourself. To set another variable for the daemon, add it to the unit with a drop-in:
sudo systemctl edit holaclaw[Service]
Environment=HOLACLAW_PUBLIC_URL=https://claw.exampleWas this page helpful?
