dagucloud/dagu
Local-first workflow engine for teams whose main work isn't orchestration. Declarative YAML over your scripts, SSH commands, containers, and AI agents; keep workflows separate from business logic. One binary, no database. Airflow alternative.
What it solves
Dagu 是一个本地优先的工作流引擎,专为需要自动化运维但不想承担管理复杂编排平台负担的团队设计。它取代了不透明的 cron 任务和像 Airflow、Temporal 这类重量级框架,让用户能够将现有脚本、容器和运行手册转化为具备调度、重试和可视化监控的生产级管道。
How it works
工作流使用声明式 YAML 格式定义为有向无环图(DAG)。Dagu 以单一二进制文件运行,内置 Web UI,且无需外部数据库或消息中间件。它可以在单机上以独立模式运行,或通过协调器和基于 gRPC 的分布式工作者进行扩展。支持执行 Shell 命令、Docker 容器、Kubernetes Job,以及通过 SSH 的远程命令,并通过内置的 Model Context Protocol(MCP)服务器和特定的 harness 来集成 AI 代理的编码 CLI。
Who it’s for
它面向运维团队、数据工程师和开发者,适合已有自动化脚本并希望在不重写为特定 SDK 或管理复杂基础设施的情况下,添加可观测性、依赖管理和调度功能的场景。
Highlights
- Single Binary Installation: Self-contained deployment with no external DBMS required.
- AI Agent Integration: Built-in MCP server and
harness.runaction for integrating AI coding agents into workflows. - Language Agnostic: Works with any existing script or tool via shell, Docker, or Kubernetes.
- Human-in-the-loop: Built-in approval steps for manual intervention within automated pipelines.
- Distributed Scaling: Ability to spread execution across a fleet of workers using labels.
- Secret Management: Secure log masking to prevent credentials from leaking into the UI or logs.