GuidesGuide

The Mac mini AI server: OpenClaw 24/7

Apple Silicon makes the Mac mini a good box for an always-on agent. Here is the setup and where one box stops.

TL;DR

A Mac mini is one of the best home servers for OpenClaw. It draws about 7 watts at idle versus 80-150W for a repurposed PC. Setup is Homebrew, one installer and a launchd service. Its limit: it stays one box.

  • 5-10W idle and about 30W under load. A gaming PC idles at 80-150W.
  • Any Apple Silicon mini works. 16GB RAM minimum, 24GB+ for local models.
  • Install: Homebrew, OpenClaw's installer with its daemon option, a channel linked by QR.
  • Never expose gateway port 18789. Cap spending on provider accounts.
  • One Mac mini, one blast radius: fine for you, wrong for clients.

Why the Mac mini is a credible agent server

The M-series chip handles AI workloads better than its size suggests. Unified memory means CPU and GPU share one RAM pool, which suits model weights and memory-hungry agents.

Power matters for anything running 24/7. A mini pulls 5-10W at idle and around 30W under load. A repurposed gaming PC idles at 80-150W. Over a year, that gap shows on the electric bill.

With silence and a small footprint, the mini is a sensible home for an always-on agent.

The hardware spec that works

OpenClaw is lightweight. Headroom keeps a 24/7 machine boring, which is what you want.

  • Any Apple Silicon Mac mini: M1 minimum, M2 or M4 recommended.
  • 16GB RAM minimum. 24GB or 32GB to run local models alongside.
  • 256GB storage minimum: logs and Docker images accumulate.
  • Ethernet over WiFi: wired is more reliable for a server.
  • Static IP or dynamic DNS only if you need outside access.

Installing OpenClaw on macOS

The install takes about five minutes.

  • Install Homebrew. Add Docker Desktop if you prefer a containerized setup.
  • Easiest path: OpenClaw's npm installer with the daemon option.
  • It handles provider auth, channel config and starts a background service.
  • Alternative: the Docker setup script. The gateway then listens locally on port 18789.
  • Link a channel: the channels login command shows a QR code to scan.

Making it survive reboots

With the installer's daemon option, this is handled. The agent runs as a launchd service and comes back on boot.

Docker installs need a small launchd plist in LaunchAgents that starts the compose stack with KeepAlive.

  • Docker Desktop must start at login before the agent job fires.
  • Headless operation needs auto-login: LaunchAgents need a user session.
  • Enable automatic restart after power failure in energy settings.

Locking it down

An agent that talks to you over messaging channels needs no inbound exposure at all.

  • Never forward port 18789. Check your router forwards nothing to the mini.
  • Enable the macOS application firewall.
  • Turn on automatic macOS security updates.
  • Set monthly spending caps on your Anthropic or OpenAI accounts.

Day-2 operations: logs and the usual failures

Check health with the status command. For Docker, use compose ps and logs. Tail the logs when something feels off.

  • Chat channel sessions expire and need a fresh QR scan.
  • Docker installs can race the Docker daemon after a reboot.
  • Old images eat disk until you prune them.
  • Slow replies usually come from the model provider or network.

What it costs to run

Electricity for a machine idling at 7W is trivial. The real running cost is the model.

Pay-as-you-go API keys are expensive for an always-on agent. Connect your Claude Pro, ChatGPT Plus or Gemini subscription instead. The model cost stays at the $20/month you already pay instead of passing $100 on metered keys.

On pure dollars it is hard to beat. The other currency is your time.

Where the Mac mini stops

For one personal agent this setup is great. The limits appear when the agent stops being personal.

  • One box: power, network or disk failure takes every agent down. No failover.
  • No isolation: shared filesystem and credentials rule out serving separate clients.
  • Manual recovery: no config diagnosis, rollback or workspace restore.
  • Scaling means buying and babysitting another mini per step.
  • Managed hosting: agent ready in 1.1 seconds, crashes caught in under 60 seconds.
  • Self-serve hosting starts at $2.88 a month per agent.

FAQ

The short version.

01

Can a Mac mini really run OpenClaw 24/7?

Yes, comfortably. OpenClaw is lightweight and the mini draws 5-10W at idle, so electricity costs almost nothing. The real work is launchd auto-start, log monitoring and the occasional channel re-pair.

02

Which Mac mini should I buy for an OpenClaw server?

Any Apple Silicon model: M1 is the floor, M2 or M4 recommended. Get 16GB RAM minimum, 24GB+ for local models and at least 256GB storage. Use Ethernet rather than WiFi.

03

Do I need to expose my Mac mini to the internet?

No. The agent connects outward to model providers and messaging channels. Keep port 18789 unforwarded and LAN-only, enable the macOS firewall and the machine has no public surface.

04

Can the Mac mini run local models next to OpenClaw?

Yes. With 24GB or 32GB of unified memory, an M-series mini holds local model weights while the agent runs. That removes API costs where the local model is good enough. With 16GB, stick to a cloud provider.

05

Can I host agents for clients on a Mac mini?

No. One machine means shared fate and no isolation: one client's workload affects every other. One failure takes all of them down. Client agents need per-instance isolation, automatic recovery and failover from a managed platform.

Keep the mini for your own agent. Run client agents on managed OpenClaw hosting.