Skip to content

macOS VMs

  • 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 when you specifically need macOS-only capabilities (iMessage/BlueBubbles) or want strict isolation from your daily Mac.

Run CoderClaw 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 BlueBubbles (impossible on Linux/Windows)
  • Instant reset by cloning VMs
  • No extra hardware or cloud costs

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 step 6 below.


  1. Install Lume
  2. lume create coderclaw --os macos --ipsw latest
  3. Complete Setup Assistant, enable Remote Login (SSH)
  4. lume run coderclaw --no-display
  5. SSH in, install CoderClaw, configure channels
  6. Done

  • Apple Silicon Mac (M1/M2/M3/M4)
  • macOS Sequoia or later on the host
  • ~60 GB free disk space per VM
  • ~20 minutes

Terminal window
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/trycua/cua/main/libs/lume/scripts/install.sh)"

If ~/.local/bin isn’t in your PATH:

Terminal window
echo 'export PATH="$PATH:$HOME/.local/bin"' >> ~/.zshrc && source ~/.zshrc

Verify:

Terminal window
lume --version

Docs: Lume Installation


Terminal window
lume create coderclaw --os macos --ipsw latest

This downloads macOS and creates the VM. A VNC window opens automatically.

Note: The download can take a while depending on your connection.


In the VNC window:

  1. Select language and region
  2. Skip Apple ID (or sign in if you want iMessage later)
  3. Create a user account (remember the username and password)
  4. Skip all optional features

After setup completes, enable SSH:

  1. Open System Settings → General → Sharing
  2. Enable “Remote Login”

Terminal window
lume get coderclaw

Look for the IP address (usually 192.168.64.x).


Terminal window
ssh youruser@192.168.64.X

Replace youruser with the account you created, and the IP with your VM’s IP.


Inside the VM:

Terminal window
npm install -g coderclaw@latest
coderclaw onboard --install-daemon

Follow the onboarding prompts to set up your model provider (Anthropic, OpenAI, etc.).


Edit the config file:

Terminal window
nano ~/.coderclaw/coderclaw.json

Add your channels:

{
"channels": {
"whatsapp": {
"dmPolicy": "allowlist",
"allowFrom": ["+15551234567"]
},
"telegram": {
"botToken": "YOUR_BOT_TOKEN"
}
}
}

Then login to WhatsApp (scan QR):

Terminal window
coderclaw channels login

Stop the VM and restart without display:

Terminal window
lume stop coderclaw
lume run coderclaw --no-display

The VM runs in the background. CoderClaw’s daemon keeps the gateway running.

To check status:

Terminal window
ssh youruser@192.168.64.X "coderclaw status"

This is the killer feature of running on macOS. Use BlueBubbles to add iMessage to CoderClaw.

Inside the VM:

  1. Download BlueBubbles from bluebubbles.app
  2. Sign in with your Apple ID
  3. Enable the Web API and set a password
  4. Point BlueBubbles webhooks at your gateway (example: https://your-gateway-host:3000/bluebubbles-webhook?password=<password>)

Add to your CoderClaw config:

{
"channels": {
"bluebubbles": {
"serverUrl": "http://localhost:1234",
"password": "your-api-password",
"webhookPath": "/bluebubbles-webhook"
}
}
}

Restart the gateway. Now your agent can send and receive iMessages.

Full setup details: BlueBubbles channel


Before customizing further, snapshot your clean state:

Terminal window
lume stop coderclaw
lume clone coderclaw coderclaw-golden

Reset anytime:

Terminal window
lume stop coderclaw && lume delete coderclaw
lume clone coderclaw-golden coderclaw
lume run coderclaw --no-display

Keep the VM running by:

  • Keeping your Mac plugged in
  • Disabling sleep in System Settings → Energy Saver
  • Using caffeinate if needed

For true always-on, consider a dedicated Mac mini or a small VPS. See VPS hosting.


ProblemSolution
Can’t SSH into VMCheck “Remote Login” is enabled in VM’s System Settings
VM IP not showingWait for VM to fully boot, run lume get coderclaw again
Lume command not foundAdd ~/.local/bin to your PATH
WhatsApp QR not scanningEnsure you’re logged into the VM (not host) when running coderclaw channels login