macOS closed-lid guide
Keep your Mac running with the lid closed
StayRunning keeps downloads, builds, backups, SSH sessions, remote access, and coding agents active after you close your MacBook.
The short answer
A MacBook normally sleeps when its lid closes. StayRunning provides a dedicated closed-lid mode and reliable-wake helper so selected work can continue, while battery limits and power rules control when that behavior is allowed.
Use cases
When should your Mac keep running?
- Long downloads, uploads, exports, renders, and backups
- Local builds, tests, containers, and model workloads
- Claude Code, Codex, and other coding-agent sessions
- SSH and remote-access sessions that must remain reachable
Safe setup
Use closed-lid mode safely
Keep the Mac on a hard, ventilated surface and connect it to power for long sessions when practical. Configure a battery cutoff, and never leave an awake MacBook inside a bag or another enclosed space.
Download StayRunning free →Common questions
Mac closed-lid mode
How do I keep my Mac running with the lid closed?
StayRunning provides a closed-lid mode for downloads, builds, backups, SSH sessions, remote access, and coding agents. Enable the mode, confirm its reliable-wake helper is active, and keep the Mac on a ventilated surface.
Can the display turn off while my Mac keeps running?
Yes. StayRunning can let the display turn off while it prevents system sleep, so background work continues without leaving the screen on.
Will closed-lid mode drain the battery?
Yes. A Mac that remains active uses more power than a sleeping Mac. StayRunning includes configurable battery guardrails and an option to hold only while connected to power.
Is it safe to put an awake MacBook in a bag?
No. Keep an active MacBook on a firm, ventilated surface. Do not place it in a bag or another enclosed space while closed-lid mode is active.