
OpenClaw turns a computer into a personal AI agent that you can reach from a chat app. You message it from your phone, and it answers, runs tasks and works with your files on the machine where its Gateway lives. That is why so many people run it on a Mac mini: a small, quiet Mac that stays on all day is the natural home for an assistant that should always be there.
Keeping a Mac awake at home is the hard part. It shares your home connection, it goes offline when the power drops, and you have to remember not to unplug it. A Mac mini rented in the cloud solves that: it stays powered on in a datacenter, and the agent keeps running after you close the connection.
This guide walks you through the whole setup on a SoloRack Mac mini M6, from the first login to a locked-down agent you can message from anywhere.
What you need
- A Mac that stays on. Any SoloRack rental works. For an agent that runs around the clock, the monthly plan ($112) is the natural fit. If you just want to try OpenClaw first, a 24-hour pass ($19) or a 7-day pass ($49) gives you the same Mac.
- Node.js. OpenClaw’s Gateway is a Node.js program. Its docs ask for Node 24.16.0 or later on the 24.x line, or 26.1.0 or later, and recommend Node 26. Every SoloRack Mac comes with Node.js already installed for the whole system; step 2 shows the one-time setting that lets you install OpenClaw with it.
- AI access. An existing Claude Code or Codex CLI login, or an API key from a model provider. OpenClaw’s onboarding can reuse any of them.
- A chat app on your phone if you want to talk to the agent away from your computer. The OpenClaw docs call Telegram the fastest channel to set up, because it only needs a bot token.
Running agents like OpenClaw around the clock is explicitly allowed on SoloRack for development and automation work. It’s written in our acceptable use policy.
Step 1: connect to your Mac
When your rental starts, My account shows your Mac’s address and login details. You can reach it two ways:
- Remote desktop, from Windows, macOS or Linux. You see the full macOS desktop, which is handy for the first setup and for the OpenClaw menu bar app.
- SSH, for the terminal, once you add your public SSH key in My account. Everything in this guide works from SSH too.
Your account has full admin rights, so you can install anything the setup needs.
Step 2: install OpenClaw
Open Terminal on the Mac (or your SSH session). Node.js on a SoloRack Mac is installed for the whole system, so first tell npm to put global packages in your home folder. You only do this once:
npm config set prefix ~/.npm-global
echo 'export PATH="$HOME/.npm-global/bin:$PATH"' >> ~/.zshrc
source ~/.zshrc
Then run the official installer:
curl -fsSL https://openclaw.ai/install.sh | bash
The script detects macOS, uses the Node.js already on the Mac, installs OpenClaw and starts the onboarding wizard.
If you prefer to install with npm yourself, the docs describe that too, and the one-time setting above applies here as well. On npm 12, or npm 11.16 and later:
npm install -g openclaw@latest --allow-scripts=openclaw
openclaw onboard --install-daemon
On npm 11.15 and earlier, drop the --allow-scripts=openclaw flag.
Want to try it before installing anything permanent? npx openclaw@latest runs the latest version straight away.
The menu bar app
OpenClaw also ships a macOS menu bar app, OpenClaw.app, with a native chat window, notifications and a Quick Chat shortcut (Option-Space by default). It needs macOS 26.2 or later. You download the Apple Silicon DMG from the OpenClaw releases on GitHub, open it over remote desktop, and on a fresh install it starts a Gateway on the Mac and opens the dashboard for you. The command-line route above is all you need for an always-on agent; the app is a nice extra when you work on the Mac’s desktop.
Step 3: connect your AI
On a fresh install, onboarding offers Quick start. If it finds a Claude Code or Codex CLI login or an API key, it checks it with a real request, saves the configuration and opens the web dashboard. When working AI access is already there, there’s nothing to set up by hand. If nothing it finds works, it opens the manual provider setup. Choose Custom setup instead if you want to walk through every option.
The setup can also use models running on the Mac itself. The macOS app looks for models loaded in Ollama, LM Studio or llama.cpp. With 16 GB of memory on the Mac mini M6, smaller models are the comfortable choice, and a cloud model is the simpler start.
You can come back to these settings any time with openclaw configure.
Step 4: keep the Gateway running
This is the step that makes the agent always on. At the end of Quick start, OpenClaw asks Keep OpenClaw running in the background? Answer yes: it installs the Gateway as a background service that starts by itself.
If you said no, press Ctrl+C to stop the Gateway running in the terminal, then install the service:
openclaw gateway install
openclaw gateway start
If you installed with the --no-onboard flag, run openclaw onboard --install-daemon instead: it sets OpenClaw up and installs the service in one go.
On macOS this installs a LaunchAgent. gateway start waits until the Gateway passes its health checks. Then confirm it’s up:
openclaw gateway status
You should see the Gateway listening on port 18789.
Two habits keep it running on a remote Mac:
- Disconnect, don’t log out. When you finish a remote desktop session, close the window instead of logging out of macOS. Your session stays open, and so does the agent.
- After a restart, nothing to do. If you restart the Mac from My account, it logs you back in automatically and the Gateway starts again with your session. If you change your macOS password, turn automatic login back on with the new one, as the email with your access details explains.
Step 5: open the dashboard
On the Mac, run:
openclaw dashboard
It opens the Control UI in the browser. If it loads, everything works: type a message in the chat and you should get an answer from your AI.
To use the dashboard from your own computer instead, forward the port over SSH. The Gateway stays private on the Mac, and only your SSH connection reaches it. Take the SSH command shown in My account and add the port forward to it, using the port, user and host from that command:
ssh -p <port> -L 18789:127.0.0.1:18789 <user>@<host>
Then open http://127.0.0.1:18789 in your browser. Onboarding creates an access token for the Gateway by default, so the dashboard asks you to authenticate.
Step 6: talk to it from your phone
A chat channel is what makes an always-on agent useful. Telegram is the quickest to set up:
- Create a bot in Telegram and copy its token.
- Add the token in OpenClaw, following the Telegram setup page of the docs.
- Send your bot a message.
By default, OpenClaw answers a direct message from an unknown sender with a pairing code instead of acting on it. You approve your own account once, and strangers who find your bot can’t use your agent. OpenClaw also supports Discord, Slack, Signal, Matrix, Microsoft Teams, Google Chat and more, each with its own setup page.
Step 7: lock it down
OpenClaw’s defaults are conservative. On a normal install the Gateway listens only on the Mac itself (loopback), group chats are allowlisted, and every connection to the Gateway needs authentication. A few habits keep it that way:
- Run the audit.
openclaw security auditchecks your setup and tells you if anything has drifted from the safe defaults. - Keep the Gateway on loopback. Reach it through the SSH tunnel from step 5 instead of opening its port to the internet. The docs say never to expose the Gateway without authentication.
- Mind what the agent reads. Web pages, emails and documents can contain instructions written for your agent. The docs have a page on prompt injection; read it before you give the agent access to email or a browser.
- One owner per Gateway. The docs describe one trust boundary per Gateway. A dedicated Mac makes that easy: it’s yours alone, with no other customer on the same machine.
When something goes wrong
Run:
openclaw triage
It runs read-only health checks and writes a cleaned-up description of what it found, without secrets, tokens or raw logs. It can hand that description to a coding agent on the Mac, such as Claude Code or Codex CLI, so the agent starts with the diagnosis already loaded. To read the findings yourself, use openclaw doctor.
Why a dedicated Mac mini for your agent
- Always on. The Mac stays powered in the datacenter, so the agent answers at 3 a.m. and while your own computer is off.
- Yours alone. One customer per Mac, never a shared virtual machine. Your agent, your files and your logins sit on hardware nobody else uses.
- Full macOS. Your agent works with Apple’s tools for real: it can build and test your Xcode projects, run Shortcuts and AppleScript automations, and use any macOS command-line tool.
- Room to work. Apple M6 with a 12-core CPU, 16 GB of memory, a 256 GB SSD and a 1 Gbit/s link, in the datacenter closest to you.
- Full admin rights. Install Homebrew, extra Node versions, Python packages or anything your agent needs.
Start your always-on agent today
Rent a Mac mini M6 from SoloRack and have OpenClaw running in a few minutes: from $3.73 a day on the monthly plan, $112 a month, VAT included where it applies. The plan renews on its own until you turn renewal off in My account. All plans are on the pricing page.