How to Set Up OpenClaw on a Mac Mini (Safely)

To set up OpenClaw on a Mac Mini, run the official install script, let onboarding install the background service, and then lock it down before you connect a single chat app.

That means keeping the Gateway on loopback with token auth, pairing every sender, and running it under its own macOS account.

Do those and a Mac Mini makes a really good always-on home for it.

Here’s the whole setup, step by step, plus the settings people skip.

What OpenClaw is (and why people put it on a Mac Mini)

OpenClaw is an open-source AI assistant that runs on your own computer and talks to you through the chat apps you already use, like Telegram, WhatsApp, iMessage, Slack and Discord. It’s MIT licensed, with no subscription and no paid version.

You do pay whoever runs the model you plug in, unless you use a local one.

The part that matters for this guide: it can run commands, work with files and message people for you. So it needs a machine that’s on all the time, and ideally one that isn’t holding your whole life.

That’s why the Mac Mini keeps coming up. It’s small and quiet, and it’s fine to leave running 24/7. I run Claude Code agents on a Mac Mini at home for the same reason. It works as my always-on “worker” for scheduled jobs and site work, and I send it tasks from a MacBook when I travel. OpenClaw fits the same pattern.

One catch worth knowing up front. When security researchers found hundreds of malicious OpenClaw skills in February 2026, The Hacker News reported that macOS was a target partly because people were buying Mac Minis to run it around the clock.

A dedicated box is a good idea. It’s also exactly what attackers expect.

What you need before you start

ItemWhat’s requiredNotes
macOS (menu bar app)macOS 26.2 (Tahoe) or laterOnly for OpenClaw.app. The command-line version runs on older macOS through Node
Node.js (CLI and Gateway)24.16.0+ on the 24.x line, or 26.1.0+Node 26 is the recommended runtime. The install script adds Node if it’s missing
A modelAn API key, or an existing Claude Code or Codex CLI loginOnboarding looks for one and asks if it can’t find it
A chat channelTelegram is the suggested start for phone chatFor WhatsApp, use a separate number from your personal one
Mac hardwareApple silicon or IntelThere are Apple Silicon, Intel and Universal app downloads

I didn’t find a RAM or storage minimum in the official docs, so I’m not going to make one up. If you plan to run a local model instead of a hosted one, that’s what drives the hardware, not OpenClaw itself.

Prep the Mac Mini first

Ten minutes here saves you a lot of cleanup later.

  1. Update macOS and turn on FileVault if it isn’t already.
  2. Create a separate standard (non-admin) user just for OpenClaw. OpenClaw’s own security docs say different trust levels belong on separate OS users or separate hosts. A dedicated account keeps the agent away from your personal files and your keychain.
  3. Keep sleep from killing it. Go to System Settings, then Energy, and turn on “Prevent automatic sleeping when the display is off.” Turn on “Wake for network access” if you want to reach it remotely. (Apple’s steps.)
  4. Set up a backup before the agent touches anything. Here’s how to set up Time Machine, and my take on the best cloud backup for Mac if you want an off-site copy too.

Backups are the one habit I won’t skip on my own Mini. Any agent that can edit files can edit the wrong one.

Also keep OpenClaw’s data on the local disk. The docs warn against putting its state in iCloud Drive or other synced folders, since sync delays and file locks can mess with sessions and credentials.

How to install OpenClaw on a Mac Mini

Log in as the OpenClaw user you just made, open Terminal and work through these.

Step 1: Run the install script

This is the recommended route. It detects your OS, installs Node if needed, installs OpenClaw and starts onboarding.

curl -fsSL https://openclaw.ai/install.sh | bash

Want to look around before onboarding runs? Add the no-onboard flag:

curl -fsSL https://openclaw.ai/install.sh | bash -s -- --no-onboard

If you already manage Node yourself (Homebrew’s brew install node works), you can use npm instead. On npm 12 or 11.16+:

npm install -g openclaw@latest --allow-scripts=openclaw

On npm 11.15 and earlier, drop the --allow-scripts=openclaw part. Prefer a regular Mac app? There’s also an OpenClaw .dmg on the project’s GitHub releases page.

Step 2: Onboard and install the background service

openclaw onboard --install-daemon

Onboarding checks for model access first. Quick start reuses an existing Claude Code or Codex CLI login or API key if it finds one. When it asks “Keep OpenClaw running in the background?”, say yes. On a Mac that installs a LaunchAgent, so launchd restarts the Gateway if it stops and starts it when you log in.

If you made a separate user, know this: a LaunchAgent only runs while that user is logged in. After a restart or a power cut, log back in to the OpenClaw account. You can switch back to your own account after that and it keeps running.

Step 3: Check that it’s healthy

openclaw --version
openclaw doctor
openclaw gateway status

The status should show the Gateway listening on port 18789.

Step 4: Open the dashboard and say hi

openclaw dashboard

That opens the Control UI in your browser. Type a message in the chat box and you should get a reply.

If you get one, your model connection works.

Step 5: Run the security audit before adding channels

openclaw security audit

Fix what it flags now, while nothing outside the Mac can reach the agent. Adding --fix applies the safe repairs (tighter file permissions, open group policies switched to allowlists). It won’t rotate keys or change your network settings, so those stay on you.

Step 6: Connect one chat app and approve yourself

Start with one channel. By default, chat channels answer unknown senders with a pairing code instead of acting on the message. You approve the code on the Mac:

openclaw pairing approve <channel> <code>

Approve yourself and nobody else.

