Remote Access from Dagu Cloud
MCP clients connected to Dagu Cloud, such as Claude and ChatGPT, can call a self-hosted server's MCP tools while remote access is on, and members can 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. Without remote access, MCP clients still read what the server reports to Dagu Cloud. See MCP.
- Remote access is off until an administrator of the server turns it on. Dagu Cloud cannot turn it on or raise it.
- The server sets the highest role a call gets. Each user gets the lower of that role and the one Dagu Cloud grants them.
- Calls reach only the MCP tools. They never reach 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.
Requirements
- Dagu v2.22 or later.
- The server is connected to Dagu Console with a license that checks in. See Connect a Server. Servers with offline licenses cannot use remote access.
- The workspace is on the Team or Pro plan, or in a trial. Dagu Cloud refuses the connection for a workspace without a plan, including one on free monitoring.
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 decide waiting steps, turn on the Human tasks switch. See Approvals.
The Remote access section 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, such as a workspace without a plan.
- Last call: the app, the person, and the time of the latest call served through Dagu Cloud, or No calls yet. It needs no audit logs.
- MCP URL: the Dagu Cloud MCP URL, with a copy button.
- Connect a client: the steps to add the URL in Claude and ChatGPT, and the
claude mcp addcommand for Claude Code, with a copy button. A link opens Dagu Cloud for other clients and connections. - Agent activity: on a server with audit logs, the latest calls from Dagu Cloud, with the tool, action, resource, and user, and whether a call failed or was denied.
During a trial, the section also says until when MCP clients keep working.
A change applies at once, without a restart, and is kept in the data directory (cloud/access-settings.json under paths.data_dir). 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. The last call is kept in cloud/access-last-call.json in the same directory, written at most once a minute for each app and person.
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 with DAGU_CLOUD_REMOTE_ACCESS=operator and DAGU_CLOUD_REMOTE_APPROVALS=false.
Each key, when set, wins over the choice in the web UI, off and false included. The section shows Set in configuration for it and offers no way to change it. To change it, change the configuration and restart Dagu. A key left unset is chosen in the web UI, where it starts off.
Connect an MCP Client
Add Dagu Cloud's MCP server URL to the MCP 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 URL and the steps for each client. With remote access on, the Remote access section in Dagu shows the URL and the steps for Claude, ChatGPT, and Claude Code.
- 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:
- what the connection was granted in step 2;
- the workspace's MCP policy, which its owners set on MCP;
- the member's entry under Server roles, also set by owners;
- the server's remote access level.
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, a member acts on the server's runs from Dagu Console's pages, through the same connection and checks:
- A run's page reads a failed step's log from the server on View log. 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 for, with Approve and Reject. A task with 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 of a run running too long, Stop. The alert's Timeline keeps who did it.
What a member may do is the lower of their entry under Server roles on MCP and the server's remote access level: reading needs viewer, and retrying, stopping, and deciding need operator. Deciding also needs approvals on. A button the member may not use is shown disabled, saying why. These actions need the Team or Pro plan, or a trial. Each one is recorded on the server under the member's email, with Dagu Console as the app.
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. |
Each user gets the lower of this level and the role Dagu Cloud grants them on this server. No level reaches manager or admin.
The role applies in every workspace on the server. It also applies 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.
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.
- Each decision must pass the
attemptIdthe caller read from the run, so a decision based on an earlier attempt is refused. A decision without it fails withinvalid_tool_input. - With approvals off, decisions fail with
unauthorized, and nothing changes.
How Calls Differ
Calls from Dagu Cloud use the same three tools as the server's own /mcp endpoint, with these differences:
- They offer no resource subscriptions. To follow a run, pass
wait=truetodagu_execute, or read the run again. - They use no API key. Each 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 Dagu Cloud: 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.

