Skip to content

Install on macOS

Common paths: Homebrew (binary only), npm (binary only), or the guided script installer (optional LaunchAgent service and admin bootstrap).

Homebrew

bash
brew install dagu

Upgrade later with brew upgrade dagu. Homebrew installs the binary only — no service, no admin account. Set those up yourself or use the script installer.

npm

bash
npm install -g --ignore-scripts=false @dagucloud/dagu

The npm package downloads the Dagu binary during postinstall. Use the script installer if you want guided LaunchAgent service setup and admin bootstrap.

Script installer

bash
curl -fsSL https://raw.githubusercontent.com/dagucloud/dagu/main/scripts/installer.sh | bash

The wizard can add dagu to your PATH, register a LaunchAgent, and create the first admin account.

Non-interactive install with service

bash
curl -fsSL https://raw.githubusercontent.com/dagucloud/dagu/main/scripts/installer.sh | \
  bash -s -- \
    --service yes \
    --admin-username admin \
    --admin-password 'change-me-now'

Common flags

FlagPurpose
--version vX.Y.ZInstall a specific release
--install-dir ~/binInstall to a custom location
--install-dir /usr/local/binInstall system-wide (needs sudo)
--service yesRegister a LaunchAgent
--admin-username <u> --admin-password <p>Bootstrap first admin
--working-dir /volume1/tmpOverride /tmp (useful on NAS)
--dry-run --no-promptCI preview mode

Service PATH capture

When the installer sets up a background service, it captures the PATH from the shell you ran it in. CLI tools on that PATHclaude, node, docker, and so on — become available to workflow steps that run inside the service. If you add new tools later, rerun the installer or use absolute paths in steps.

Manual binary

Download from GitHub Releases, unpack, and put dagu on your PATH.

Verify

bash
dagu version

Next: Quickstart.

Released under the MIT License.