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.
- 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 serverordagu start-all. Each process that serves the web UI holds its own connection. - Outbound HTTPS to
console.dagu.shandrelay.dagu.sh. No inbound port is opened.
Turn It On
From the Web UI
- Open Plan & features as an administrator and select Turn on in the Remote access section.
- Choose Viewer, Operator, or Developer. The dialog lists what each allows.
- Select Turn on.
- 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:
| Row | Shows |
|---|---|
| Access | The level, with Change and Turn off |
| Human tasks | Whether calls may approve, reject, or push back steps waiting for a person |
| Connection | Connected, Connecting…, or why the connection failed or Dagu Cloud refused it |
| Last call | The app, person, and time of the latest call through Dagu Cloud, or No calls yet |
| MCP URL | The Dagu Cloud MCP URL, with a copy button |
| Connect a client | Steps for Claude and ChatGPT, and the claude mcp add command for Claude Code |
| Agent activity | On 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:
cloud:
remote_access: operator # off, viewer, operator, or developer
remote_approvals: falseor 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
| Level | A call may |
|---|---|
off (default) | Nothing. Every call is refused |
viewer | Read DAGs, runs, and logs |
operator | Also start, enqueue, retry, and stop runs of existing DAGs, with any parameters those DAGs take |
developer | Also 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:
https://console.dagu.sh/mcp- 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.
- 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:
| Limit | Set by | Where |
|---|---|---|
| The connection's grant | The person who connected the client | Sign-in in step 2 |
| MCP policy | Workspace owners | MCP in Dagu Console |
| The member's Server role | Workspace owners. Owners default to developer, everyone else to viewer | MCP in Dagu Console |
| The server's level | The server's administrator | Plan & 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
attemptIdthe caller read from the run. Without it, the call fails withinvalid_tool_input. If the run has moved to another attempt since, it fails withconflict. - 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=truetodagu_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.jsonunderpaths.data_dirkeeps the choices made in the web UI.cloud/access-last-call.jsonkeeps the last call, written at most once a minute for each app and person.

