You want an AI agent that answers you at 7am on a Saturday, runs your Friday report while your laptop is closed, and does not die every time you shut the lid. That is why so many people put OpenClaw on a Mac mini.
The short answer: give the Mac mini its own user account, stop it from sleeping, turn on automatic login and Remote Login, install OpenClaw as a background service, then reach it from your laptop or phone over Tailscale. Restart it once to prove it comes back on its own. Plan on about an hour.
No password needed – your reset opens instantly.
No password. Just your email, and you’re in.
Want short, practical AI lessons like this one? Join Launchpad free, right above.
Why put OpenClaw on a Mac mini at all?
OpenClaw has one part that has to stay awake: the Gateway. It holds your settings, your chats and your connections to Telegram, WhatsApp or Slack. If it runs on your laptop, your agent sleeps when your laptop sleeps.
OpenClaw’s own docs give three ways to keep it on all the time (OpenClaw docs: macOS VMs):
- A small Linux server (VPS). Cheap and always on.
- Dedicated hardware, like a Mac mini. Full control, and a home internet address. The docs point out that many sites block data center addresses, so browser jobs often work better from home.
- A mix. The Gateway on a server, your Mac connected as a helper when a job needs a real screen.
The Mac mini wins when you want three things: macOS-only features such as iMessage, browser jobs that do not get blocked, and a box you own instead of rent. If none of those matter to you, a VPS is the simpler choice. That is an honest trade, not a sales pitch.
Still deciding which model to buy? Our guide to OpenClaw Mac mini specs covers how much memory, chip and storage you really need, so you do not overspend.
Before you start: give the agent its own account
This is the step most people skip, and it is the one that keeps your personal life out of the agent’s reach.
OpenClaw is built as a personal agent for one trusted person. Its security guide works from the idea of one trust boundary per Gateway (OpenClaw docs: Security). On a Mac mini that means:
- Create a separate macOS user for OpenClaw, for example “agent”. Do not run it in the account where your photos, passwords and work files live.
- If you plan to use iMessage, sign that user in with its own Apple Account. The docs describe exactly this setup, a dedicated macOS user with a dedicated Apple ID, so bot messages stay apart from your personal Messages (OpenClaw docs: iMessage deployment patterns).
- Only give it the files it needs. Put those in its workspace folder,
~/.openclaw/workspace, instead of pointing it at your whole drive.
Step 1: Set up macOS so the Mac mini never goes dark
A Mac mini that sleeps is just a quiet laptop. Do these four things while you still have a screen and keyboard plugged in.
Stop it from sleeping
Open System Settings > Energy. Turn on Prevent automatic sleeping when the display is off. If you see Wake for network access, turn that on too. Apple notes that keeping a Mac awake can use more power, which on a Mac mini is the whole point (Apple: Set sleep and wake settings).
Log in automatically after a restart
The OpenClaw Gateway runs as a LaunchAgent, a macOS background service that starts when a user logs in. No login after a restart means no agent. So go to System Settings > Users & Groups and set Automatically log in as to the agent account. OpenClaw’s docs give the same advice for headless Macs (OpenClaw docs: macOS VMs).
One catch: if FileVault is on, macOS does not allow automatic login (Apple: Log in automatically to a Mac user account). That is a real choice. FileVault encrypts the disk, which matters if the Mac mini could be stolen. Without it, you get a box that recovers from a restart on its own. Pick based on where the machine sits. A locked home office is a different risk from an open shop floor.
Turn on Remote Login (SSH)
Go to System Settings > General > Sharing and turn on Remote Login. Now you can type commands on the Mac mini from your laptop (Apple: Allow a remote computer to access your Mac). Under the small info button, allow only the agent account and your own.
Turn on Screen Sharing
Same Sharing screen, turn on Screen Sharing (Apple: Turn screen sharing on or off). You will need it. Some macOS permission prompts only appear on screen, and the docs warn that the first run of some features asks for approvals in that user’s desktop session. With Screen Sharing on, you click “Allow” from your laptop instead of digging out a monitor.
Step 2: Install OpenClaw as a background service
Log in to the agent account. The install itself is the same as on any Mac, and we cover it step by step in how to install OpenClaw on Mac. Here is what is different on a Mac mini that has to run on its own.
Terminal route (best for a Mac mini). Paste the installer:
curl -fsSL https://openclaw.ai/install.sh | bash
It installs Node if needed, installs OpenClaw and starts the setup. Quick start keeps the Gateway running inside that Terminal window. On a machine nobody sits at, that is not good enough. Press Control-C, then run:
openclaw gateway install openclaw gateway status
That creates the LaunchAgent. The docs say launchd then starts the Gateway at login, restarts it after a crash and keeps one predictable log (OpenClaw docs: Gateway on macOS).
App route. If the Mac mini runs macOS 26.2 or later and you prefer the menu bar app, that works too. But change one setting: in the dashboard’s device settings, turn on Keep OpenClaw running when the app is closed, next to Launch at login. It is off by default, so without it the agent stops when the app quits.
Connect your AI model during setup. OpenClaw itself is free; the model behind it is what you pay for, through a ChatGPT or Claude login or an API key.
Step 3: Reach your Mac mini from your laptop and phone
The Gateway listens on port 18789, and by default only on the Mac mini itself (OpenClaw docs: Remote access). Leave it that way. Do not open that port on your router.
The calm way to reach it from anywhere is Tailscale, a free private network between your own devices. Install it on the Mac mini and your laptop, then tell OpenClaw to use Tailscale Serve. The Gateway stays private on the Mac mini, and Tailscale gives you an HTTPS address that only your own devices can open (OpenClaw docs: Tailscale):
openclaw gateway --tailscale serve
Skip Funnel mode unless you know why you need it. Funnel puts the dashboard on the public internet behind a password.
On your laptop, the OpenClaw Mac app can act as a remote control for the Mac mini. Choose Connect to an existing Gateway on first launch, or add it later under Connection. It connects directly over Tailscale or opens an SSH tunnel for you (OpenClaw docs: Remote control).
On your phone, the quickest channel is Telegram. New people who message your bot get a pairing code, and nothing they send runs until you approve them (OpenClaw docs: Pairing). That is what you want on an agent that is online all day.
Step 4: Prove it survives a restart
Most “always-on” setups fail the first time the power blips. Test it now, while you are paying attention.
- Restart the Mac mini from the Apple menu.
- Do not touch it. From your laptop, wait a couple of minutes, then SSH in and run
openclaw gateway status. You want to see the Gateway listening on port 18789. - Send your agent a message from your phone. If it answers, the chain works: power on, auto-login, LaunchAgent, Gateway, model.
- Run
openclaw security audit. It flags settings that drifted away from the safe defaults (OpenClaw docs: Security). Fix what it finds before you add more channels.
If step 2 fails, it is almost always auto-login. Check that FileVault is off and that the agent account, not yours, is the one set to log in.
What to give your Mac mini agent first
A box that runs all night is only worth it if it does real work. Start with one job you repeat every week and that does not need you in the room:
- A Monday morning brief. “Every Monday at 7, read the notes in my workspace folder from last week and send me five bullet points on Telegram.”
- An inbox sorter. Have it sort incoming requests into “needs me”, “can wait” and “info only”, and send you only the first group.
- A browser check from home. Because the Mac mini uses your home connection, it can open sites that often block server addresses, like checking a supplier’s page for a price change.
Keep the first job small. Watch it run for a week. Then give it the second one. That is how you end up with an agent you trust, instead of one you babysit.
No password needed – your reset opens instantly.
No password. Just your email, and you’re in.
Quick answers
Do I need a monitor on the Mac mini?
Only for the first setup. After that, Remote Login and Screen Sharing let you do everything from your laptop, including clicking “Allow” on permission prompts.
Mac mini or VPS for OpenClaw?
A VPS is cheaper to start and has nothing to plug in. A Mac mini gives you iMessage, a home internet address for browser jobs, and hardware you own. OpenClaw’s docs list both as good defaults, so pick by the jobs you want it to do.
Can the Mac mini run the AI model itself?
It can, through tools like Ollama or LM Studio, and OpenClaw can pick up a model that is already loaded there. A cloud model is still the easier start. See the local model part of our OpenClaw Mac install guide before you decide.
Should I use my work Mac mini?
Ask first. A machine your company manages may block automatic login or SSH, and an agent with access to work files is something your IT team will want to know about.
Is OpenClaw the right tool for this?
If you want an agent you message from your phone that runs on your own hardware, yes. If you mostly want help writing code at your desk, read OpenClaw vs Claude Code first. On Windows instead? Here is how to install OpenClaw on Windows.
Sources
Every step above comes from OpenClaw’s own documentation and Apple’s support pages:
- OpenClaw docs: macOS VMs (always-on options, auto-login, running 24/7)
- OpenClaw docs: Gateway on macOS (LaunchAgent)
- OpenClaw docs: Remote access
- OpenClaw docs: Tailscale
- OpenClaw docs: Remote control from the Mac app
- OpenClaw docs: iMessage deployment patterns
- OpenClaw docs: Security
- Apple: Set sleep and wake settings for your Mac
- Apple: How to log in automatically to a Mac user account
- Apple: Allow a remote computer to access your Mac
- Apple: Turn Mac screen sharing on or off