← Back to blog

How to Install OpenClaw on Mac

| Weihao Ming

The r/openclaw subreddit has a recurring thread that shows up every couple weeks: “which Mac Mini should I buy for OpenClaw?” And the answers are always a mix of enthusiastic recommendations and people gently pointing out that you might not need dedicated hardware at all. Both camps have a point.

Installing with Homebrew and npm

If you already have a Mac, the install takes about five minutes.

brew install node
npm install -g openclaw
openclaw init

The init wizard asks for your AI API key and Telegram bot token. Once configured, run openclaw start. Your agent is live.

But this only works while your Mac is awake and the process is running. Close the lid, and the agent goes offline. For a laptop, that makes this useful for testing but not much else.

Docker Desktop method

For something more persistent, Docker Desktop is the better path.

brew install --cask docker

Open Docker Desktop, let it finish initializing, then:

docker pull openclaw/openclaw:latest
docker run -d --restart unless-stopped \
  -e ANTHROPIC_API_KEY=your_key \
  -e TELEGRAM_BOT_TOKEN=your_bot_token \
  openclaw/openclaw:latest

Docker handles restarts if the process crashes. Combined with macOS set to auto-login after power outages and Docker Desktop configured to launch at startup, this gets you most of the way to a reliable always-on setup.

Do you actually need a Mac Mini?

The M4 Mac Mini at $699 has become the default recommendation in OpenClaw communities. And I get why: it is small, quiet, energy-efficient, and powerful enough to run the agent plus its Chromium browser without breaking a sweat.

But the honest answer is that OpenClaw does not need much compute. The heavy lifting happens on the AI provider’s servers (Anthropic, OpenAI). Your local machine runs the browser and the orchestration layer, which a $5/month VPS can handle perfectly fine.

So the Mac Mini makes sense if you want a home server for other things too, or if you strongly prefer keeping everything on hardware you physically control. It does not make sense if you are buying one solely for OpenClaw and do not plan to use it for anything else, because a VPS or a managed service will cost less over time.

Things to watch out for

macOS has some quirks that trip people up. Energy Saver settings need to be configured so the machine never sleeps. Automatic macOS updates can restart the machine without warning, so either disable them or check on your agent after update days. And if you are running this on a MacBook instead of a Mini, the battery will degrade fast if it stays plugged in at 100% constantly. Apple’s battery management helps, but it is not designed for server workloads.

The networking side also needs attention. Telegram webhooks require HTTPS, which means either setting up a reverse proxy with a domain and SSL cert, or using a tunnel service like Cloudflare Tunnel or ngrok. The tunnel approach is easier but adds a dependency.

If all of this sounds like more maintenance than you want, managed services exist for a reason. OpenClaw Cloud runs your agent on isolated infrastructure and you interact through Telegram directly, no Mac Mini required. Waitlist is here.

← Back to blog