n8n alternative

A code-first n8n alternative for developers.

Dagu is a self-hosted n8n alternative for teams that want their automation in version-controlled YAML. Edit it as text or on a canvas, and get schedules, retries, logs, and a web UI, all from one binary.

Automation as code
# signup-alerts.yaml
schedule: "*/10 * * * *"
 
steps:
  - id: fetch
    run: curl -fsS https://api.internal/signups?since=10m
    output: SIGNUPS
 
  - id: filter
    run: echo '${SIGNUPS}' | jq '[.[] | select(.plan == "team")]'
    output: TEAM_SIGNUPS
    depends: [fetch]
 
  - id: notify
    run: ./scripts/post-to-slack.sh '${TEAM_SIGNUPS}'
    depends: [filter]

Execution order

fetchfilterjqnotify

Workflows are version-controlled YAML you keep in git

One self-hosted binary, with no database or Node runtime to run

Steps for shell, Docker, HTTP, SSH, and Agent Harness steps

Schedules, retries, logs, and a web UI built in

At a glance

n8n vs. Dagu

Authoring
Dagu

Version-controlled YAML, edited as text or on a canvas and reviewed in git.

n8n

Visual node canvas configured in a browser UI.

Runtime
Dagu

Single binary with local files; no database required.

n8n

A long-running service plus a database to self-host.

Best fit
Dagu

Code-first scripts, ops jobs, pipelines, and Agent Harness workflows.

n8n

No-code SaaS app integrations and visual automations.

In depth

How Dagu does it

01

Automation that lives in your repo

A visual node editor is great for wiring SaaS apps together by hand. Code-first teams usually want something different: automation that lives in git, shows up as a clean diff in review, and runs the scripts and binaries they already have.

  • Define every step in YAML and keep it under version control.
  • Review automation changes in an ordinary pull request.
  • Run the commands, scripts, and containers your team already uses.
02

A smaller thing to self-host

Self-hosting a node-based automation platform usually means running a service plus a database and keeping both healthy. Dagu is a single binary backed by local files, so there is far less to keep running.

  • One binary with local file storage, and no external database or broker.
  • Start on one host; move to queued or distributed workers when needed.
  • Keep upgrades and backups simple.
03

Built for scripts, ops, and Agent Harness steps

Dagu targets developer and operations automation: scheduled jobs, pipelines, runbooks, and Agent Harness tasks, rather than no-code SaaS glue.

  • Executors for shell, Docker, HTTP, SSH, sub-workflows, and Agent Harness steps.
  • Dependencies, retries, timeouts, logs, and run history by default.
  • Run Claude, Codex, or another external agent CLI inside a workflow step.

FAQ

Practical questions before adopting Dagu

Can Dagu replace n8n?

Yes, for teams that want automation in version-controlled YAML. Dagu runs scripts, containers, HTTP calls, schedules, webhooks, and agents from one self-hosted binary, and the web UI edits workflows on a canvas. If you need a connector that is missing, request it at dagu.sh/contact.

Does Dagu have a visual editor?

Yes. The web UI's workflow page draws the steps on a canvas. Add a step from the palette, drag between steps to add a dependency, and edit the YAML beside it. Saving writes an ordinary YAML file that you can keep in git.

Can Dagu call APIs and webhooks like n8n?

Yes. A step can call any API over HTTP, and every workflow can have a webhook, with a public URL through Dagu Cloud if its server has no public address. Built-in steps cover SQL, S3, SFTP, Redis, Git, and mail, and official actions add tools such as dbt, DuckDB, and the GitHub CLI.

Next step

Start with one workflow.

Install Dagu, move one fragile script or agent task into YAML, and decide from a real run history.