Environment variables are the primary way to configure AdGuardian Term. They can be set directly in your shell before running the binary, declared in aDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/lissy93/adguardian-term/llms.txt
Use this file to discover all available pages before exploring further.
.env file that your shell sources, or passed to a Docker container with the -e flag. AdGuardian reads these variables at startup via Rust’s std::env::var — any change requires a restart to take effect.
Required variables
These four variables must be set before AdGuardian can connect to your AdGuard Home instance. If any of them are missing, AdGuardian will prompt you to enter a value interactively before proceeding.The IP address or hostname of your AdGuard Home instance.When prompted interactively, the default offered is
127.0.0.1. The value is passed directly into the URL as {protocol}://{ADGUARD_IP}:{ADGUARD_PORT}.The port that AdGuard Home’s HTTP API is listening on.When prompted interactively, the default offered is
3000. The value must be parseable as a valid u16 port number — AdGuardian will re-prompt if it is not.Your AdGuard Home username, used for HTTP Basic authentication against the
/control/status and related endpoints.Your AdGuard Home password. When entered at the interactive prompt, the terminal is switched to raw mode and characters are masked so the value is never echoed to the screen.
Optional variables
These variables have sensible defaults and do not need to be set for AdGuardian to start.The protocol used when constructing the AdGuard Home base URL. Accepted values are
http and https. Defaults to http if unset.How often AdGuardian refreshes the dashboard, in whole seconds. The value is clamped to a minimum of
1 — setting it to 0 is treated as 1 to prevent the Tokio interval from panicking. Increase this if you want to reduce API load on your AdGuard Home instance.The per-request HTTP timeout applied to every call made by the
reqwest client, in whole seconds. The value is clamped to a minimum of 1 so that no request can hang indefinitely. Decrease this if you are on a fast local network and want quicker failure detection.The maximum number of DNS query log entries fetched from AdGuard Home on each update cycle. Parsed as a
u32. Increasing this gives you a longer scrollable history in the query log panel at the cost of larger API responses.Shell example
The following example sets all required variables plus every optional variable, then launches AdGuardian:If any of the four required variables (
ADGUARD_IP, ADGUARD_PORT, ADGUARD_USERNAME, ADGUARD_PASSWORD) are not set, AdGuardian will not exit with an error — instead it drops into an interactive prompt and asks you to enter each missing value before it attempts to connect. This makes it safe to run the binary directly without pre-configuring anything.