No, it stops. Closing your laptop without an external monitor puts macOS to sleep, and OpenClaw's own docs say the Gateway stops until the host wakes, so it answers no messages and runs no cron jobs while the lid is closed. Clamshell for Mac keeps an Apple Silicon MacBook running with the lid closed on power or battery, with no admin password, no sudo and nothing to undo, for $9.99 once after a 7-day free trial.
Written by Matyas Rathonyi, the maker of Clamshell for Mac.
Why OpenClaw stops when you close your laptop
OpenClaw is an open-source (MIT) AI assistant whose Gateway acts as "the always-on control plane" for channels such as Discord, iMessage, Slack, Teams, Telegram and WhatsApp. On its macOS VM install page ("Running 24/7"), OpenClaw states the laptop rule directly: "Closing a Mac laptop lid forces the host to sleep, so the VM and the Gateway inside it stop until the host wakes." Its hosting FAQ lists the same limit for a local laptop Gateway: sleep and network drops disconnect it, and the laptop "must stay awake."
While your MacBook sleeps:
- Messages go unanswered. Channel messages land on the Gateway, which stays suspended until the Mac wakes.
- Cron jobs miss their schedule. OpenClaw's automation FAQ says "Cron runs inside the Gateway process; it does not fire if the Gateway is not running continuously." Its schedules doc adds: "After sleep, each elapsed deadline runs once."
- Channels reconnect only after wake. OpenClaw's restart-recovery docs say that after host sleep, "the gateway detects the freeze within about 30 seconds. It restarts channel connections once tracked Gateway work is idle."
Keep two separate requirements in mind. First, keeping the Gateway process alive after you quit OpenClaw.app (which requires macOS 26.2 or later): OpenClaw's bundled gateway docs say that on a fresh setup the Gateway stops when you quit the app, unless you turn on Keep OpenClaw running when the app is closed in Dashboard device settings (or run openclaw gateway install in Terminal) to install the ai.openclaw.gateway LaunchAgent. Second, keeping macOS itself awake when you close the lid. The LaunchAgent covers quitting the app, not closing the laptop.
The free fixes, and where they stop
Before paying for an app, look at the built-in and free options and where each one hits a wall:
- OpenClaw's own Keep computer awake switch: Found under Dashboard > Settings > This Mac and off by default. OpenClaw's permissions docs say it "takes effect only while this Mac is connected and actually hosting. It does not change macOS power or lock settings." No OpenClaw doc says it covers a closed lid, and its VM page calls closing the lid forced sleep. The same docs note that "Manual lock, logout, or an unknown desktop state releases keep-awake assertions and retires active Computer executions."
caffeinate(built into macOS): OpenClaw's docs groupcaffeinatewith controls that limit idle sleep. On macOS 27.2.1,man caffeinatedocuments-ifor idle sleep (for examplecaffeinate -i <command>with the lid open) and-sfor system sleep on AC power only, with nothing about closing the lid.- Apple's closed-display setup: Apple Support 102501 keeps a closed MacBook awake for free only while plugged into power, an external display, an external keyboard and a mouse. Unplug the monitor or power adapter and your laptop sleeps.
sudo pmset -a disablesleep 1: Turns off system sleep in Terminal, lid close included, until you remember to undo it withsudo pmset -a disablesleep 0. It requires an admin password and manual cleanup.- Free lid-closed apps: Amphetamine's Closed-Display Mode ends when you plug in or unplug on Apple Silicon unless you install its Power Protect add-on, which asks for an admin password and adds a
sudoersrule, and Keepresso asks for an admin password or a privileged helper.
Why pay $9.99 once for Clamshell? You skip admin passwords, sudoers files, privileged helpers and manual undo commands while keeping your closed Apple Silicon laptop running on power or battery.
Keep OpenClaw running on a closed MacBook with Clamshell
If your MacBook is your OpenClaw host, turn on Keep OpenClaw running when the app is closed in OpenClaw first so the LaunchAgent stays alive, then let Clamshell keep the laptop awake with the lid shut:
- No admin rights, no sudo, nothing to undo. Clamshell keeps an Apple Silicon MacBook running with the lid closed on power or battery, with no admin password, no
sudoersfile and no privileged helper to stay awake. Normal lid sleep returns when you disarm or quit. - Host-style modules made for always-on laptops. Clamshell's optional Home Server module ("Always armed, lid closed, for a Mac that serves") keeps the laptop armed on power or battery and re-arms once heat or battery recovers. Always On While Plugged In keeps it armed whenever it is connected to power.
- Always-on heat cut-off and a 20% battery floor. Thermal safety stays on and disarms toward normal sleep on serious or critical thermal pressure. Low-battery disarm at 20% on battery is on by default.
- Notarized and ready for macOS 14 or later. Any Apple Silicon Mac that runs
OpenClaw.app(macOS 26.2+) meets Clamshell's macOS 14+ requirement. Install by direct download, Homebrew (brew install --cask clamshell) or Setapp.
After turning on the LaunchAgent and arming Clamshell, close the lid, wait a few minutes and message OpenClaw from your phone on Telegram, WhatsApp or Discord to confirm it answers: Download free trial (7-day free trial, no card required; $9.99 once for 1 Mac or $19.99 for up to 3 Macs, with a 14-day money-back guarantee).
When another setup is the better pick
- You want 24/7 uptime even while traveling with your laptop. OpenClaw's own docs recommend running the Gateway on a dedicated always-on machine (a Mac mini, VPS, home server or Raspberry Pi-class box) reached over Tailscale or SSH, and pairing your MacBook as a node ("Remote gateways are not suspended when the app host sleeps"). If you are weighing a separate box against the laptop you already own, read MacBook vs Mac mini for AI agents.
- You run an Intel MacBook or want automatic OpenClaw process detection. Clamshell requires Apple Silicon, and its native agent modules follow Claude Code, Codex, Grok, OpenCode and Kiro rather than OpenClaw, so you keep it armed directly or with Home Server or Always On While Plugged In. Also note that per OpenClaw's docs, locking the Mac retires active Computer screen-control executions, and macOS updates, restarts or dropped Wi-Fi can still interrupt any laptop host. For more lid-closed apps compared side by side, see which app keeps a Mac awake for AI agents with the lid closed.
Frequently asked questions
Does OpenClaw's Keep computer awake setting work with the lid closed?
No OpenClaw doc says it does. Its permissions docs describe Keep computer awake (under Dashboard > Settings > This Mac) as keeping a dedicated Mac awake between jobs without changing macOS power or lock settings, while its macOS VM page states that closing a Mac laptop lid forces the host to sleep. To keep a closed MacBook hosting the Gateway, use a lid-closed app like Clamshell or move the Gateway to an always-on host.
Does caffeinate keep OpenClaw running with the lid closed?
OpenClaw's docs list caffeinate among idle-sleep controls and state that closing a Mac laptop lid forces sleep. Apple's macOS 27.2.1 caffeinate manual lists -i for idle sleep and -s for AC power only, with nothing about the lid. For reliable closed-lid hosting, use a dedicated lid-closed app instead.
Do I need to buy a Mac mini to keep OpenClaw running 24/7?
No. OpenClaw's FAQ says you do not have to buy a Mac mini because a small VPS, home server or Raspberry Pi-class box works too, and a MacBook you already own plus a $9.99 lid-closed app can host the Gateway on power with air around it. Choose a dedicated box only if you take your laptop out of the house daily and need uninterrupted uptime.
Will OpenClaw catch up on messages and cron jobs after my laptop wakes?
OpenClaw's restart-recovery docs say the Gateway detects the freeze within about 30 seconds after wake and restarts channel connections once tracked work is idle, and its cron schedules doc says each elapsed deadline runs once after sleep. If you want messages answered and cron jobs fired on time rather than waiting for wake, keep the laptop awake with Clamshell or run the Gateway remotely.
Is there an official OpenClaw cloud or hosted service?
No. OpenClaw's GitHub README states it "has no paid tier, hosted service, or token" (its Cloud Workers still rely on your own Gateway), and third-party hosted services are not official OpenClaw offerings. You host the Gateway yourself on your MacBook or a separate always-on machine.
Try Clamshell free for 7 days
Keep your Apple Silicon MacBook running OpenClaw with the lid closed, with no admin password, an always-on heat cut-off and a 20% battery floor. Normal lid sleep returns when you disarm or quit.
$9.99 for 1 Mac, $19.99 for up to 3 Macs. 7-day free trial with no card required and a 14-day money-back guarantee. Apple Silicon, macOS 14 or later, notarized by Apple. Also available via Homebrew or Setapp.
Sources checked November 23, 2026: OpenClaw's GitHub repository, README and release v2026.11.7, OpenClaw's documentation (install/macos-vm, help/faq-first-run/providers-and-hosting, help/faq/skills-and-automation, automation/cron-jobs/schedules, gateway/restart-recovery, gateway/remote, nodes, platforms/macos, platforms/mac/bundled-gateway, platforms/mac/permissions, nodes/computer-use), Apple Support article 102501, the macOS 27.2.1 caffeinate(8) manual, and vendor pages for Amphetamine and Keepresso. Clamshell details come from version 2.0.5. Product names belong to their respective owners.