Is OpenClaw safe to run on a Mac mini?
OpenClaw's safety on a Mac mini depends mostly on how you set it up. The project's security policy recommends keeping its Gateway reachable only from the Mac itself, and it treats anyone who authenticates to the Gateway as a trusted operator. Keep it local, run the built-in audit, and lock the Mac it lives on.
Quick answer
OpenClaw's security policy says to keep the Gateway loopback-only, on 127.0.0.1, with no direct bind to 0.0.0.0 and no public reverse proxy. For remote access it prefers an SSH tunnel or Tailscale. Run openclaw security audit after any config change, install only plugins you trust, and require a password on the Mac.
What does OpenClaw's security model assume?
It assumes one trusted person. OpenClaw's SECURITY.md describes its model as "personal assistant", meaning one trusted operator who may run many agents. It says the project doesn't model one Gateway as a boundary between users who distrust each other, so don't share one Gateway with people you wouldn't trust with the whole setup.
The same document spells out three things worth knowing before you install it:
- Authenticated Gateway callers are treated as trusted operators for that Gateway.
- Anyone who can modify the
~/.openclawstate or config is "effectively a trusted operator". - Commands run on the host by default. The policy says sandbox mode defaults to off, and that if you need isolation you should turn it on (
non-mainorall) and keep a strict tool policy.
It also says the model or agent "is not a trusted principal", and to assume injected content can manipulate how it behaves. Prompt injection on its own is out of scope for vulnerability reports unless it crosses a policy, auth or sandbox boundary.
How do I stop OpenClaw being reachable from the internet?
Leave the Gateway on loopback. OpenClaw's security docs say that on a regular host install the Gateway binds to loopback already. SECURITY.md says not to expose it to the public internet, with no direct bind to 0.0.0.0 and no public reverse proxy. Container images are the documented exception: they default to an exposed bind, so pair them with auth.
If you need to reach it from elsewhere, the policy and the project's exposure runbook give these routes:
- SSH tunnel: keep
gateway.bind: "loopback"and tunnel127.0.0.1:18789. - Tailscale: the policy lists Tailscale Serve or Funnel as a way to keep the Gateway bound to loopback.
- A non-loopback bind: the runbook expects Gateway auth, a firewall allowlist and no public port-forward together.
The runbook also says to avoid direct public port-forwarding to the Gateway. For the Mac side of this, see whether to have the Mac firewall on or off and how someone could remotely access a Mac.
What does openclaw security audit check?
It checks your setup for drift from safe defaults. The docs say to run it after any config change or before exposing network surfaces. It looks at who can trigger the bot through direct messages and groups, Gateway bind and auth, Tailscale exposure, weak tokens and passwords, remote browser control, file permissions, and plugins loading without an allowlist.
The commands are:
openclaw security auditfor the standard check.openclaw security audit --deep, which attempts a live Gateway check.openclaw security audit --fix, which the docs call intentionally narrow: it turns open group policies into allowlists and tightens state and config file permissions.
The docs say to fix open access combined with enabled tools first, then public network exposure.
Are OpenClaw plugins safe?
Treat each one as code running on your Mac. SECURITY.md says installing or enabling a plugin "grants it the same trust level as local code running on that gateway host". Its advice is to install only plugins you trust and to prefer plugins.allow, which pins an explicit list of trusted plugin IDs. The audit flags plugins that load without an allowlist.
Direct messages have their own default. The security docs say most chat channels answer an unknown sender with a pairing code instead of processing the message. Some workspace channels are a documented exception, so check the page for each channel you connect.
Is a Mac mini a good place to run OpenClaw?
The project's FAQ calls a Mac mini "a popular always-on host choice", and says a dedicated host is "not required, but recommended for reliability and isolation". Its common pattern is the Gateway on the Mac mini, with a laptop paired to it as a node for local screen, camera and command tools.
The macOS app shows permission prompts for screen, microphone, speech, automation and accessibility, and shows approval prompts for commands hosted on the Mac. Read each one before you agree to it. For company setups, SECURITY.md says to use a dedicated machine, VM or container and dedicated accounts.
An always-on Mac still needs the ordinary Mac protections, because anyone who can edit that ~/.openclaw folder counts as an operator:
- Turn off automatic login. Apple warns that it "allows anyone to access your Mac simply by restarting it". Go to Apple menu > System Settings > Users & Groups and set "Automatically log in as" to Off. Our guide on turning off automatic login has more.
- In System Settings > Lock Screen, set "Require password after screen saver begins or display is turned off".
- If you don't manage the Mac remotely on purpose, read how to turn off Remote Management.
What should I do if I think my OpenClaw was compromised?
Stop it first. OpenClaw's incident response page says to stop the macOS app or the openclaw gateway process, set gateway.bind to loopback or disable Tailscale Serve and Funnel, and switch risky direct messages and groups to disabled or require mentions. Then rotate secrets and audit what happened.
- Rotate Gateway auth, remote client secrets, and the provider and API credentials OpenClaw holds.
- Check logs with
openclaw logsand review the session transcripts in~/.openclaw/agents/<agentId>/sessions/. - Review recent config changes that could have widened access.
- Re-run
openclaw security audit --deepand confirm critical findings are resolved.
If you've found a security bug, the policy says to report it privately first, and to email security@openclaw.ai if it doesn't fit a specific repository.
Where Failshot fits
Your password is the first layer. Failshot is the second: second layer device security for your Mac, for the moment someone sits down at it and unlocks it.
- With Failshot on, it photographs whoever unlocks your Mac, then, with Pro, records a 5-second video.
- With Pro, turn on alerts and Failshot emails you about an unlock you don't confirm as yours, with the photo and the time.
- Switching it off, or quitting it from its menu, takes Touch ID or your Failshot PIN and answer, never your Mac password.
Failshot for Mac is out now as a download from failshot.app, for macOS 14 or later. Free to use. Pro adds video, email alerts and the encrypted vault. Try Failshot Pro free for 7 days. Your card is taken at sign-up and charged on day 8 unless you cancel.
For more on sign-in notices, see how to get notified when someone logs into your Mac.
More questions
Is OpenClaw safe to run locally?
On a regular host install the Gateway binds to loopback, and SECURITY.md recommends keeping it there. Commands run on the host by default, because sandbox mode defaults to off, so turn the sandbox on if you need isolation.
Is OpenClaw safe in Docker?
OpenClaw's security docs say container images default to an exposed bind, unlike a regular host install, and that you should pair that with auth. Run the audit afterwards. The runbook lists auth, firewalling and no public direct route as the requirements for non-loopback access.
Does a token protect my Gateway completely?
A token or password proves possession of the Gateway operator secret. SECURITY.md says authenticated callers are treated as trusted operators, and that narrower scope headers are ignored on that shared-secret path. So treat the token as full access and rotate it if it leaks.
Do I have to use a Mac mini?
No. The FAQ says a small VPS, home server or Raspberry Pi-class box works too, and that any Mac works for iMessage. It says a shared laptop or desktop is fine for testing and active use, but to expect pauses when the machine sleeps or updates.
Sources
- Security Policy (SECURITY.md), OpenClaw on GitHub
- Gateway security, OpenClaw docs
- Exposure runbook, OpenClaw docs
- Running the audit, OpenClaw docs
- Operator incident response, OpenClaw docs
- FAQ: providers, hardware, and hosting, OpenClaw docs
- macOS app, OpenClaw docs
- If you don't see a login window when you start your Mac, Apple Support
- Change Lock Screen settings on Mac, Apple Support