For keeping a MacBook awake with the lid closed, pick Clamshell. It is built to keep the lid-closed Mac awake while armed, not only to block idle sleep, its thermal cut-off is always on, and it needs no admin rights or helper. It keeps any job running, not only detected agents. This page is written by the maker of Clamshell, and it says where Hold My Lid is the better choice.
Clamshell for Mac keeps the Mac awake with the lid closed while armed. No sudo, no monitor. Free for 7 days, then $9.99 once.
Apple Silicon, macOS 14+. Notarized by Apple. 3.6 MB. Or install with Homebrew: brew install --cask clamshell. On your phone? Send the Mac download link to yourself.
Clamshell for Mac is built for one job: you arm it, close the lid, and the Apple Silicon MacBook keeps running with the built-in display black until you disarm or quit, or, after a one-close arm, open the lid. It keeps the Mac awake through lid close itself, not only idle sleep, while armed, and it needs no admin rights. Hold My Lid is built around agent awareness: lifecycle hooks for Claude Code, Codex, OpenCode and others tell it when an agent is working, and it lets the Mac sleep when they go idle.
Why Clamshell is the better pick
- It stays awake when the lid closes. While armed, Clamshell keeps the Mac awake with the lid closed and no external display. Hold My Lid's FAQ says it holds the PreventUserIdleSystemSleep assertion, which it calls "the system-level assertion macOS honours for lid-closed operation", and that it keeps a MacBook awake with the lid closed and no external display. Apple's
IOPMLib.hdocumentation for that assertion, the onecaffeinateuses, says it prevents idle sleep and that "the system may still sleep for lid close". We have not tested Hold My Lid, so whichever tool you pick, run a two-minute lid-closed test. - Thermal safety you cannot switch off. Serious or critical thermal pressure disarms Clamshell toward normal lid sleep and blocks arming until the Mac cools. Hold My Lid's site does not state a thermal cut-off.
- No admin rights, nothing left behind. No sudo or privileged helper, and a restart restores normal lid sleep. Hold My Lid's site does not state its setup requirements.
- Any job, not only detected agents. Downloads, renders, builds or SSH sessions stay up for as long as you keep it armed. Hold My Lid's wake lock follows the agent activity it detects.
- A dark display that agents can still use. With the lid closed the built-in display stays black, while agents can still use the screen with the Agent Screen module, and the Mac locks when you open the lid.
Close the lid and keep working. Try Clamshell free for 7 days with no payment details, then $9.99 once for one Mac. 14-day money-back guarantee.
Apple Silicon, macOS 14+. Notarized by Apple. 3.6 MB. Or install with Homebrew: brew install --cask clamshell.
Side-by-side comparison
Every Hold My Lid cell comes from its own pages, checked October 2, 2026. "Not stated" means we could not find it on their official pages; it does not mean the feature is missing.
| Clamshell Recommended | Hold My Lid | |
|---|---|---|
| How closed-lid works | No admin rights. Keeps the Mac awake with the lid closed only while armed; normal lid sleep returns on disarm or quit. | Holds the PreventUserIdleSystemSleep power assertion, per its FAQ, which says this works lid closed with no external display. Apple's IOPMLib.h documentation says the system may still sleep for lid close with that assertion held. |
| Thermal safeguard | Always on. Serious or critical thermal pressure disarms toward normal lid sleep and blocks arming until cooled. | Not stated. |
| Admin or helper | None. No sudo, admin rights, kernel extension, driver, or privileged helper. | Not stated. |
| Restore behavior | Option-close and menu arming cover the next close; on lid open the Mac locks. Right-click and Shortcuts arming stay until disarmed. A restart restores normal lid sleep. | Not stated for a crash or lid open. Releases the wake lock when watched agents go idle. |
| Closed-lid support | Yes, with no external display. | Yes, with no external display, per its FAQ. |
| Battery safeguard | Low-battery disarm at 20% on battery, on by default. Stays armed through every plug or unplug. | Configurable cut-off threshold, an only-when-plugged-in mode, and Low Power Mode respect. |
| Price | Paid, closed source. 7-day free trial, then $9.99 once for 1 Mac or $19.99 for 3 Macs. 14-day money-back guarantee. | Free trial, then $9.99 once as an early-bird price, normally $14.99. One license covers up to 3 Macs. |
| Agent auto-detection | Optional modules. The core does not detect agents. Agent Status shows in the menu bar how many Claude Code, Codex, Grok, OpenCode and Kiro sessions are working or waiting on you, Agent Notifications tells you when one stops for your approval or a question or finishes longer work, and Finish Work, Then Sleep, chosen from the menu bar, keeps the closed Mac awake until they finish, then lets it sleep. Arm from scripts with clamshell://arm and clamshell://disarm, or Shortcuts actions. |
Yes. Lifecycle hooks for Claude Code, Codex, OpenCode, Gemini, Pi, Copilot CLI and Hermes; process detection for Cursor and Cline. |
| Availability | clamshell.dev and Setapp. | Direct download and a Homebrew tap (shobhit99/tap/holdmylid). |
| Platform | Apple Silicon MacBooks, macOS 14 or later. | macOS 14 or later, Apple Silicon and Intel. |
| Source code | Closed source, paid: $9.99 once after a 7-day free trial. | Not stated. |
For agent runs, the Clamshell wrapper calls open "clamshell://arm" before the run and open "clamshell://disarm" after. The Claude Code lid-closed guide has a complete script.
An animated MacBook with a coding agent deploying a website from its terminal. The Option key is held and the lid closes: the display goes black, but the Mac stays awake, so a dimmed copy of the terminal keeps working above the closed laptop while its front edge fills with light. When the deploy is done, a pointer shows how to lift the lid. Opening it wakes the Mac to its lock screen, which unlocks to the finished run: deployed, with the live address. The lid can then be opened and closed freely.
Frequently asked questions
Do I need an admin password for Clamshell?
No. Clamshell needs no sudo, admin prompt, kernel extension or privileged helper. Hold My Lid's site does not state its setup requirements.
Does Clamshell leave anything behind?
No. Clamshell restores normal lid sleep when you disarm or quit, and a restart does the same.
Does it stop if the Mac gets too hot?
Clamshell does, always. Serious or critical thermal pressure disarms it toward normal lid sleep and blocks arming until the Mac cools. Hold My Lid's site does not state a thermal cut-off.
Is there a free trial?
Yes, for both. Clamshell is free for 7 days with no payment details, then $9.99 once for one Mac or $19.99 for three, with a 14-day money-back guarantee. Hold My Lid lists a free trial and a $9.99 early-bird price, normally $14.99, for up to 3 Macs.
What is the difference between Hold My Lid and Clamshell?
Hold My Lid watches coding agents through lifecycle hooks and keeps the Mac awake only while they work. Clamshell for Mac keeps an Apple Silicon MacBook awake with the lid closed while you have it armed, with no admin rights or helper, and restores normal lid sleep when you disarm or quit, or when you open the lid after a one-close arm.
Does Hold My Lid detect Claude Code automatically?
Yes. It integrates with Claude Code, Codex and OpenCode through lifecycle hooks, and detects Cursor and Cline by process. Clamshell's core does not detect agents, and its optional Agent Status, Agent Notifications and Finish Work, Then Sleep modules show what Claude Code and Codex agents are doing, notify you, and can let them finish before the Mac sleeps; a wrapper script can arm it with clamshell://arm and disarm it with clamshell://disarm.
Which works on Intel Macs?
Hold My Lid, per its FAQ. Clamshell supports only Apple Silicon MacBooks on macOS 14 or later.
If you need Intel support or a wake lock that follows your agents automatically, Hold My Lid covers that.
Clamshell is the pick for a closed lid. No admin rights, thermal safety always on, and a restart restores normal lid sleep. Free for 7 days, then $9.99 once.
Apple Silicon, macOS 14+. Notarized by Apple. 3.6 MB. Or install with Homebrew: brew install --cask clamshell.
Related guides
- Clamshell vs Macchiato
- Arm Clamshell from Claude Code hooks
- How to keep a MacBook awake with the lid closed
- Clamshell vs LidRun vs Amphetamine
- Clamshell vs Adrafinil
- Best apps to keep a MacBook awake with the lid closed
- What sudo pmset disablesleep 1 does and how to undo it
- Keep Claude Code running with the lid closed
Sources checked October 2, 2026: Hold My Lid's homepage, pricing and FAQ. Clamshell details come from its own documentation and changelog. Clamshell is the publisher of this comparison. Product names belong to their respective owners. Rechecked October 15, 2026: Hold My Lid's FAQ and Apple's IOPMLib.h.