Guides·Guide

The Mac mini AI server: OpenClaw 24/7

Apple Silicon makes the Mac mini a genuinely good box for an always-on agent. Here is the full setup, and an honest look at where one box stops.

TL;DR

A Mac mini is one of the best home servers for OpenClaw: Apple Silicon's unified memory suits AI workloads, and it draws about 7 watts at idle versus 80-150W for a repurposed PC. Setup is a few tools, one installer and a launchd service. The honest limit is that it stays one box: no failover, no isolation between agents, and every recovery is manual. Great for a personal agent, wrong shape for production fleets.

  • Power draw is the quiet win: 5-10W idle and about 30W under load, versus 80-150W idle for a gaming PC pressed into server duty.
  • Any Apple Silicon mini works; 16GB RAM is the practical minimum, 24GB+ if you want local models next to the agent.
  • Install is straightforward: Homebrew, then OpenClaw's installer with its daemon option, then link a channel by QR code.
  • Security is mostly one rule: never expose the gateway port 18789 to the internet, and cap spending on your provider accounts.
  • One Mac mini equals one blast radius: fine for your own agent, not for agents that clients depend on.

Why the Mac mini is a credible agent server

The Mac mini sits on a desk drawing barely 7 watts at idle, and inside is an M-series chip that handles AI workloads better than its size suggests. Apple Silicon's unified memory architecture means CPU and GPU share one RAM pool, which is exactly what you want when model weights or a memory-hungry agent are involved.

Power consumption matters for anything that runs 24/7. A Mac mini pulls 5-10W at idle and around 30W under load; a repurposed gaming PC idles at 80-150W. Over a year of continuous operation, that gap is real money on the electric bill. Add silence at idle and a small footprint, and the mini is a genuinely sensible home for an always-on agent.

The hardware spec that works

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

  • Any Apple Silicon Mac mini: M1 is the minimum, M2 or M4 recommended.
  • 16GB RAM minimum for a comfortable OpenClaw setup; 24GB or 32GB if you plan to run local models alongside it.
  • 256GB storage minimum: the agent needs little, but logs and Docker images accumulate.
  • Ethernet over WiFi: wired is simply more reliable for a server.
  • A static IP or dynamic DNS only if you need to reach it from outside your network, which most setups do not.

Installing OpenClaw on macOS

With prerequisites in place, the install takes about five minutes. Start with Homebrew, the macOS package manager, and add Docker Desktop if you prefer a containerized deployment, which makes updates and isolation simpler.

The easiest path is OpenClaw's npm installer with the daemon option: it walks you through provider authentication, channel configuration and starts the agent as a background service in one pass. The alternative is the project's Docker setup script, which builds the image and runs the same onboarding, after which the gateway listens locally on port 18789. Finally, link a channel: the channels login command shows a QR code, and scanning it from your chat app on your phone pairs the agent, so messaging your own number gets a response.

Making it survive reboots

A server that needs you after every power cut is not a server. If you used the installer's daemon option, this is already handled: the agent runs as a launchd service and comes back on boot.

Docker installs need a manual launchd job: a small plist in your LaunchAgents folder that starts the compose stack with KeepAlive, so macOS restarts it if it dies. Two gotchas: Docker Desktop must itself start at login before the agent job fires, and truly headless operation needs auto-login enabled, since LaunchAgents only run once a user session exists. For off-site resilience, enable automatic restart after power failure in the energy settings.

Locking it down

The good news: an agent that talks to you over messaging channels needs no inbound exposure at all.

  • Never forward port 18789. The gateway's web interface is for your LAN, not the internet. Verify your router forwards nothing to the mini.
  • Enable the macOS application firewall for defense in depth.
  • Turn on automatic macOS security updates: patches matter on a machine that is always on.
  • Set monthly spending caps on your Anthropic or OpenAI accounts. If the machine or a credential is ever compromised, the cap turns a disaster into an annoyance.

Day-2 operations: logs and the usual failures

Checking health is quick: the status command for daemon installs, or the compose ps and logs commands for Docker. Tail the logs when something feels off, and rotate them to a file if you want history.

The recurring failure modes are predictable. Chat channel sessions expire periodically and need a fresh QR scan, which you will spot as connection errors in the logs. Docker-based installs can race the Docker daemon after a reboot, fixed by starting Docker Desktop at login. Old images accumulate and eat disk until you prune them. And slow responses are almost never the mini: model latency lives with the provider, so a consistently slow agent usually means a provider or network issue.

What it costs to run

The hardware you may already own, and electricity for a machine idling at 7W is trivial. The real running cost is the model. Pay-as-you-go API keys are the expensive path for an always-on agent; if you have a Claude Pro, ChatGPT Plus or Gemini subscription, connect the subscription token instead and the model cost stays flat at the $20/month you already pay instead of climbing past $100 on metered keys.

All in, a Mac mini agent runs on electricity plus your existing subscription. On pure dollars, that is hard to beat, which is exactly why the honest comparison has to count the other currency: your time, covered next.

Where the Mac mini stops

For one personal agent, this setup is genuinely great, and if you enjoy the tinkering, the time is a feature. The limits appear when the agent stops being personal.

A Mac mini is one box. If it loses power, loses network or corrupts a disk, every agent on it is down until a human intervenes, and there is no failover. All agents share one filesystem and one credential store, so there is no real isolation between them, which rules out serving separate clients from one machine. Recovery is manual: the mini will restart a dead process, but it cannot diagnose a corrupted config, roll back a bad update or restore a workspace. And scaling means buying, configuring and babysitting another mini per capacity step. Production platforms exist precisely to solve these four problems: managed OpenClaw hosting gives you provisioning in seconds, self-healing that catches crashes in under 60 seconds, versioned workspaces and per-client isolation, with the mini remaining the right answer for the personal tier.

FAQ

Q.01

Can a Mac mini really run OpenClaw 24/7?

Yes, comfortably. OpenClaw is lightweight, Apple Silicon handles it with ease, and the mini draws 5-10W at idle, so continuous operation costs almost nothing in electricity. The practical work is auto-start via launchd, log monitoring and the occasional channel re-pair, not raw capacity.

Q.02

Which Mac mini should I buy for an OpenClaw server?

Any Apple Silicon model works; M1 is the floor and M2 or M4 are recommended. Get 16GB RAM minimum, or 24GB+ if you want to run local models alongside the agent, and at least 256GB storage for logs and Docker images. Use Ethernet rather than WiFi.

Q.03

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

No, and you should not. The agent connects outward to model providers and messaging channels, so no inbound port is required. Keep the gateway port 18789 unforwarded and LAN-only, enable the macOS firewall, and the machine presents no public surface at all.

Q.04

Can the Mac mini run local models next to OpenClaw?

Yes, that is one of its strengths. Unified memory means an M-series mini with 24GB or 32GB can hold local model weights while the agent runs, removing API costs for workloads the local model can handle. With 16GB, stick to the agent plus a cloud provider.

Q.05

Can I host agents for clients on a Mac mini?

Honestly, no. One machine means shared fate and no isolation between agents: any client's workload can affect every other, and any failure takes all of them down until you intervene. Client-facing agents need per-instance isolation, automatic recovery and failover, which is managed-platform territory, not a single box at home.

Love the mini for your own agent, need production for the rest? See managed OpenClaw hosting.