OpenClaw Remote MCP Server Setup & Host Guardrail Guide

Running autonomous 24/7 OpenClaw heartbeats with raw root shell access is risky. Riftsh isolates OpenClaw on a container or VPS while routing scoped, directory-whitelisted MCP calls to your target hosts.

~/.openclaw/openclaw.json
{
  "mcpServers": {
    "riftsh": {
      "type": "streamable-http",
      "url": "https://riftsh.com/mcp",
      "headers": {
        "Authorization": "Bearer rft_live_YOUR_SECRET_KEY"
      }
    }
  }
}
Need custom _device host routing or directory guardrails?Open Interactive MCP Config Generator

1. Install & pair host

$ curl -fsSL https://riftsh.com/install.sh | sh
$ riftsh remote

2. Configure OpenClaw Agent

  1. 01Install riftsh on the target host, restrict paths via riftsh config allow-dir ~/workspace, and run riftsh remote --daemon.
  2. 02Create a dedicated rft_live_... token for OpenClaw in /dashboard/keys.
  3. 03Add the mcpServers.riftsh block above to ~/.openclaw/openclaw.json and restart the OpenClaw daemon.
  4. 04OpenClaw can now inspect logs, run builds, and create checkpoints across paired hosts with instant one-click revocation.

FAQ

How do I stop an autonomous OpenClaw agent from running destructive shell commands?

Configure riftsh config block-cmd "rm -rf" and riftsh config allow-dir ~/projects locally on the host—Riftsh enforces symlink-resolved directory and command guardrails before executing any tool.

Ready to connect your first machine?