Don't Run OpenClaw on Your Main Machine
OpenClaw gives an AI agent full access to your system. Here's why you should run it on an isolated cloud VM instead.

Don't Run OpenClaw on Your Main Machine π‘οΈ
Originally published on SkyPilot Blog by Alex Kim.
π€ What is OpenClaw?
OpenClaw is a self-hosted AI agent that connects to WhatsApp, Telegram, Slack, Discord, and dozens of other services. It exploded to over 215k GitHub stars in a matter of weeks.
It runs a persistent "gateway" process connecting LLMs (primarily Anthropic's Claude) to your messaging platforms. You chat with it like texting a friend, and it executes tasks using powerful tools:
- π₯οΈ Shell execution β Run commands on the host machine
- π Browser automation β Navigate websites, fill forms, take screenshots via Playwright
- π File operations β Read, write, and edit files
- π 100+ integrations β Gmail, GitHub, Notion, Spotify, calendars, and more
- π§ Persistent memory β Vector-based memory across conversations
- β° Scheduled tasks β Cron-like "heartbeats" that run autonomously
OpenClaw also powers Moltbook, a social network for AI agents with 770,000+ active agents in its first week. Covered by The New York Times, The Economist, and CACM.
β οΈ Why Not Run It on Your Main Machine?
OpenClaw gives the AI agent roughly the same level of access you have. The agent can:
- Execute shell commands as your user (or root)
- Read SSH keys,
.envfiles, browser cookies - Send emails and interact with APIs using your credentials
- Install software and modify system configs
A single prompt injection β a malicious instruction hidden in an email or web page β can turn all of this against you.
Andrej Karpathy warned: "giving my private data/keys to 400K lines of vibe coded monster that is being actively attacked at scale is not very appealing at all."
π Real Vulnerabilities Found
| Vulnerability | Impact |
|---|---|
| CVE-2026-25253 | Unauthenticated WebSocket extraction of auth tokens |
| 21,000+ exposed instances | Publicly accessible gateways on the open internet |
| Moltbook database leak | Anyone could take control of any agent |
| Supply chain attacks | Abandoned package names hijacked for malicious updates |
The OpenClaw maintainers themselves acknowledge: "There is no 'perfectly secure' setup."
ποΈ Your Isolation Options
| Option | Pros | Cons |
|---|---|---|
| Docker | Easy setup, partial isolation | Still on your machine, Docker escape risk |
| Dedicated Hardware | Full physical isolation | Expensive ($599+ Mac Mini), maintenance burden |
| Cloud VM β | Strongest isolation, cheapest to start | Requires cloud account setup |
βοΈ Setting Up on a Cloud VM with SkyPilot
SkyPilot is an open-source framework for running workloads on any cloud. Launch OpenClaw with one command on AWS, GCP, Azure, and more.
Step 1: Install SkyPilot
pip install 'skypilot[aws]'
sky checkStep 2: Launch OpenClaw
sky launch -c openclaw openclaw.yaml --env ANTHROPIC_API_KEYSkyPilot provisions a VM, installs OpenClaw, generates an auth token, and starts the gateway.
Step 3: Access via SSH Tunnel
ssh -L 18789:localhost:18789 openclawThen open http://localhost:18789 β no ports exposed to the public internet!
π¬ Connect Messaging Channels
ssh openclaw
openclaw onboardOr connect directly:
openclaw channels login --channel whatsapp
openclaw channels login --channel telegram
openclaw channels login --channel discordπ Manage Your Cluster
sky stop openclaw # Pause (preserves state)
sky start openclaw # Resume
sky down openclaw # Permanently destroyβ What Isolation Buys You
- π Credentials stay local β SSH keys, cookies, VPN creds never touch the VM
- π₯ Bounded blast radius β Compromise is limited to bare Linux + OpenClaw
- π« No exposed ports β SSH tunnel only, avoiding the 21,000+ exposed instances problem
- π§Ή Real cleanup β
sky downdestroys everything completely - π° Low cost β ~$0.03β0.05/hour, under $30/month 24/7 (vs $599+ Mac Mini)
π― Conclusion
OpenClaw is one of the first AI agents to see real adoption beyond demos. But the security tradeoffs are real β prompt injection is unsolved, vulnerabilities have been exploited in the wild, and the tool requires broad system access.
A cloud VM keeps OpenClaw away from your personal data. Use the SkyPilot YAML to automate it across any cloud.
For more, star the SkyPilot GitHub repo, follow @skypilot_org, or join the SkyPilot Slack.