Set up OpenClaw on Mac Mini as always-on AI server — hardware recommendations, macOS config, Docker Desktop, launchd auto-start, Tailscale remote access, and cost comparison vs VPS. Use when deploying OpenClaw on Mac Mini for 24/7 personal AI.
Install with Codex or Claude Copy this prompt, paste it into Codex, Claude, or another assistant, and let it review the skill page and install it for you.
A direct command skips the review prompt. Inspect the source before running it.
Set up OpenClaw on Mac Mini as always-on AI server — hardware recommendations, macOS config, Docker Desktop, launchd auto-start, Tailscale remote access, and cost comparison vs VPS. Use when deploying OpenClaw on Mac Mini for 24/7 personal AI.
homepage
https://www.agxntsix.ai
🖥️ Mac Mini Server
Complete guide to running OpenClaw on a Mac Mini as an always-on AI server. From hardware selection to monitoring.
1. Hardware Recommendations
Mac Mini M4 (2024) — $499 base
Spec
Base
Upgraded
CPU
10-core
10-core
GPU
10-core
10-core
RAM
16GB
32GB (+$200)
Storage
256GB
512GB (+$200)
Best for: Personal assistant, small team, cloud API-only usage.
Recommendation: Upgrade to 32GB RAM ($699 total) — worth it for Docker overhead + future local models.
Mac Mini M4 Pro — $1,399 base
Spec
Base
Upgraded
CPU
12-core
14-core
GPU
16-core
20-core
RAM
24GB
48GB (+$200) / 64GB (+$400)
Storage
512GB
1TB (+$200)
Best for: Local model inference (Ollama), multiple clients, heavy workloads.
Recommendation: 48GB RAM ($1,599) for running 7B-13B models locally alongside OpenClaw.
Which One?
Use Case
Pick
Why
Cloud APIs only (Claude, GPT)
M4 32GB
Plenty of power, great value
Local + cloud hybrid
M4 Pro 48GB
Run Ollama + OpenClaw together
Multi-client server
M4 Pro 64GB
Headroom for multiple agents
Budget-conscious
M4 16GB
Works fine for single user
2. macOS Initial Setup
Disable Sleep & Energy Settings
# Prevent sleep entirelysudo pmset -a sleep 0
sudo pmset -a disksleep 0
sudo pmset -a displaysleep 0
# Restart after power failuresudo pmset -a autorestart 1
# Disable hibernationsudo pmset -a hibernatemode 0
# Verify settings
pmset -g
System Settings UI path: System Settings → Energy → set all to Never.
Enable Auto-Login
System Settings → Users & Groups → Automatic Login → select your user
System Settings → Lock Screen → disable "Require password"
⚠️ Only do this on a physically secure machine. The Mac Mini should be in a locked location.
# Replace YOUR_USER with actual username
sed -i ''"s/YOUR_USER/$(whoami)/g" ~/Library/LaunchAgents/com.openclaw.gateway.plist
# Load the service
launchctl load ~/Library/LaunchAgents/com.openclaw.gateway.plist
# Verify
launchctl list | grep openclaw
6. Tailscale for Remote Access
# Install (already done via brew)
brew install --cask tailscale
# Or use CLI version
brew install tailscale
# Start and authenticatesudo tailscale up
# Get your Tailscale IP
tailscale ip -4
# Enable Tailscale Serve for HTTPS
tailscale serve https / http://127.0.0.1:3000
Access from Anywhere
SSH: ssh user@100.x.x.x
OpenClaw: https://mac-mini.tail-xxxxx.ts.net
No port forwarding needed
End-to-end encrypted
Tailscale ACLs (recommended)
In the Tailscale admin console, restrict who can access the Mac Mini:
A UPS prevents data corruption during power outages and gives time for graceful shutdown.
Model
Capacity
Runtime
Price
Best For
APC BE425M
425VA
~15min
$55
Budget, Mac Mini only
CyberPower CP685AVRG
685VA
~20min
$80
Mac Mini + router
APC BR700G
700VA
~25min
$120
Mac Mini + monitor + router
CyberPower CP1500PFCLCD
1500VA
~45min
$220
Full setup with margin
Recommendation: CyberPower CP685AVRG — enough for Mac Mini + router, good price-to-runtime ratio.
Auto-Shutdown on Power Loss
# macOS reads UPS status via USB automatically# Configure in System Settings → Energy → UPS# Set: "Shut down after using UPS battery for: 10 minutes"
10. Monitoring and Alerts
Basic Health Check Script
Save as ~/{baseDir}/scripts/health_check.sh:
#!/bin/bash# Check if OpenClaw container is runningif ! docker ps | grep -q openclaw-gateway; thenecho"$(date): OpenClaw container not running! Restarting..." >> /tmp/openclaw-monitor.log
cd ~/openclaw && docker compose up -d
# Send alert via Telegram (if bot is available on host)
curl -s "https://api.telegram.org/botYOUR_TOKEN/sendMessage" \
-d "chat_id=YOUR_ID&text=⚠️ OpenClaw was down. Auto-restarted."fi
TL;DR: Mac Mini wins if you want local model capability or plan to run 2+ years. VPS wins for simplicity and no upfront cost. Cloud is for enterprises with compliance needs.