Configuration Reference
This page lists every key of config.yaml with its environment variable, type, and default. How the file, variables, and flags combine is explained in Configuration; the server settings are explained by task in Server Configuration.
| Section | Covers |
|---|---|
| Server | Listen address, base path, TLS, permissions, terminal, webhooks, cache |
| Network Access | Host names, origins, client IPs |
| Logging and Updates | Log format, access logs, update checks |
| Execution | Execution mode, shell, timezone, environment passed to steps |
| UI | Navigation bar, DAG list, log charset |
| Authentication | Auth mode, builtin and basic auth, OIDC, proxy |
| Paths | Every directory and file location, DAG discovery |
| Queues | Global queues |
| Scheduler | Locks, zombie detection, failover, backfill |
| Process Liveness and Shutdown | Heartbeats, signal handling |
| Coordinator, Worker, Peer Connections | Distributed execution |
| Remote Nodes | Other Dagu servers in the UI |
| Audit, Events, and Monitoring | Audit log, event store, resource history, live updates |
| Git Sync, Tunnel | Repository sync, Tailscale |
| License and Dagu Console | License, Console reports, remote access |
| Secret Providers | Defaults for Vault, Kubernetes, AWS, GCP, Azure, Alibaba |
| Browser, Agent Tools, Untrusted Steps, OpenCode | Step settings of this host |
| Environment Variables | Variables outside config.yaml, legacy names |
Configuration File
Dagu reads config.yaml from its config directory, ~/.config/dagu or $DAGU_HOME, or from the file given with --config. See File Locations.
# ~/.config/dagu/config.yaml
host: 0.0.0.0
port: 8080
auth:
mode: builtin
paths:
data_dir: /var/lib/dagu/data
queues:
config:
- name: batch
max_concurrency: 2How to read the tables:
- Key is the YAML path, such as
auth.modeformodeunderauth:.[]marks a list item. - The variable below a key sets the same value, and wins over the file. A key without a variable is set in the file only.
- In defaults,
<config dir>and<data dir>are the directories from File Locations, and{data_dir}is the value ofpaths.data_dir. - A list variable takes comma-separated values, such as
DAGU_ALLOWED_HOSTS=a.example.com,b.example.com.
dagu config --values prints the value and source of each setting that has a variable. dagu schema config prints the JSON schema of the file.
Server
| Key | Type | Default | Description |
|---|---|---|---|
hostDAGU_HOST | string | 127.0.0.1 | Bind address. Flag --host. |
portDAGU_PORT | int | 8080 | HTTP port. Flag --port. |
public_urlDAGU_PUBLIC_URL | string | none | URL users open, used in generated links and host checks. |
base_pathDAGU_BASE_PATH | string | none | Path prefix of every route, such as /dagu. See Serve Under a Base Path. |
api_base_pathDAGU_API_BASE_PATH | string | /api/v1 | API path inside base_path. |
headlessDAGU_HEADLESS | bool | false | Serve the API without the Web UI. |
tls.cert_fileDAGU_CERT_FILE | path | none | TLS certificate. With tls.key_file, the server serves HTTPS. |
tls.key_fileDAGU_KEY_FILE | path | none | TLS private key. |
tls.ca_file | path | none | CA certificate that dagu connection commands trust when they call this server over HTTPS. |
metricsDAGU_SERVER_METRICS | string | private | private requires credentials for /api/v1/metrics; public does not. |
cacheDAGU_CACHE | string | normal | In-memory cache size: low, normal, or high. See Cache. |
permissions.write_dags | bool | true | Allow creating, editing, and deleting DAGs. |
permissions.run_dags | bool | true | Allow starting, retrying, stopping, and approving runs. |
terminal.enabledDAGU_TERMINAL_ENABLED | bool | false | Web terminal for admins. Requires builtin auth. |
terminal.max_sessionsDAGU_TERMINAL_MAX_SESSIONS | int | 5 | Concurrent terminal sessions. |
webhooks.max_payload_sizeDAGU_WEBHOOKS_MAX_PAYLOAD_SIZE | int | 1048576 | Largest webhook request body, in bytes. |
Network Access
| Key | Type | Default | Description |
|---|---|---|---|
allowed_hostsDAGU_ALLOWED_HOSTS | list | none | Extra host names accepted where no login is needed. .example.com matches subdomains; * turns the check off. See Allowed Host Names. |
cors_allowed_originsDAGU_CORS_ALLOWED_ORIGINS | list | none | Origins allowed to call the server from a browser. * allows any origin without credentials. |
ip_access.allowed_ipsDAGU_IP_ACCESS_ALLOWED_IPS | list | none | Addresses and CIDR ranges allowed to reach the server. Empty allows all. |
ip_access.trusted_proxiesDAGU_IP_ACCESS_TRUSTED_PROXIES | list | none | Proxies whose forwarded client IP and identity headers are trusted. When empty, proxy authentication trusts loopback only. |
Logging and Updates
| Key | Type | Default | Description |
|---|---|---|---|
debugDAGU_DEBUG | bool | false | Debug logs, and request headers in access logs. |
log_formatDAGU_LOG_FORMAT | string | text | text or json. |
access_log_modeDAGU_ACCESS_LOG_MODE | string | none | all, non-public (skips health, login, and setup), or none. See HTTP Access Logs. |
check_updatesDAGU_CHECK_UPDATES | bool | true | Check for new releases and notify admins in the UI. |
allow_web_upgradeDAGU_ALLOW_WEB_UPGRADE | bool | false | Let admins upgrade from the UI, for installer-managed services. See Self-Upgrade. |
Execution
| Key | Type | Default | Description |
|---|---|---|---|
default_execution_modeDAGU_DEFAULT_EXECUTION_MODE | string | local | distributed sends every DAG to workers unless it sets worker_selector: local. |
default_shellDAGU_DEFAULT_SHELL | string | $SHELL, else sh | Shell for command steps. On Windows: pwsh, powershell, cmd, then $SHELL. |
login_shell_pathDAGU_LOGIN_SHELL_PATH | string | auto | Give launched runs the PATH of the user's login shell: always, never, or auto (when launchd or systemd started Dagu). |
tzDAGU_TZ | string | host time | IANA timezone for schedules and display, exported to steps as TZ. See Timezone. |
env_passthroughDAGU_ENV_PASSTHROUGH | list | none | Extra variable names passed from Dagu's environment to steps. See Environment Variable Filtering. |
env_passthrough_prefixesDAGU_ENV_PASSTHROUGH_PREFIXES | list | none | Extra variable prefixes passed to steps, such as AWS_. |
skip_examplesDAGU_SKIP_EXAMPLES | bool | false | Do not create example DAGs and the default base.yaml on first start. |
The container runtime has no key: set DAGU_CONTAINER_RUNTIME and DAGU_PODMAN_HOST in the process environment. See Environment Variables.
UI
| Key | Type | Default | Description |
|---|---|---|---|
ui.navbar_titleDAGU_UI_NAVBAR_TITLE | string | Dagu | Navigation bar title. |
ui.navbar_colorDAGU_UI_NAVBAR_COLOR | string | none | Navigation bar color, a CSS color. |
ui.log_encoding_charsetDAGU_UI_LOG_ENCODING_CHARSET | string | system charset | Charset for log lines that are not UTF-8. See Supported Log Encodings. |
ui.max_dashboard_page_limitDAGU_UI_MAX_DASHBOARD_PAGE_LIMIT | int | 100 | Items per dashboard page. |
ui.dags.sort_fieldDAGU_UI_DAGS_SORT_FIELD | string | name | Default sort of the DAG list: name, nextRun, status, or lastRun. |
ui.dags.sort_orderDAGU_UI_DAGS_SORT_ORDER | string | asc | asc or desc. |
Authentication
| Key | Type | Default | Description |
|---|---|---|---|
auth.modeDAGU_AUTH_MODE | string | builtin | builtin, basic, or none. See Authentication. |
auth.builtin.token.secretDAGU_AUTH_TOKEN_SECRET | string | generated | Session signing secret. When unset, Dagu generates one and keeps it in the data directory. |
auth.builtin.token.secret_fileDAGU_AUTH_TOKEN_SECRET_FILE | path | none | File holding the signing secret. |
auth.builtin.token.ttlDAGU_AUTH_TOKEN_TTL | duration | 24h | Session lifetime, at most 8760h. |
auth.builtin.initial_admin.usernameDAGU_AUTH_BUILTIN_INITIAL_ADMIN_USERNAME | string | none | Admin created at startup when no user exists. Needs the password too. |
auth.builtin.initial_admin.passwordDAGU_AUTH_BUILTIN_INITIAL_ADMIN_PASSWORD | string | none | Password of that admin, at least 8 characters. |
auth.builtin.initial_admin.password_fileDAGU_AUTH_BUILTIN_INITIAL_ADMIN_PASSWORD_FILE | path | none | File holding that password. |
auth.basic.usernameDAGU_AUTH_BASIC_USERNAME | string | none | Username for auth.mode: basic. |
auth.basic.passwordDAGU_AUTH_BASIC_PASSWORD | string | none | Password for auth.mode: basic. |
auth.basic.password_fileDAGU_AUTH_BASIC_PASSWORD_FILE | path | none | File holding the basic auth password. |
A _file key and its plain key cannot both be set. See Secrets From Files.
OIDC
OIDC adds single sign-on to auth.mode: builtin. It turns on when client_id, client_secret, client_url, and issuer are all set. See OIDC and OIDC Workspace Access.
| Key | Type | Default | Description |
|---|---|---|---|
auth.oidc.client_idDAGU_AUTH_OIDC_CLIENT_ID | string | none | OAuth client ID. |
auth.oidc.client_secretDAGU_AUTH_OIDC_CLIENT_SECRET | string | none | OAuth client secret. |
auth.oidc.client_secret_fileDAGU_AUTH_OIDC_CLIENT_SECRET_FILE | path | none | File holding the client secret. |
auth.oidc.client_urlDAGU_AUTH_OIDC_CLIENT_URL | string | none | Base URL of this server, for the callback. |
auth.oidc.issuerDAGU_AUTH_OIDC_ISSUER | string | none | Issuer URL of the provider. |
auth.oidc.scopesDAGU_AUTH_OIDC_SCOPES | list | openid, profile, email | Scopes to request. |
auth.oidc.whitelistDAGU_AUTH_OIDC_WHITELIST | list | none | Email addresses allowed to sign in. |
auth.oidc.allowed_domainsDAGU_AUTH_OIDC_ALLOWED_DOMAINS | list | none | Email domains allowed to sign in. |
auth.oidc.auto_signupDAGU_AUTH_OIDC_AUTO_SIGNUP | bool | true | Create a user at the first sign-in. |
auth.oidc.button_labelDAGU_AUTH_OIDC_BUTTON_LABEL | string | Login with SSO | Sign-in button text. |
auth.oidc.role_mapping.default_roleDAGU_AUTH_OIDC_DEFAULT_ROLE | string | viewer | Role when no mapping matches and workspace access is all. |
auth.oidc.role_mapping.groups_claimDAGU_AUTH_OIDC_GROUPS_CLAIM | string | groups | Claim that holds group names. |
auth.oidc.role_mapping.group_mappings | map | none | Group name to role. Set it in the file: any value of DAGU_AUTH_OIDC_GROUP_MAPPINGS stops startup. |
auth.oidc.role_mapping.workspace_mappingsDAGU_AUTH_OIDC_WORKSPACE_MAPPINGS | map | none | Group name to workspace grants. The variable takes a JSON object. |
auth.oidc.role_mapping.default_workspace_accessDAGU_AUTH_OIDC_DEFAULT_WORKSPACE_ACCESS | string | all | Access of an unmatched user: all or none. Required with workspace_mappings. |
auth.oidc.role_mapping.role_attribute_pathDAGU_AUTH_OIDC_ROLE_ATTRIBUTE_PATH | string | none | jq expression that reads the role from the claims. |
auth.oidc.role_mapping.role_attribute_strictDAGU_AUTH_OIDC_ROLE_ATTRIBUTE_STRICT | bool | false | Deny sign-in when no mapping matches. |
auth.oidc.role_mapping.skip_org_role_syncDAGU_AUTH_OIDC_SKIP_ORG_ROLE_SYNC | bool | false | Set role and workspace access at the first sign-in only. |
Proxy Authentication
Proxy authentication adds sign-in through an authenticating reverse proxy to auth.mode: builtin. See Proxy Authentication.
| Key | Type | Default | Description |
|---|---|---|---|
auth.proxy.enabledDAGU_AUTH_PROXY_ENABLED | bool | false | Turn on proxy sign-in. |
auth.proxy.sourceDAGU_AUTH_PROXY_SOURCE | string | none | Identity namespace, when several login systems send users. |
auth.proxy.button_labelDAGU_AUTH_PROXY_BUTTON_LABEL | string | Continue with SSO | Sign-in option text. |
auth.proxy.headers.userDAGU_AUTH_PROXY_HEADERS_USER | string | none | Header with the stable user ID. Required when enabled. |
auth.proxy.headers.groupsDAGU_AUTH_PROXY_HEADERS_GROUPS | string | none | Header with comma-separated groups. Required with mappings. |
auth.proxy.auto_signupDAGU_AUTH_PROXY_AUTO_SIGNUP | bool | true | Create a user at the first sign-in. |
auth.proxy.role_mapping.default_roleDAGU_AUTH_PROXY_DEFAULT_ROLE | string | viewer | Role when no mapping matches and workspace access is all. |
auth.proxy.role_mapping.group_mappingsDAGU_AUTH_PROXY_GROUP_MAPPINGS | map | none | Group name to role. The variable takes a JSON object. |
auth.proxy.role_mapping.workspace_mappingsDAGU_AUTH_PROXY_WORKSPACE_MAPPINGS | map | none | Group name to workspace grants. The variable takes a JSON object. |
auth.proxy.role_mapping.default_workspace_accessDAGU_AUTH_PROXY_DEFAULT_WORKSPACE_ACCESS | string | none | Access of an unmatched user: all or none. |
auth.proxy.role_mapping.require_mappingDAGU_AUTH_PROXY_REQUIRE_MAPPING | bool | false | Deny sign-in when no mapping matches. |
auth.proxy.role_mapping.skip_org_role_syncDAGU_AUTH_PROXY_SKIP_ORG_ROLE_SYNC | bool | false | Keep the stored role and access on later sign-ins. |
Paths
A relative path is resolved against the directory Dagu starts in. See Paths for which paths follow paths.data_dir.
| Key | Type | Default | Description |
|---|---|---|---|
paths.dags_dirDAGU_DAGS_DIR | path | <config dir>/dags | DAG files. Flag --dags. |
paths.alt_dags_dirDAGU_ALT_DAGS_DIR | path | none | Second directory searched for a DAG name. |
paths.wiki_dirDAGU_WIKI_DIR | path | {dags_dir}/wiki | Wiki pages. See Wiki Directory. |
paths.docs_dirDAGU_DOCS_DIR | path | none | Deprecated name of paths.wiki_dir. |
paths.base_configDAGU_BASE_CONFIG | path | <config dir>/base.yaml | Base configuration. |
paths.calendars_dirDAGU_CALENDARS_DIR | path | <config dir>/calendars | Business calendars. |
paths.executableDAGU_EXECUTABLE | path | this binary | Binary that runs DAGs. |
paths.log_dirDAGU_LOG_DIR | path | <data dir>/logs | Run logs. |
paths.admin_logs_dirDAGU_ADMIN_LOG_DIR | path | <data dir>/logs/admin | Audit logs. Does not move paths.event_store_dir. |
paths.event_store_dirDAGU_EVENT_STORE_DIR | path | <data dir>/logs/admin/events | Event store. |
paths.data_dirDAGU_DATA_DIR | path | <data dir>/data | Runtime data. The paths below default under it. |
paths.artifact_dirDAGU_ARTIFACT_DIR | path | <data dir>/data/artifacts | Run artifacts. Does not follow paths.data_dir. |
paths.dag_runs_dirDAGU_DAG_RUNS_DIR | path | {data_dir}/dag-runs | Run history. |
paths.dag_run_work_dirDAGU_DAG_RUN_WORK_DIR | path | {data_dir}/dag-run-work | Per-run working directories. |
paths.dag_state_dirDAGU_DAG_STATE_DIR | path | {data_dir}/dag-state | Persistent state. |
paths.queue_dirDAGU_QUEUE_DIR | path | {data_dir}/queue | Queued runs. |
paths.proc_dirDAGU_PROC_DIR | path | {data_dir}/proc | Heartbeats of running runs. |
paths.suspend_flags_dirDAGU_SUSPEND_FLAGS_DIR | path | {data_dir}/suspend | Suspended DAGs. See Suspend Flag Upgrades. |
paths.service_registry_dirDAGU_SERVICE_REGISTRY_DIR | path | {data_dir}/service-registry | Coordinator and worker registry. |
paths.tools_dirDAGU_TOOLS_DIR | path | {data_dir}/tools | Managed tool cache. |
paths.users_dirDAGU_USERS_DIR | path | {data_dir}/users | Builtin auth users. |
paths.workspaces_dirDAGU_WORKSPACES_DIR | path | {data_dir}/workspaces | Workspaces. |
paths.contexts_dirDAGU_CONTEXTS_DIR | path | {data_dir}/contexts | CLI contexts. |
paths.api_keys_dir | path | {data_dir}/apikeys | API keys. |
paths.webhooks_dir | path | {data_dir}/webhooks | Webhooks. |
paths.remote_nodes_dir | path | {data_dir}/remote-nodes | Remote nodes added in the UI. |
paths.views_dir | path | {data_dir}/views | Saved views. |
DAG Discovery
| Key | Type | Default | Description |
|---|---|---|---|
dag_discovery.recursiveDAGU_DAG_DISCOVERY_RECURSIVE | bool | false | Load DAGs from subdirectories. See Recursive DAG Discovery. |
dag_discovery.symlinksDAGU_DAG_DISCOVERY_SYMLINKS | bool | false | Include file symlinks, including targets outside dags_dir. |
dag_discovery.skip_directoriesDAGU_DAG_DISCOVERY_SKIP_DIRECTORIES | list | none | Top-level directories that recursive discovery skips. |
Queues
| Key | Type | Default | Description |
|---|---|---|---|
queues.enabledDAGU_QUEUE_ENABLED | bool | true | Queue system. Required for catch-up runs and dag.enqueue. |
queues.config[].name | string | none | Queue name that DAGs set in queue:. |
queues.config[].max_concurrency | int | 1 | Runs of the queue that execute at once. |
See Queue Configuration.
Scheduler
| Key | Type | Default | Description |
|---|---|---|---|
scheduler.portDAGU_SCHEDULER_PORT | int | 8090 | Health check port. |
scheduler.lock_stale_thresholdDAGU_SCHEDULER_LOCK_STALE_THRESHOLD | duration | 30s | Age after which another scheduler may take the leader lock. |
scheduler.lock_retry_intervalDAGU_SCHEDULER_LOCK_RETRY_INTERVAL | duration | 5s | How often a standby scheduler tries the lock. |
scheduler.failover_recovery_windowDAGU_SCHEDULER_FAILOVER_RECOVERY_WINDOW | duration | 2m | How far back a new leader replays missed schedule slots. 0 turns it off. Requires queues. |
scheduler.zombie_detection_intervalDAGU_SCHEDULER_ZOMBIE_DETECTION_INTERVAL | duration | 45s | How often runs with stale heartbeats are checked. 0 turns off the scheduler's check. |
scheduler.failure_thresholdDAGU_SCHEDULER_FAILURE_THRESHOLD | int | 3 | Stale checks in a row before a run counts as dead. |
scheduler.retry_failure_windowDAGU_SCHEDULER_RETRY_FAILURE_WINDOW | duration | 24h | How far back failed runs are scanned for automatic retry, by the run's original date. 0 turns scanning off. |
scheduler.wake_holdDAGU_SCHEDULER_WAKE_HOLD | duration | 0 | Longest hold of ticks after the host wakes from sleep. See Wake Hold. |
scheduler.backfill_max_slotsDAGU_SCHEDULER_BACKFILL_MAX_SLOTS | int | 10000 | Most slots one backfill may cover. |
Process Liveness and Shutdown
| Key | Type | Default | Description |
|---|---|---|---|
proc.heartbeat_intervalDAGU_PROC_HEARTBEAT_INTERVAL | duration | 5s | How often a running run writes its heartbeat. |
proc.stale_thresholdDAGU_PROC_STALE_THRESHOLD | duration | 90s | Heartbeat age after which a run counts as stale. |
signal_handling.drain_timeoutDAGU_SIGNAL_DRAIN_TIMEOUT | duration | 0 | How long a stopping process waits for its runs to finish. See Graceful Shutdown. |
signal_handling.enable_propagationDAGU_SIGNAL_PROPAGATION | bool | false | Forward SIGINT and SIGTERM to the runs the process started. |
Coordinator
| Key | Type | Default | Description |
|---|---|---|---|
coordinator.enabledDAGU_COORDINATOR_ENABLED | bool | true | false keeps start-all from running a coordinator and other processes from calling one. |
coordinator.hostDAGU_COORDINATOR_HOST | string | 127.0.0.1 | gRPC bind address. Flag --coordinator.host. |
coordinator.portDAGU_COORDINATOR_PORT | int | 50055 | gRPC port. Flag --coordinator.port. |
coordinator.advertiseDAGU_COORDINATOR_ADVERTISE | string | hostname | Address workers use to reach it. Flag --coordinator.advertise. |
coordinator.health_portDAGU_COORDINATOR_HEALTH_PORT | int | 8091 | Health check port. 0 turns it off. |
coordinator.worker_wait_timeoutDAGU_COORDINATOR_WORKER_WAIT_TIMEOUT | duration | 2m | How long a run waits, queued, for a matching worker before it fails. 0 fails at once. |
coordinator.require_tokenDAGU_COORDINATOR_REQUIRE_TOKEN | bool | false | Reject calls without the peer token or an eligible client certificate. |
coordinator.require_tlsDAGU_COORDINATOR_REQUIRE_TLS | bool | false | Refuse plaintext calls, except health checks, when serving built-in TLS. |
See Distributed Execution and Transport Security.
Worker
| Key | Type | Default | Description |
|---|---|---|---|
worker.idDAGU_WORKER_ID | string | hostname@PID | Worker ID. |
worker.coordinatorsDAGU_WORKER_COORDINATORS | list | none | Coordinator addresses, host:port. Required for dagu worker. |
worker.inviteDAGU_WORKER_INVITE | string | none | Invite from dagu worker invite to join over built-in TLS. |
worker.labelsDAGU_WORKER_LABELS | string, list, or map | none | Labels that worker_selector matches, such as gpu=true,region=eu. |
worker.max_active_runsDAGU_WORKER_MAX_ACTIVE_RUNS | int | 100 | Runs the worker executes at once. |
worker.health_portDAGU_WORKER_HEALTH_PORT | int | 8092 | Health check port. 0 turns it off. |
worker.shutdown_timeoutDAGU_WORKER_SHUTDOWN_TIMEOUT | duration | 60s | How long a stopping worker lets runs finish before it cancels them. 0 waits without a limit. |
worker.postgres_pool.max_open_connsDAGU_WORKER_POSTGRES_POOL_MAX_OPEN_CONNS | int | 25 | PostgreSQL connections the worker's steps share. |
worker.postgres_pool.max_idle_connsDAGU_WORKER_POSTGRES_POOL_MAX_IDLE_CONNS | int | 5 | Idle PostgreSQL connections kept. |
worker.postgres_pool.conn_max_lifetimeDAGU_WORKER_POSTGRES_POOL_CONN_MAX_LIFETIME | int | 300 | Connection lifetime, in seconds. |
worker.postgres_pool.conn_max_idle_timeDAGU_WORKER_POSTGRES_POOL_CONN_MAX_IDLE_TIME | int | 60 | Idle time before a connection closes, in seconds. |
Peer Connections
Peer settings secure calls between the coordinator, workers, and the processes that dispatch runs.
| Key | Type | Default | Description |
|---|---|---|---|
peer.insecureDAGU_PEER_INSECURE | bool | unset | true uses plaintext h2c, false TLS only. Unset uses built-in TLS when the coordinator's CA is known, else h2c. |
peer.cert_fileDAGU_PEER_CERT_FILE | path | none | TLS certificate. |
peer.key_fileDAGU_PEER_KEY_FILE | path | none | TLS private key. |
peer.client_ca_fileDAGU_PEER_CLIENT_CA_FILE | path | none | CA that verifies the other side, for mutual TLS. |
peer.ca_cert_fileDAGU_PEER_CA_CERT_FILE | path | none | Built-in TLS CA. On a coordinator it signs peer certificates; elsewhere it verifies the coordinator. |
peer.ca_key_fileDAGU_PEER_CA_KEY_FILE | path | none | Private key of ca_cert_file, read by a coordinator only. |
peer.skip_tls_verifyDAGU_PEER_SKIP_TLS_VERIFY | bool | false | Skip certificate verification. |
peer.tokenDAGU_PEER_TOKEN | string | generated | Shared token peers send. When empty, peers use the one the coordinator generates in {data_dir}/coordinator/peer-token. |
peer.max_retries | int | 3 | Retries of a call to a coordinator; 50 when dispatching runs. |
peer.retry_interval | duration | 1s | Wait between retries. |
Remote Nodes
Remote nodes are other Dagu servers that this UI can switch to. See Remote Nodes.
| Key | Type | Default | Description |
|---|---|---|---|
remote_nodes[].name | string | none | Name shown in the node selector. |
remote_nodes[].description | string | none | Description. |
remote_nodes[].api_base_url | string | none | API URL of the node, such as https://prod.example.com/api/v1. |
remote_nodes[].auth_type | string | none | none, basic, or token. |
remote_nodes[].basic_auth_username | string | none | Username for basic. |
remote_nodes[].basic_auth_password | string | none | Password for basic. |
remote_nodes[].basic_auth_password_file | path | none | File holding that password. |
remote_nodes[].auth_token | string | none | API token for token. |
remote_nodes[].auth_token_file | path | none | File holding that token. |
remote_nodes[].skip_tls_verify | bool | false | Skip certificate verification. |
remote_nodes[].timeout | int | 0 | Timeout in seconds stored with the node. Requests the Web UI forwards use 30 seconds. |
Audit, Events, and Monitoring
| Key | Type | Default | Description |
|---|---|---|---|
audit.enabledDAGU_AUDIT_ENABLED | bool | true | Audit log. Requires a license with audit logs. See Audit Logging. |
audit.retention_daysDAGU_AUDIT_RETENTION_DAYS | int | 7 | Days of audit files kept. 0 keeps all. |
event_store.enabledDAGU_EVENT_STORE_ENABLED | bool | true | Event store behind the Events page and Dagu Console run reports. |
event_store.retention_daysDAGU_EVENT_STORE_RETENTION_DAYS | int | 1 | Days of events kept. 0 keeps all. |
monitoring.retentionDAGU_MONITORING_RETENTION | duration | 24h | Resource history kept for System Status. |
monitoring.intervalDAGU_MONITORING_INTERVAL | duration | 5s | Resource sampling interval. |
sse.max_clientsDAGU_SSE_MAX_CLIENTS | int | 1000 | Concurrent live-update connections. |
sse.max_topics_per_connectionDAGU_SSE_MAX_TOPICS_PER_CONNECTION | int | 20 | Topics one connection may follow. |
sse.heartbeat_intervalDAGU_SSE_HEARTBEAT_INTERVAL | duration | 10s | Keep-alive interval. |
sse.write_buffer_sizeDAGU_SSE_WRITE_BUFFER_SIZE | int | 65536 | Write buffer per connection, in bytes. |
sse.slow_client_timeoutDAGU_SSE_SLOW_CLIENT_TIMEOUT | duration | 30s | Time before a client that does not read is disconnected. |
Git Sync
See Git Sync.
| Key | Type | Default | Description |
|---|---|---|---|
git_sync.enabledDAGU_GITSYNC_ENABLED | bool | false | Sync DAGs and Wiki pages with a repository. |
git_sync.repositoryDAGU_GITSYNC_REPOSITORY | string | none | Repository URL. For SSH with a user other than git, put it in the URL. |
git_sync.branchDAGU_GITSYNC_BRANCH | string | main | Branch. |
git_sync.pathDAGU_GITSYNC_PATH | string | none | Repository subdirectory to sync. |
git_sync.inventory_pathDAGU_GITSYNC_INVENTORY_PATH | string | none | Node inventory file applied on each pull. See Node Inventories. |
git_sync.push_enabledDAGU_GITSYNC_PUSH_ENABLED | bool | true | Allow pushing changes. |
git_sync.auth.typeDAGU_GITSYNC_AUTH_TYPE | string | token | token or ssh. |
git_sync.auth.tokenDAGU_GITSYNC_AUTH_TOKEN | string | none | Access token for HTTPS. |
git_sync.auth.token_fileDAGU_GITSYNC_AUTH_TOKEN_FILE | path | none | File holding the token. |
git_sync.auth.ssh_key_pathDAGU_GITSYNC_AUTH_SSH_KEY_PATH | path | none | SSH private key. |
git_sync.auth.ssh_passphraseDAGU_GITSYNC_AUTH_SSH_PASSPHRASE | string | none | SSH key passphrase. |
git_sync.auth.ssh_passphrase_fileDAGU_GITSYNC_AUTH_SSH_PASSPHRASE_FILE | path | none | File holding the passphrase. |
git_sync.auto_sync.enabledDAGU_GITSYNC_AUTOSYNC_ENABLED | bool | false | Pull in the background. |
git_sync.auto_sync.on_startupDAGU_GITSYNC_AUTOSYNC_ON_STARTUP | bool | true | Pull at startup. |
git_sync.auto_sync.intervalDAGU_GITSYNC_AUTOSYNC_INTERVAL | int | 300 | Seconds between pulls. 0 pulls only at startup. |
git_sync.commit.author_nameDAGU_GITSYNC_COMMIT_AUTHOR_NAME | string | Dagu | Commit author name. |
git_sync.commit.author_emailDAGU_GITSYNC_COMMIT_AUTHOR_EMAIL | string | dagu@localhost | Commit author email. |
Tunnel
Read by dagu server only: dagu start-all does not start the tunnel. See Tunnel (Tailscale).
| Key | Type | Default | Description |
|---|---|---|---|
tunnel.enabledDAGU_TUNNEL_ENABLED | bool | false | Serve through Tailscale. Flag --tunnel. |
tunnel.tailscale.auth_keyDAGU_TUNNEL_TAILSCALE_AUTH_KEY | string | none | Tailscale auth key. |
tunnel.tailscale.hostnameDAGU_TUNNEL_TAILSCALE_HOSTNAME | string | dagu | Machine name in the tailnet. |
tunnel.tailscale.funnelDAGU_TUNNEL_TAILSCALE_FUNNEL | bool | false | Expose to the internet with Funnel. |
tunnel.tailscale.httpsDAGU_TUNNEL_TAILSCALE_HTTPS | bool | false | HTTPS inside the tailnet. |
tunnel.tailscale.state_dirDAGU_TUNNEL_TAILSCALE_STATE_DIR | path | {data_dir}/tailscale | Tailscale state. |
tunnel.allow_terminalDAGU_TUNNEL_ALLOW_TERMINAL | bool | false | No effect on access. Changes only the startup banner. |
tunnel.allowed_ipsDAGU_TUNNEL_ALLOWED_IPS | list | none | No effect. |
tunnel.rate_limiting.enabledDAGU_TUNNEL_RATE_LIMITING_ENABLED | bool | false | No effect. |
tunnel.rate_limiting.login_attemptsDAGU_TUNNEL_RATE_LIMITING_LOGIN_ATTEMPTS | int | 5 | No effect. |
tunnel.rate_limiting.window_secondsDAGU_TUNNEL_RATE_LIMITING_WINDOW_SECONDS | int | 300 | No effect. |
tunnel.rate_limiting.block_duration_secondsDAGU_TUNNEL_RATE_LIMITING_BLOCK_DURATION_SECONDS | int | 900 | No effect. |
License and Dagu Console
| Key | Type | Default | Description |
|---|---|---|---|
license.keyDAGU_LICENSE_KEY | string | none | Server key or license key from Dagu Console. See Self-Host License. |
license.cloud_urlDAGU_LICENSE_CLOUD_URL | string | https://console.dagu.sh | License service URL. |
license.server_nameDAGU_LICENSE_SERVER_NAME | string | hostname | Name this server reports to Dagu Console. |
cloud.reportDAGU_CLOUD_REPORT | string | unset | What the server reports: off, health, runs, or errors. Unset leaves the choice to admins in the UI. See Monitoring. |
cloud.auditDAGU_CLOUD_AUDIT | string | off | Audit entries sent to Dagu Console: off, changes, or all. See Audit Logs in Dagu Console. |
cloud.audit_drain_timeoutDAGU_CLOUD_AUDIT_DRAIN_TIMEOUT | duration | 25s | Time a stopping server spends sending remaining audit entries. 0 stops at once; other values are at least 5s. |
cloud.remote_accessDAGU_CLOUD_REMOTE_ACCESS | string | unset | Highest role of Dagu Cloud users on this server: off, viewer, operator, or developer. Unset leaves the choice to the UI. See Remote Access. |
cloud.remote_approvalsDAGU_CLOUD_REMOTE_APPROVALS | bool | unset | Whether those users may approve, reject, or push back waiting steps. |
cloud.run_keyDAGU_CLOUD_RUN_KEY | string | none | Run key (drk_...) that makes top-level CLI runs report as job runs. See Job Runs. |
Secret Providers
Defaults for secret providers. A DAG's secrets: entry can override them.
| Key | Type | Default | Description |
|---|---|---|---|
secrets.vault.addressDAGU_SECRETS_VAULT_ADDRESS | string | none | Vault address. |
secrets.vault.tokenDAGU_SECRETS_VAULT_TOKEN | string | none | Vault token. |
secrets.vault.token_fileDAGU_SECRETS_VAULT_TOKEN_FILE | path | none | File holding the Vault token. |
secrets.vault.ca_certDAGU_SECRETS_VAULT_CA_CERT | path | none | CA that verifies a private Vault endpoint. |
secrets.vault.client_certDAGU_SECRETS_VAULT_CLIENT_CERT | path | none | Client certificate for Vault mutual TLS. |
secrets.vault.client_keyDAGU_SECRETS_VAULT_CLIENT_KEY | path | none | Key of that certificate. |
secrets.kubernetes.namespaceDAGU_SECRETS_KUBERNETES_NAMESPACE | string | none | Kubernetes namespace. |
secrets.kubernetes.kubeconfigDAGU_SECRETS_KUBERNETES_KUBECONFIG | path | none | Kubeconfig file. |
secrets.kubernetes.contextDAGU_SECRETS_KUBERNETES_CONTEXT | string | none | Kubeconfig context. |
secrets.aws.regionDAGU_SECRETS_AWS_REGION | string | none | AWS Secrets Manager region. |
secrets.gcp.project_idDAGU_SECRETS_GCP_PROJECT_ID | string | none | Google Cloud project. |
secrets.gcp.locationDAGU_SECRETS_GCP_LOCATION | string | none | Location for regional secrets. |
secrets.azure.vault_urlDAGU_SECRETS_AZURE_VAULT_URL | string | none | Azure Key Vault URL. |
secrets.alibaba.regionDAGU_SECRETS_ALIBABA_REGION | string | none | Alibaba Cloud KMS region. |
secrets.alibaba.endpointDAGU_SECRETS_ALIBABA_ENDPOINT | string | none | KMS gateway host name, without https://. |
secrets.alibaba.ca_fileDAGU_SECRETS_ALIBABA_CA_FILE | path | none | CA of a dedicated KMS gateway. |
Browser
Settings for every browser that browser steps start on this host.
| Key | Type | Default | Description |
|---|---|---|---|
browser.sandboxDAGU_BROWSER_SANDBOX | bool | true | Chromium sandbox. Set false only where it cannot start; see Requirements. |
browser.max_openDAGU_BROWSER_MAX_OPEN | int | 0 | Most browsers open at once; 0 means no limit. See Limiting Open Browsers. |
browser.slots_dirDAGU_BROWSER_SLOTS_DIR | path | <user cache dir>/dagu/browser-slots | Where browsers are counted toward max_open. Processes sharing it share the limit. |
browser.write_gateDAGU_BROWSER_WRITE_GATE | string | off | Least strict write gate: off, record, ask, or rehearse. |
browser.write_policyDAGU_BROWSER_WRITE_POLICY | path | none | Write policy file. |
browser.guard_client_certificatesDAGU_BROWSER_GUARD_CLIENT_CERTIFICATES | bool | true with client certificates | Keep the browser from prompting for a client certificate. |
browser.client_certificates[].hosts | list | none | Hosts the certificate is presented to: a name, *.example.com, or *. |
browser.client_certificates[].pfx_file | path | none | PKCS#12 file with certificate and key. |
browser.client_certificates[].cert_file | path | none | PEM certificate and chain, with key_file. |
browser.client_certificates[].key_file | path | none | Unencrypted PEM key. |
browser.client_certificates[].ca_file | path | none | Extra CAs trusted for these hosts. |
browser.client_certificates[].passphrase | string | none | Passphrase of pfx_file. |
browser.client_certificates[].passphrase_file | path | none | File holding that passphrase. |
browser.trusted_cas[].hosts | list | none | Hosts the CA is trusted for: a name, *.example.com, or *. |
browser.trusted_cas[].ca_file | path | none | PEM file of CAs or self-signed server certificates. |
Browser Certificate Trust
browser.trusted_cas adds private CAs for named sites, on each machine that runs browsers. Trust is only added: the system CAs and every client_certificates[].ca_file stay trusted. Hosts listed in trusted_cas always go through Dagu's certificate proxy. For an HTTPS upstream proxy with a private CA, add an entry for the proxy's host name. See Trusted Certificate Authorities.
browser.guard_client_certificates keeps Chrome from asking the user to pick a client certificate. Dagu checks each other HTTPS site once with its own TLS handshake:
- A site that uses TLS 1.3, asks for no client certificate, and has a publicly trusted certificate keeps Chrome's own connection.
- Other sites go through Dagu's proxy, which presents no client certificate.
- Under TLS 1.3 a certificate request is encrypted, so a site that asks Chrome but did not ask during the check can still reach Chrome's certificate prompt.
The guard also trusts the client_certificates[].ca_file CAs for other hosts. Use trusted_cas to limit a CA to named hosts.
Agent Tools
File only: setting DAGU_AGENT_TOOLS stops startup, and so does an unknown key in the block. See Tool Calling.
| Key | Type | Default | Description |
|---|---|---|---|
agent_tools.max_tools | int | 64 | Most tools in a step's catalog. A larger catalog fails the step. |
agent_tools.tool_result_max_bytes | int | 524288 | Largest tool result sent to the model. 0 means no limit. |
Untrusted Steps
The restricted user that runs untrusted steps, on Linux. File only: setting DAGU_UNTRUSTED stops startup.
untrusted:
uid: 10001
gid: 10001| Key | Type | Default | Description |
|---|---|---|---|
untrusted.isolation | string | on | on requires uid and gid and fails an untrusted step without them. off runs it as the process user, for development. |
untrusted.uid | int | none | User ID of the restricted user, 1 to 4294967294. Set with gid. Must differ from the process user ID. |
untrusted.gid | int | none | Group ID of the restricted user, 1 to 4294967294. Set with uid. Must differ from the process group ID. |
- One key without the other, a value out of range, or
isolation: offtogether withuidandgidstops startup. - The user needs no
/etc/passwdentry. Give each Dagu process its own restricted user, unless the processes share no PID namespace and no work directory. dagu config --valuesprints the three values.
OpenCode
| Key | Type | Default | Description |
|---|---|---|---|
opencode.executableDAGU_OPENCODE_EXECUTABLE | string | opencode | OpenCode binary for the managed service. |
opencode.env_passthroughDAGU_OPENCODE_ENV_PASSTHROUGH | list | none | Variable names passed to the OpenCode service. See Service Setup. |
Environment Variables
Every variable in the tables above has the DAGU_ prefix and a fixed name. Names that are not listed are ignored: DAGU_PATHS_DAGS_DIR does nothing. Dagu's own credential variables never reach steps.
These variables have no config.yaml key:
| Variable | Description |
|---|---|
DAGU_HOME | Application home for config, DAGs, and data. Flag --dagu-home. See DAGU_HOME. |
DAGU_LICENSE | License token, inline. Checked before DAGU_LICENSE_KEY and license.key. |
DAGU_LICENSE_FILE | Offline license file. |
DAGU_ENCRYPTION_KEY | Key that encrypts stored secrets. When unset, Dagu uses {data_dir}/auth/encryption_key, created when first needed. |
DAGU_CONTAINER_RUNTIME | docker (default) or podman, for container:, docker.run, and containerized harness steps. |
DAGU_PODMAN_HOST | Podman API socket. Default unix:///run/podman/podman.sock. |
DAGU_CONTAINER_RUNTIME and DAGU_PODMAN_HOST are read from the Dagu process environment. A DAG's or step's env: cannot change them.
Legacy Names
Old names still load. The current name wins when both are set.
| Legacy variable | Use instead |
|---|---|
DAGU_DAGS | DAGU_DAGS_DIR |
DAGU_TUNNEL | DAGU_TUNNEL_ENABLED |
DAGU_NAVBAR_COLOR, DAGU__ADMIN_NAVBAR_COLOR | DAGU_UI_NAVBAR_COLOR |
DAGU_NAVBAR_TITLE, DAGU__ADMIN_NAVBAR_TITLE | DAGU_UI_NAVBAR_TITLE |
DAGU_LOG_ENCODING_CHARSET | DAGU_UI_LOG_ENCODING_CHARSET |
DAGU_MAX_DASHBOARD_PAGE_LIMIT | DAGU_UI_MAX_DASHBOARD_PAGE_LIMIT |
DAGU__ADMIN_HOST, DAGU__ADMIN_PORT | DAGU_HOST, DAGU_PORT |
DAGU__DATA | DAGU_DATA_DIR |
DAGU__SUSPEND_FLAGS_DIR | DAGU_SUSPEND_FLAGS_DIR |
DAGU__ADMIN_LOGS_DIR | DAGU_ADMIN_LOG_DIR |
DAGU__EVENT_STORE_DIR | DAGU_EVENT_STORE_DIR |
DAGU_DOCS_DIR | DAGU_WIKI_DIR |
DAGU_API_BASE_URL | DAGU_API_BASE_PATH |
DAGU_LATEST_STATUS_TODAY | none; deprecated |
DAGU_SCHEDULER_HEARTBEAT_INTERVAL | DAGU_PROC_HEARTBEAT_INTERVAL |
DAGU_SCHEDULER_STALE_THRESHOLD | DAGU_PROC_STALE_THRESHOLD |
| Legacy key | Use instead |
|---|---|
dags, dags_dir, executable, log_dir, artifact_dir, data_dir, suspend_flags_dir, admin_logs_dir, event_store_dir, base_config | The same key under paths. |
navbar_color, navbar_title, log_encoding_charset, max_dashboard_page_limit | The same key under ui. |
permission_write_dags, permission_run_dags | permissions.write_dags, permissions.run_dags |
api_base_url | api_base_path |
latest_status_today | none; deprecated |
queues.config[].max_active_runs | queues.config[].max_concurrency; the old key wins when both are set |
scheduler.heartbeat_interval, scheduler.stale_threshold | proc.heartbeat_interval, proc.stale_threshold; proc.* wins |
proc.heartbeat_sync_interval, scheduler.heartbeat_sync_interval | none; accepted and ignored |
Supported Log Encodings
ui.log_encoding_charset accepts these names, in any case, with _ or -. An unknown name leaves lines as they are. See Log Encoding for how lines are decoded.
| Script | Names (aliases) |
|---|---|
| Unicode | utf-8; utf-16 (follows a byte-order mark, else little-endian), utf-16le, utf-16be |
| Japanese | shift_jis (sjis, ms-kanji), euc-jp, iso-2022-jp |
| Chinese | gbk (gb2312, cp936), gb18030, hz-gb-2312, big5 |
| Korean | euc-kr (korean) |
| ISO-8859 | iso-8859-1 to iso-8859-10, iso-8859-13 to iso-8859-16 (latin1 to latin10, cyrillic, arabic, greek, hebrew) |
| Windows | windows-1250 to windows-1258 (cp1250 to cp1258; ansi is windows-1252) |
| DOS | ibm437, ibm850, ibm852, ibm855, ibm858, ibm860, ibm862, ibm863, ibm865, ibm866 (cp437 and so on) |
| Other | koi8-r, koi8-u, macintosh (macroman) |
Suspend Flag Upgrades
Suspended DAGs are recorded as flag files in paths.suspend_flags_dir, which defaults to {data_dir}/suspend so that every process sharing the data directory shares suspension state. A path outside data_dir logs a warning.
Upgrading from the old default location
With the default path, Dagu also reads flags from the previous default: suspend/ under the Dagu home, or $XDG_DATA_HOME/dagu/suspend in the XDG layout. The leading scheduler copies them into the new directory before it processes runs, and keeps the originals. Suspending a DAG writes the new flag before it removes the legacy one; resuming removes both. An explicit paths.suspend_flags_dir turns this off.
- Make the same legacy flags available to every server and scheduler, and reconcile per-host flag directories first.
- Upgrade every process before changing suspension state. Older processes that write legacy flags must not run beside upgraded ones.
- Keep the legacy directory in backups until the scheduler has copied it.
- To roll back, configure the older version to use the new suspend directory.

