Skip to content

Installation ​

Pick the guide for your platform.

  • macOS: Homebrew or the guided script installer (LaunchAgent service)
  • Linux: Guided script installer with systemd service, or a manual binary
  • npm: Global package that downloads the Dagu binary during postinstall
  • Windows: Graphical or PowerShell script installer with optional Windows service, or Scoop
  • Docker: docker run, Compose, and mounting the host Docker socket
  • Kubernetes: Official Helm chart
  • Build from source: Go + Node toolchain

Which one should I use? ​

SituationInstall method
Trying Dagu locally on a laptopHomebrew (macOS), script installer (Linux), or graphical installer (Windows)
Running a shared serverScript installer with --service yes
Running in a containerDocker
Running on a clusterKubernetes (Helm)
CI / reproducible setupsnpm, manual binary download, or Docker
Developing on Dagu itselfBuild from source

What the script installers do ​

The installer.sh / installer.ps1 / installer.cmd scripts open a guided wizard that can:

  • Install the dagu binary
  • Add it to your PATH
  • Set it up as a background service (systemd on Linux, LaunchAgent on macOS, Windows service on Windows)
  • Create and verify the first admin account
  • Install the Dagu AI skill for the AI coding tools it detects

The Windows graphical installer can add Dagu to your PATH and set it up as a Windows service. It does not create the admin account or install the AI skill.

Homebrew, npm, Scoop, Docker, Helm, and manual downloads install without the guided wizard, service setup, or admin bootstrap.

Where Dagu Keeps Things ​

After installation, Dagu uses these paths by default. These are the main locations to know when you want to back up workflows, move storage, or inspect logs:

~/.config/dagu/
├── dags/          # Your workflow YAML files
├── config.yaml    # Server configuration
└── base.yaml      # Shared DAG defaults

~/.local/share/dagu/
├── logs/          # Per-run execution logs
└── data/          # Run history and state
    └── suspend/   # Suspend flags

A background service set up by an installer keeps everything in one directory instead: ~/.dagu, /var/lib/dagu for a Linux system service, or C:\ProgramData\Dagu for a Windows service. It has the DAGU_HOME layout, with workflows in dags/. Once ~/.dagu exists, the dagu command uses it too.

Override any path with environment variables:

bash
export DAGU_HOME=/opt/dagu              # all-in-one override
export DAGU_DAGS_DIR=/workflows
export DAGU_LOG_DIR=/var/log/dagu
export DAGU_DATA_DIR=/var/lib/dagu

Verifying the install ​

bash
dagu version

Then run the Quickstart to create your first workflow. If you use AI coding tools, install the bundled Dagu workflow authoring skill and connect the Dagu MCP server to operate a running Dagu server.

Uninstalling ​

The script installers also uninstall. Uninstall Dagu installed by the Windows graphical installer from Settings > Apps. See Uninstall.

Dagu is open source under the GNU General Public License v3.0.