On this page
On this page
Hosting
macOS VMs
Recommended default (most users)
- Small Linux VPS for an always-on Gateway and low cost. See VPS hosting.
- Dedicated hardware (Mac mini or Linux box) if you want full control and a residential IP for browser automation. Many sites block data center IPs, so local browsing often works better.
- Hybrid: keep the Gateway on a cheap VPS, and connect your Mac as a node when you need browser/UI automation. See Nodes and Gateway remote.
Use a macOS VM only when you specifically need macOS-only capabilities such as iMessage, or want strict isolation from your daily Mac.
macOS VM options
Local VM on your Apple Silicon Mac (Lume)
Run OpenClaw in a sandboxed macOS VM on your existing Apple Silicon Mac using Lume. This gives you:
- Full macOS environment in isolation (your host stays clean)
- iMessage support via
imsg; the default local path is impossible on Linux/Windows - Instant reset by cloning VMs
- No extra hardware or cloud costs
Hosted Mac providers (cloud)
If you want macOS in the cloud, hosted Mac providers work too:
- MacStadium (hosted Macs)
- Other hosted Mac vendors also work; follow their VM + SSH docs
Once you have SSH access to a macOS VM, continue at Install OpenClaw below.
Quick path (Lume, experienced users)
- Install Lume.
lume create openclaw --os macos --ipsw latest- Complete Setup Assistant, enable Remote Login (SSH).
lume run openclaw --no-display- SSH in, install OpenClaw, configure channels.
- Done.
What you need (Lume)
- Apple Silicon Mac (M1/M2/M3/M4)
- macOS Sequoia or later on the host
- ~60 GB free disk space per VM
- ~20 minutes
1) Install Lume
If ~/.local/bin is not in your PATH:
Verify:
Docs: Lume Installation
2) Create the macOS VM
This downloads macOS and creates the VM. A VNC window opens automatically.
3) Complete Setup Assistant
In the VNC window:
- Select language and region.
- Skip Apple ID (or sign in if you want iMessage later).
- Create a user account (remember the username and password).
- Skip all optional features.
After setup completes:
- Enable SSH: System Settings -> General -> Sharing, enable "Remote Login".
- For headless VM use, enable auto-login: System Settings -> Users & Groups, select "Automatically log in as:", and choose the VM user.
4) Get the VM IP address
Look for the IP address (usually 192.168.64.x).
5) SSH into the VM
Replace youruser with the account you created, and the IP with your VM's IP.
6) Install OpenClaw
A fresh macOS VM has no Node.js or npm. Inside the VM, run the installer script. It installs a supported Node runtime when needed, installs OpenClaw, and starts onboarding:
Follow the onboarding prompts to set up your model provider (Anthropic, OpenAI, etc.).
Quick start keeps the Gateway in the foreground of this terminal, but the VM will later run headless, so the Gateway needs to run as a background service. Press Ctrl+C to stop the foreground Gateway, then install the service and verify that it is running:
If the VM already has Node 24.16+ or 26.1+, you can install the
package directly instead. Use the following command on npm 12 or npm 11.16+. On
npm 11.15 and earlier, omit --allow-scripts=openclaw.
7) Configure channels
Keep the Telegram token in the Gateway environment rather than copying it into
openclaw.json. Add TELEGRAM_BOT_TOKEN=<bot-token> to
~/.openclaw/.env, then load it in the current shell and add the channel:
The managed Gateway reads the same state-directory .env after restart. For
WhatsApp, configure your allowlist and then scan the login QR code:
8) Run the VM headlessly
Stop the VM and restart without display:
The VM runs in the background; OpenClaw's daemon keeps the gateway running. To check status:
Bonus: iMessage integration
This is the killer feature of running on macOS. Use iMessage with imsg to add Messages to OpenClaw.
Inside the VM:
- Sign in to Messages.
- Install
imsg. - Grant Full Disk Access and Automation permission for the process running OpenClaw/
imsg. - Verify RPC support with
imsg rpc --help.
Add to your OpenClaw config:
Restart the gateway. Your agent can now send and receive iMessages. Full setup details: iMessage channel.
Save a golden image
Before customizing further, snapshot your clean state:
Reset anytime:
Running 24/7
Keep the VM running by:
- Keeping your Mac plugged in
- Disabling sleep in System Settings -> Energy Saver
- Using
caffeinateif needed
For true always-on, consider a dedicated Mac mini or a small VPS. See VPS hosting.
Troubleshooting
| Problem | Solution |
|---|---|
| Cannot SSH into VM | Check "Remote Login" is enabled in the VM's System Settings |
| VM IP not showing | Wait for VM to fully boot, run lume get openclaw again |
| Lume command not found | Add ~/.local/bin to your PATH |
| WhatsApp QR not scanning | Ensure you are logged into the VM (not host) when running openclaw channels login |
Related docs
- VPS hosting
- Nodes
- Gateway remote
- iMessage channel
- Lume Quickstart
- Lume CLI Reference
- Unattended VM Setup (advanced)
- Docker Sandboxing (alternative isolation approach)