# 使用 Homebrew 安装 dagu

查看 dagu 的安装路径、可执行文件、元数据以及面向 AI 代理工作流的安全说明。

## 安装

```sh
sudo av install brew:dagu
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install dagu
```

  证据: local Homebrew formula metadata

## 软件包事实

- **软件包键:** brew:dagu
- **软件包管理器:** Homebrew
- **版本:** 2.11.3
- **来源摘要:** Lightweight and powerful workflow engine
- **主页:** <https://dagu.sh>
- **仓库:** <https://github.com/dagucloud/dagu>
- **最后更新:** 2026-08-02T18:01:56Z
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- dagu (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

- 页面生成时间: 2026-08-03
- 管理器版本: 2.11.3
## 项目历史与用法

Dagu is a local-first workflow engine with a Web UI and a declarative YAML workflow format. It is packaged as a self-contained CLI/server tool for people who want scheduled DAGs, retries, logs, approvals, and automation without running a database-backed orchestration stack.

### 项目历史

The official repository metadata records the Dagu repository as created in April 2022. Current official docs describe Dagu as local-first workflow orchestration that runs anywhere, with declarative YAML, a single binary, and air-gapped readiness.

### 采用历史

Dagu's adoption story is aimed at small teams and operators moving beyond cron without adopting a heavyweight Airflow-style deployment. The official README explicitly compares the single-binary Dagu model with traditional orchestrators that require multiple services such as a web server, scheduler, workers, PostgreSQL, Redis or RabbitMQ, and a Python runtime.

### 使用方式

Users define workflows as YAML DAG files, run them with the dagu CLI, and operate the scheduler, executor, and web UI with commands such as dagu start-all. The official configuration docs define ~/.config/dagu/config.yaml as the default process-level configuration file and document default DAG, log, and data paths.

### 为什么软件包爱好者会关心

Dagu matters to package nerds because it compresses a workflow scheduler, web UI, local file-backed state, and DAG runner into a single installable tool. It fills the package-manager niche between cron-plus-shell-scripts and a full distributed orchestration platform.

### 时间线

- 2022: Official Dagu GitHub repository is created.
- 2025: v1.22.0 release is published in the current official repository.
- 2026: Official docs present Dagu as local-first orchestration with declarative YAML and a single-binary deployment model.

### Related projects

- Official materials position Dagu as an alternative to Airflow and Cron and document actions for shell commands, Docker containers, Kubernetes Jobs, SSH, HTTP, SQL, and AI-agent harnesses.

### 来源

- <https://docs.dagu.sh/>
- <https://raw.githubusercontent.com/dagucloud/dagu/main/README.md>
- <https://raw.githubusercontent.com/dagucloud/docs/main/server-admin/configuration.md>
- <https://api.github.com/repos/dagucloud/dagu>
- <https://github.com/dagucloud/dagu/releases/tag/v1.22.0>


## 安全说明

formula declares a Homebrew service.

- **Geiger 风险:** orange / 中
- formula declares a Homebrew service


## Configuration and credential file locations

These source-backed paths show where this package keeps local settings or durable credentials. Automic Vault can use them as review targets for secret scanning, migration, and command approval.


## Configuration files

- Unix: ~/.config/dagu/config.yaml, ~/.config/dagu/dags/*.yaml

## Combined YAML source

View the package source record on GitHub. [combined/dagu.yml](https://github.com/mxcl/pkgdb/blob/main/combined/dagu.yml)


## 来源

- pkg.so package database
- Geiger risk classifier
- curated configuration and credential file locations
- curated package history
- pkgdb category and tag curation
- cross-ecosystem install command graph
