Mac Mini M4 Setup
Gateway on macOS (Mac Mini M4)
Section titled “Gateway on macOS (Mac Mini M4)”OpenClaw is optimized for Apple Silicon (M1/M2/M3/M4). Running on a dedicated Mac Mini is the recommended setup for a 24/7 personal assistant.
Hardware Requirements
Section titled “Hardware Requirements”Install the CLI (required)
Section titled “Install the CLI (required)”You need Node 22+ on the Mac, then install openclaw globally:
Install Node.js Ensure you have Node.js 22 or higher installed.
Install OpenClaw CLI
Terminal window npm install -g openclaw@latest
Launchd (Gateway as LaunchAgent)
Section titled “Launchd (Gateway as LaunchAgent)”The best way to keep OpenClaw running is using launchd. The CLI can set this up for you automatically during onboarding.
openclaw onboard --install-daemonThis will:
- Create a
bot.molt.gateway.plistin~/Library/LaunchAgents/. - Load the service immediately.
- Ensure it restarts automatically on reboot.
Logging
Section titled “Logging”If you need to check logs:
- launchd stdout/err:
/tmp/openclaw/openclaw-gateway.log
Smoke check
Section titled “Smoke check”Verify your installation:
openclaw --version
# Test gateway health (if running)openclaw gateway call health --url ws://127.0.0.1:18789 --timeout 3000