Will OpenClaw keep running if you close your MacBook?

By Matyas Rathonyi. Published November 23, 2026. Guides

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.

Two closed MacBooks hosting OpenClaw's Gateway. With nothing set up, the Mac sleeps and the Gateway stops until it wakes. With the Mac kept awake, the host is not asleep, which is what OpenClaw's docs say stops the Gateway. z Nothing set up Gateway stops Mac kept awake host stays up
A Gateway on the MacBook needs the Mac awake. OpenClaw's docs say a closed lid forces the host to sleep and the Gateway stops until it wakes. Keep the host awake, or move the Gateway to a machine that stays on.

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:

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:

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:

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

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.

Download free trial $9.99 once, no subscription

$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.