For WhatsApp, the docs say to always set channels.whatsapp.allowFrom and to use a dedicated number, so your personal chats never become agent input.

The settings that keep a Mac Mini setup safe

This is the short version. The full breakdown, with the real incidents behind each one, is in my OpenClaw security guide.

SettingWhereSet it to
Gateway bindgateway.bind"loopback" (the default on a regular Mac install)
Gateway authgateway.auth.mode"token"
Who can DM itchannel dmPolicy"pairing" or an allowlist, never open
File accesstools.fs.workspaceOnlytrue
Running outside the sandboxtools.elevated.enabledfalse unless you really need it
LAN discoverydiscovery.mdns.mode"off" or "minimal"

Your config lives at ~/.openclaw/openclaw.json, and the agent’s working folder defaults to ~/.openclaw/workspace. The docs suggest making that workspace a private git repo so its memory files are backed up, and new workspaces get git init automatically if git is installed.

macOS permissions: grant only what you’ll use

The menu bar app can ask for Accessibility, Screen Recording, Camera, Location, Local Network and folder access. You don’t need any of them to get started.

Turn on the OpenClaw feature you actually want first, then grant the matching permission, and skip the rest.

Two specifics from the docs are worth copying. Don’t grant Accessibility to node, because any script that runs through Node could inherit it. Give it to the signed OpenClaw.app instead. And leave “Keep computer awake” off unless the Mini really has to stay awake between jobs (the Energy setting above usually covers it).

Reaching your Mac Mini from your laptop or phone

Your phone already reaches it through the chat app, so most people don’t need anything else. If you want the dashboard from another machine, use Tailscale Serve. It keeps the Gateway on loopback and lets Tailscale handle who gets in.

What you shouldn’t do is forward port 18789 on your router or bind the Gateway to 0.0.0.0. In February 2026, SecurityScorecard counted 40,214 OpenClaw instances exposed online, with 12,812 of them open to remote code execution. Don’t be number 40,215.

Logs, restarts and updates

The LaunchAgent is labeled ai.openclaw.gateway and its log is at ~/Library/Logs/openclaw/gateway.log. These are the commands you’ll actually use:

openclaw gateway status --deep
openclaw gateway restart
openclaw health
tail -f ~/Library/Logs/openclaw/gateway.log

Keep it updated. A one-click bug that let a malicious link steal the Gateway token (CVE-2026-25253) was fixed in version 2026.1.29, and it worked even on loopback-only installs.

Old versions are the easiest ones to break into, so run updates.

Go slow on skills

Skills are add-ons that teach OpenClaw new tricks, and ClawHub is where most of them live. They’re also the riskiest thing you’ll install. Koi Security’s February 2026 audit found 341 malicious skills out of 2,857, most pushing a Mac password stealer through a fake “Prerequisites” step that asked you to paste a command into Terminal.

So read a skill’s files before you install it and never paste a “setup” command a skill tells you to run. Stick to publishers you trust at first. ClawHub now scans uploads with VirusTotal, but OpenClaw itself calls that “not a silver bullet.” Those 341 malicious skills are the reason I’d treat every skill as untrusted until you’ve read it.

FAQ

Is OpenClaw free?

The software is. It’s MIT licensed with no paid edition. The model is the part that costs money, whether that’s an API key or a subscription you already have.

Do I need a Mac Mini to run OpenClaw?

No. It runs on macOS, Linux and Windows. A Mac Mini is just a quiet way to keep it on all the time without putting it on the laptop you use every day.

Can I run it on an older version of macOS?

The menu bar app needs macOS 26.2 or later. The command-line Gateway runs on Node, and the official Node 24 and 26 Mac builds target macOS 13.5 or later.

Should I connect my real email and accounts?

Not on day one. Get it running with one chat app and tight tool settings. Live with it for a while, then add accounts one at a time. Email is where prompt injection shows up most, so it should be one of the last things you connect. My AI agent security guide covers how to think about that for a business.

Want this done for you?

I run AI agents on my own Mac Mini, and I’m putting together a done-for-you setup for people who’d rather not spend a weekend on it. Join the waitlist and I’ll email you when spots open.

    No spam. One email when spots open.

    Running a business and want AI doing more of your marketing? See AI consulting.

    Brian Meiggs
    Brian Meiggs
    Brian Meiggs is the founder of MeiggsMedia, a digital publishing and performance marketing company. He has spent over a decade helping readers take control of their money, and personally signs up for and cashes out from the apps and financial products his sites cover, then writes up what actually paid. He was named to the Northern Virginia 40 Under 40 in 2026. His work has been featured in the Wall Street Journal, Business Insider, Entrepreneur, and Yahoo Finance.
    Tuesday, November 24, 2026

    SHARE

    Like the article? Share it with friends on your favorite platform.

    MEIGGSMEDIA

    -Advertisement-

    Related

    OpenClaw Security: The Real Risks and How to Lock It Down

    What has actually gone wrong with OpenClaw so far, and the exact settings, audit commands and habits that lock it down.

    Backblaze Review (2026): Worth It for Your Mac?

    Backblaze is worth it for most Mac owners, as long as you turn on the free one-year version history. Here's what it does well, where it falls short, and how it fits a Mac that runs AI agents.

    Best Cloud Backup for Mac (2026): What I’d Pick for a Mac That Runs AI Agents

    Backblaze is the best cloud backup for most Macs. Here's how it stacks up against IDrive, Arq, Carbonite and iCloud+, and what changes when your Mac runs AI agents.