Skip to content

Remote Access from Dagu Cloud ​

Remote access lets MCP clients connected to Dagu Cloud, such as Claude and ChatGPT, call a self-hosted server's MCP tools, and lets members act on runs from Dagu Console. Dagu Cloud carries each call over a connection the server opens, so the server needs no public address, open port, or API key.

An MCP client connects to Dagu Console at console.dagu.sh with OAuth. Dagu Console sends signed calls through the relay at relay.dagu.sh to Dagu servers over a WebSocket each server opens, and servers report to Dagu Console. Servers accept no inbound connections.
  • Off until a server administrator turns it on. Dagu Cloud cannot turn it on or raise it.
  • The server caps the role. Each user gets the lower of the server's level and the role Dagu Cloud grants them.
  • Calls reach only the MCP tools, never the terminal, users, API keys, the license, or the remote access settings.
  • Deciding steps that wait for a person is a separate switch, also off by default.

Without remote access, MCP clients still read what the server reports to Dagu Cloud. See MCP.

Requirements ​

  • Dagu v2.22 or later.
  • The server is connected to Dagu Console with a license that checks in. See Connect a Server. Offline licenses cannot use remote access.
  • The workspace is on Team or Pro, or in a trial. Dagu Cloud refuses the connection for a workspace on free monitoring or without a plan.
  • The server runs dagu server or dagu start-all. Each process that serves the web UI holds its own connection.
  • Outbound HTTPS to console.dagu.sh and relay.dagu.sh. No inbound port is opened.

Turn It On ​

From the Web UI ​

  1. Open Plan & features as an administrator and select Turn on in the Remote access section.
  2. Choose Viewer, Operator, or Developer. The dialog lists what each allows.
  3. Select Turn on.
  4. To let calls approve and reject waiting steps, turn on the Human tasks switch. See Approvals.

You can also check Use this server from MCP clients on the Connect to Dagu Cloud card when you first connect the server.

The Remote access section then shows:

RowShows
AccessThe level, with Change and Turn off
Human tasksWhether calls may approve, reject, or push back steps waiting for a person
ConnectionConnected, Connecting…, or why the connection failed or Dagu Cloud refused it
Last callThe app, person, and time of the latest call through Dagu Cloud, or No calls yet
MCP URLThe Dagu Cloud MCP URL, with a copy button
Connect a clientSteps for Claude and ChatGPT, and the claude mcp add command for Claude Code
Agent activityOn a server with audit logs, the latest calls with the tool, action, resource, user, and any failure or denial

During a trial, the section also says until when MCP clients keep working.

A change applies at once, without a restart. Other processes that share the data directory apply it within a few seconds. Turning remote access off closes the connection and ends the calls in flight.

In Configuration ​

For servers managed as code, set the level and the approvals switch in the configuration file:

yaml
cloud:
  remote_access: operator   # off, viewer, operator, or developer
  remote_approvals: false

or DAGU_CLOUD_REMOTE_ACCESS=operator and DAGU_CLOUD_REMOTE_APPROVALS=false. dagu license activate --remote-access operator sets the level when you connect from a shell.

A key that is set wins over the web UI, off and false included. The section shows Set in configuration and offers no way to change it; change the configuration and restart Dagu. A key left unset is chosen in the web UI, where it starts off.

Levels ​

LevelA call may
off (default)Nothing. Every call is refused
viewerRead DAGs, runs, and logs
operatorAlso start, enqueue, retry, and stop runs of existing DAGs, with any parameters those DAGs take
developerAlso change DAG definitions and run inline specs

No level reaches manager or admin. The level applies in every workspace on the server, and also on a server with auth.mode: none or basic, which checks no roles for its own users.

Developer runs any command

DAG steps run commands, so developer lets the Dagu Cloud users it reaches run any command on the host, as the OS user Dagu runs as. Choose it only where you would give those users a shell on the host.

Connect an MCP Client ​

Add Dagu Cloud's MCP server URL to the client as a custom connector:

text
https://console.dagu.sh/mcp
  1. Add the URL in Claude, ChatGPT, Cursor, or another client that connects to remote MCP servers. MCP in Dagu Console shows the steps for each client.
  2. Sign in to Dagu Cloud when the client asks. Choose the workspaces the client may reach, what it may do in each (read, operate, or edit), on all servers or chosen ones, and whether it may decide steps waiting for a person.

A call gets the lowest of four limits:

LimitSet byWhere
The connection's grantThe person who connected the clientSign-in in step 2
MCP policyWorkspace ownersMCP in Dagu Console
The member's Server roleWorkspace owners. Owners default to developer, everyone else to viewerMCP in Dagu Console
The server's levelThe server's administratorPlan & features in Dagu

Owners see every connection to their workspace on MCP and can end any of them.

Act on Runs from Dagu Console ​

With remote access on, members act on the server's runs from Dagu Console's pages, through the same connection and checks:

  • View log on a run's page reads a failed step's log from the server. The log is shown, not kept.
  • Retry retries a finished run, and Stop stops one in progress.
  • A run waiting for a person shows the step it waits at and what its approval gate asks, with Approve and Reject. A step that asks for a form, or a wait inside a sub-workflow, opens in Dagu. The Overview lists such runs under Needs attention.
  • A failure alert offers its run's log and Retry, and an alert for a run running too long offers Stop. The alert's Timeline records who acted.

Reading needs viewer; retrying, stopping, and deciding need operator, taken as the lower of the member's Server role and the server's level. Deciding also needs approvals on. A button the member may not use is disabled and says why. Each action is recorded on the server under the member's email, with Dagu Console as the app.

Approvals ​

With the Human tasks switch on, a call at operator or above can approve, reject, or push back a step that waits for a person, through dagu_execute. The connection's grant and the workspace's MCP policy must also allow approvals.

  • Each decision must pass the attemptId the caller read from the run. Without it, the call fails with invalid_tool_input. If the run has moved to another attempt since, it fails with conflict.
  • With the switch off, decisions fail with unauthorized, and nothing changes.

How Calls Differ ​

Calls from Dagu Cloud use the same tools as the server's own /mcp endpoint, with these differences:

  • No resource subscriptions. To follow a run, pass wait=true to dagu_execute, or read the run again.
  • No API key. Each call runs as the Dagu Cloud user, recorded as cloud: followed by the user's Dagu Cloud ID.
  • Step decisions need approvals on and an attemptId.

Security ​

See MCP for how calls are verified, what Dagu Cloud keeps, and how to stop access, and Security and Data Flow for every connection a server makes. When monitoring is on, health reports include the remote access level and whether approvals are on.

Files in the data directory
  • cloud/access-settings.json under paths.data_dir keeps the choices made in the web UI.
  • cloud/access-last-call.json keeps the last call, written at most once a minute for each app and person.

Dagu is open source under the GNU General Public License v3.0.