What is Dagu?

Dagu is a self-contained workflow engine for orchestrating shell commands, containers, and remote tasks. Define workflows in declarative YAML, execute them with a single binary, and compose complex pipelines from reusable sub-workflows. No database, message broker, or external dependencies required.
Key Capabilities
- Single binary deployment - Install and run without external services
- Declarative YAML - JSON Schema validation with clear error messages
- Composable workflows - Nest sub-DAGs with parameters to unlimited depth
- Distributed execution - Route tasks to workers via labels (GPU, region, etc.)
- Built-in scheduling - Cron expressions with start/stop/restart support
- Web UI - Monitor, control, and debug workflows in real-time
How It Works
Dagu executes workflows defined as steps in YAML. Steps form a Directed Acyclic Graph (DAG), ensuring predictable execution order.
Sequential Execution
type: chain
steps:
- command: echo "Step 1"
- command: echo "Step 2"Parallel Execution
type: graph
steps:
- id: step_1
command: echo "Step 1"
- id: step_2a
command: echo "Step 2a"
depends: [step_1]
- id: step_2b
command: echo "Step 2b"
depends: [step_1]
- id: step_3
command: echo "Step 3"
depends: [step_2a, step_2b]Architecture Overview
Local mode: CLI, Web UI, or API triggers the Agent, which runs steps via Executors.
Distributed mode: Scheduler dispatches work to a Coordinator, which routes tasks to Workers based on label selectors (e.g., gpu=true, region=us-east).
See Architecture for details.
Built-in Step Types
| Type | Description |
|---|---|
command | Shell commands (bash, sh, PowerShell, cmd) |
docker | Container execution with volume mounts and registry auth |
ssh | Remote command execution via SSH |
http | HTTP/REST API requests |
jq | JSON query and transformation |
mail | Email notifications with attachments |
dag | Sub-workflow execution (hierarchical composition) |
See Step Types Reference for configuration details.
Demo
CLI: Create and execute workflows from the command line.

Web UI: Monitor executions, view logs, and manage workflows visually.

Learn More
- Quick Start - Running in minutes
- Core Concepts - Workflows, steps, and dependencies
- Architecture - System internals and distributed execution
- Examples - Ready-to-use workflow patterns