If you need the lid-closed part, switch to Clamshell for Mac. It is one app with no admin password, sudo rule, or helper, it handles plugging in and unplugging by itself, and its thermal safety is always on. Amphetamine's closed-display use on Apple Silicon laptops relies on Power Protect, a separate install, and its App Store listing has shown no update since November 10, 2023. This page is written by the maker of Clamshell, and it says where another option is the better choice.
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.
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.
Want every option side by side, including LidRun, pmset, caffeinate and Apple's own display setup? See the Clamshell vs Amphetamine vs pmset comparison. This page is for people who already use Amphetamine and want the lid-closed part to just work.
Amphetamine is a capable free keep-awake toolkit, but closing the lid on an M-series MacBook is the one job where it asks for more: reliable closed-display use across plugging in and unplugging involves Power Protect, a separate download, and the latest version on its App Store listing is 5.3.2 from November 10, 2023. Clamshell for Mac is built for the lid-closed part, as a single menu bar app with no admin rights, for $9.99 once after a 7-day trial.
Why Clamshell is the better pick for a closed lid
- One app, nothing else to install. Amphetamine's App Store listing says Power Protect is not included in Amphetamine and needs a separate download and installation of a script and a configuration file on Apple Silicon Mac laptops. Its install page puts the configuration file in
/private/etc/sudoers.d/and asks for Touch ID or an administrator password once. Clamshell stays armed through every plug and unplug, on AC or battery, with no add-on. - No admin password, sudo, or helper. Clamshell arms from the menu bar with no admin prompt and installs nothing privileged. The free
pmset disablesleeproute needssudoto switch it on and again to switch it off, and stays on system-wide until you undo it, and LidRun's closed-lid mode needs its helper approved or an admin password. - Nothing left switched on. An Option-close session ends when the lid opens, normal lid sleep is restored on disarm or quit, and a restart does the same.
- Thermal safety is always on. At serious or critical thermal pressure, Clamshell disarms toward normal lid sleep and blocks arming until the Mac cools.
- Current releases. Clamshell 2 came out on November 9, 2026, as a free update for every license, and 2.0.3 shipped on November 15, 2026, notarized by Apple. Amphetamine's App Store listing showed 5.3.2 from November 10, 2023 as its latest version when checked on October 5, 2026.
/private/etc/sudoers.d/ and asks for Touch ID or an admin password once. For the closed lid, Clamshell is the app alone, with no helper.Only need the lid part? Try Clamshell free for 7 days, no payment details. Then $9.99 once for one Mac, with a 14-day money-back guarantee.
Apple Silicon, macOS 14+. Notarized by Apple. 3.6 MB. Or install with Homebrew: brew install --cask clamshell.
The alternatives compared
Our pick: Clamshell. No admin rights, no add-on, nothing left on after you disarm. The other lid-closed options follow; KeepingYouAwake comes last because it does not keep the Mac awake once the lid closes.
| Tool | Admin or add-on | Lid closed | Best at | Price |
|---|---|---|---|---|
| Clamshell Our pick |
None. No sudo, admin rights, driver, or privileged helper | Yes, built-in display stays black | Closing the lid with no monitor and getting normal sleep back on lid open | Paid, closed source: 7-day free trial, then $9.99 once (3 Macs: $19.99) |
| Amphetamine | Separate add-on. The app needs none. On Apple Silicon laptops, an optional Power Protect install, a script and a configuration file in /private/etc/sudoers.d/, authorized once with Touch ID or an administrator password, keeps the mode working across power changes |
Yes, Closed-Display Mode | General keep-awake sessions and triggers | Free |
| LidRun | Helper or password. A helper approved once in Login Items, or an admin password each time Closed-Lid Mode flips | Yes, Pro only | Detecting agent and dev workloads and stopping when they finish | Free lid-open tier; Pro from $9.90 once |
pmset disablesleep |
Needs sudo to set and to undo; stays on until undone |
Yes | A free, built-in, system-wide override | Free |
| KeepingYouAwake | None | No, per its README | A simple, open-source, lid-open keep-awake toggle | Free, MIT licensed |
Not KeepingYouAwake or caffeinate for a closed lid. Both only prevent idle sleep, so neither keeps the Mac awake once the lid closes.
Clamshell for Mac: how it works
Clamshell is a small menu bar app for Apple Silicon MacBooks on macOS 14 or later. Arm it, close the lid, and the Mac keeps running with the built-in display black. It works only while armed and needs no sudo, admin rights, kernel extension, driver, or privileged helper. There is nothing to install beyond the app; only the optional modules Low Power While Closed, Fan Boost, Agent Light, Sleep Until Reset, Sleep Means Sleep, Stay Off When Opened and Password After Close, off until you turn them on, ask for a one-time approval in Login Items.
- Arming: hold ⌥ Option while closing the lid on MacBooks with a lid angle sensor (the 14-inch and 16-inch MacBook Pro from 2021 on, and some newer MacBook Air models), or, on any supported Mac, press both Option keys or arm from the menu bar.
- Ending: an Option-close session ends when you open the lid, and the Mac locks. Arming from the menu bar menu also covers the next close only; right-click and Shortcuts arming stay until you disarm. A restart always brings back normal lid sleep.
- Power changes: works on AC and battery and stays armed through every plug or unplug, the transition that Power Protect exists to handle in Amphetamine.
- Safety: thermal safety is always on and disarms toward normal lid sleep under serious or critical thermal pressure. A low-battery disarm at 20% on battery is on by default.
- Agents and the screen: agents can use the screen during an armed closed-lid session while the built-in display stays black, with the Agent Screen module, which is off by default. SSH and screen sharing keep working.
- Automation:
clamshell://arm,clamshell://disarm, andclamshell://toggleURLs, plus Arm, Disarm, Toggle, and Status actions in Shortcuts. Its core does not detect agents; 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.
Clamshell also arms with an external display connected, and keeps a closed Mac awake there even on battery. It is sold from clamshell.dev and on Setapp, not on the Mac App Store; an unrelated App Store app shares the name.
What changes when you leave Amphetamine
Amphetamine is free, has no in-app purchases, and has been on the Mac App Store for years. Its feature list is broad: keep-awake sessions that run indefinitely, for a set time, while a file downloads, or while an app runs; per-session choices for display sleep, screen saver, and system sleep when the built-in display is closed; triggers based on displays, apps, battery, and power; and extras such as locking the screen after inactivity. Clamshell does not replace those lid-open triggers. It replaces the closed-lid part.
That closed-lid part is where Amphetamine's version notes describe an extra step. Version 5.3 added a Closed-Display Mode script for an Apple Silicon issue where connecting or disconnecting a laptop from power could cause unexpected session behavior. That feature is now called Power Protect. The listing says it is only needed and available on Apple Silicon Mac laptops, and that it is not included in Amphetamine itself: it needs a separate download and installation of a script and a configuration file. The developer's Power Protect page lists the configuration file's location, /private/etc/sudoers.d/, and asks for Touch ID or an administrator password during installation. The same listing, checked October 5, 2026, shows version 5.3.2, released November 10, 2023, as the latest.
LidRun
LidRun is a menu bar utility aimed at AI and developer jobs. Its free tier covers lid-open sessions with timers, charging-only mode, low-battery auto stop, and a lidrun command-line wrapper. Closed-Lid Mode is part of Pro, together with Auto Mode, which its pricing page says detects Claude Code, Cursor, Docker, and Ollama and keeps the Mac awake while they run. Pro is a one-time purchase: $9.90 for one Mac at its launch price, $14.90 for two, $19.90 for three, and $59.90 for ten. Its FAQ says Closed-Lid Mode calls pmset disablesleep; LidRun's helper, approved once as a Login Items toggle, avoids an administrator password prompt each time the setting flips, and restores normal sleep if the app stops checking in. It runs on macOS 13 or later on Apple Silicon and Intel. See the three-way comparison for the full table.
pmset disablesleep
If you do not want another app, sudo pmset -a disablesleep 1 keeps the Mac awake with the lid closed and sudo pmset -a disablesleep 0 restores it. It is built into macOS, but it is system-wide, needs sudo, has no timer or menu bar indicator, and stays on until you undo it. The pmset guide covers checks and the undo.
KeepingYouAwake: idle sleep only
KeepingYouAwake is a free, open-source menu bar app under the MIT license, installable from GitHub releases or with brew install --cask keepingyouawake. Its README answers the lid question directly: because of macOS limitations and thermal considerations, it only prevents sleep on desktop Macs and on laptops with an open lid, so it does not keep the Mac awake once the lid closes. The same goes for caffeinate, as the caffeinate guide explains.
If you want a free all-in-one keep-awake toolkit, agent auto-detection, or support for an Intel MacBook, Amphetamine or LidRun covers that.
Frequently asked questions
Does Clamshell need an admin password or a helper?
No. Keeping the Mac awake with Clamshell for Mac needs no sudo, admin rights, kernel extension, driver, or privileged helper, and there is no add-on to install. Only the optional modules Low Power While Closed, Fan Boost, Agent Light, Sleep Until Reset, Sleep Means Sleep, Stay Off When Opened and Password After Close, off until you turn them on, ask for a one-time approval in Login Items.
Does Clamshell leave anything behind?
No. Clamshell restores normal lid sleep when you disarm or quit, an Option-close session ends when the lid opens, and a restart does the same.
Is there a free trial?
Yes. Clamshell is free for 7 days with no payment details, then $9.99 once for one Mac or $19.99 for up to 3 Macs, with a 14-day money-back guarantee.
Does Amphetamine work with the lid closed on Apple Silicon?
Yes, through Closed-Display Mode. Closed-Display Mode is built in. On Apple Silicon Mac laptops, the developer offers Power Protect, a separate install, so the mode keeps working when you plug in or unplug.
When was Amphetamine last updated?
On October 5, 2026, the Amphetamine App Store listing showed version 5.3.2, released November 10, 2023, as the latest version.
Does KeepingYouAwake work with the lid closed?
No. Its README says it only prevents sleep on desktop Macs and on portable Macs with an open lid, citing macOS limitations and thermal considerations.
Which Amphetamine alternative detects AI coding agents?
LidRun Pro. Its pricing page says Auto Mode detects Claude Code, Cursor, Docker, and Ollama. 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; you can arm it from scripts with its URL scheme or Shortcuts actions.
Close the lid, keep working. Clamshell is free for 7 days. No admin password, no add-on, $9.99 once if you keep it.
Apple Silicon, macOS 14+. Notarized by Apple. 3.6 MB. Or install with Homebrew: brew install --cask clamshell.
Related guides
- How to keep a MacBook awake with the lid closed
- LidRun vs Amphetamine vs Clamshell
- Clamshell vs Amphetamine vs pmset compared
- Best apps to keep a MacBook awake
- Use clamshell mode without an external display
- Keep Claude Code running with the lid closed
- Hold My Lid vs Clamshell for coding agents
- Adrafinil vs Clamshell: free root helper or no-admin app
- Amphetamine not working with the lid closed: fixes
- Keepresso vs Clamshell
- Sleepless vs Clamshell
Sources checked September 29, 2026, with the Amphetamine listing and LidRun FAQ rechecked October 5, 2026: the Amphetamine App Store listing and version history, the KeepingYouAwake README, LidRun pricing, the LidRun FAQ, the LidRun helper guide, LidRun download page, and the macOS pmset(1) manual. Clamshell is the publisher of this guide. Product names belong to their respective owners. Rechecked October 15, 2026: the Amphetamine Power Protect page and App Store listing and the macOS pmset(1) manual.