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
- 01Install
riftshon the target host, restrict paths viariftsh config allow-dir ~/workspace, and runriftsh remote --daemon. - 02Create a dedicated
rft_live_...token for OpenClaw in/dashboard/keys. - 03Add the
mcpServers.riftshblock above to~/.openclaw/openclaw.jsonand restart the OpenClaw daemon. - 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.
Other clients