...
Back

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

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, .env files, 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

VulnerabilityImpact
CVE-2026-25253Unauthenticated WebSocket extraction of auth tokens
21,000+ exposed instancesPublicly accessible gateways on the open internet
Moltbook database leakAnyone could take control of any agent
Supply chain attacksAbandoned package names hijacked for malicious updates

The OpenClaw maintainers themselves acknowledge: "There is no 'perfectly secure' setup."


πŸ—οΈ Your Isolation Options

OptionProsCons
DockerEasy setup, partial isolationStill on your machine, Docker escape risk
Dedicated HardwareFull physical isolationExpensive ($599+ Mac Mini), maintenance burden
Cloud VM ⭐Strongest isolation, cheapest to startRequires 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 check

Step 2: Launch OpenClaw

sky launch -c openclaw openclaw.yaml --env ANTHROPIC_API_KEY

SkyPilot provisions a VM, installs OpenClaw, generates an auth token, and starts the gateway.

Step 3: Access via SSH Tunnel

ssh -L 18789:localhost:18789 openclaw

Then open http://localhost:18789 β€” no ports exposed to the public internet!


πŸ’¬ Connect Messaging Channels

ssh openclaw
openclaw onboard

Or 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 down destroys 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.