Security Run In Vm

Maximum Isolation with VMs

For the highest level of security isolation, run OpenClaw inside a dedicated virtual machine. This provides hardware-level separation between the AI agent and your host operating system, ensuring that even a complete sandbox escape cannot compromise your primary system.

Recommended VM Configurations

Use CaseRAMCPUDisk
Basic agent tasks4 GB2 cores20 GB
Development workflows8 GB4 cores50 GB
Production + local LLM16 GB+8 cores100 GB

Setup with VirtualBox

  1. Create a new VM with Ubuntu Server 24.04 LTS
  2. Allocate resources based on the table above
  3. Install Node.js 22+ inside the VM
  4. Install OpenClaw using the standard installation method
  5. Configure port forwarding to access the dashboard from your host (host 3000 → guest 3000)
  6. Take a snapshot of the clean installation for easy rollback

VM-Specific Security Tips

Prompt Guardian
Protect your AI agent from prompt injection and malicious commands.
Explore Prompt Guardian →