All three Mac apps are free and keep a Mac awake with the lid open: pick KeepingYouAwake for a one-click menu bar switch, Caffeine for a plain toggle on macOS 14.6 or later, or Amphetamine for automatic triggers. If your MacBook sleeps when you close the lid, none of the three keeps it running through a charger change without an add-on: KeepingYouAwake stops by design, Caffeine lists no closed-lid mode, and Amphetamine's session ends when you plug in or unplug on Apple Silicon unless you install its Power Protect sudoers add-on. Clamshell for Mac keeps a closed Apple Silicon MacBook awake with no admin password or add-on, for $9.99 once after a 7-day free trial.
Written by Matyas Rathonyi, the maker of Clamshell for Mac.
Amphetamine vs KeepingYouAwake vs Caffeine side by side
Checked on November 23, 2026 against each app's listing, website, GitHub repository, or app bundle:
| Clamshell | Amphetamine | KeepingYouAwake | Caffeine | |
|---|---|---|---|---|
| Cost with the lid open | $9.99 once after 7-day trial | Free (App Store) | Free | Free |
| Lid closed, no monitor | Yes, no admin step | Yes; plug/unplug ends it without Power Protect | No (per README) | None listed |
| macOS minimum | Apple Silicon, 14+ | 10.13+ | 10.13+ | 14.6+ (Info.plist) |
| Install from | clamshell.dev, Homebrew, Setapp | Mac App Store | GitHub, Homebrew | caffeine-app.net, GitHub |
| Signing | Notarized by Apple | App Store signed | Notarized Developer ID | Notarized Developer ID |
| Timers and triggers | Timer, schedule, app trigger | Timers and many triggers | Preset durations | Timeout only |
| Open source | No | No | Yes (MIT) | Yes (MIT) |
| Latest release | 2.0.6 (Nov 2026) | 5.3.2 (Nov 2023) | 1.6.8 (Sep 2025) | 1.6.4 (Apr 2026) |
Verdict: With the lid open, pick KeepingYouAwake for a one-click switch, Caffeine for a plain toggle on macOS 14.6+, or Amphetamine for triggers; once you want the lid closed with no admin step, choose Clamshell.
How the three free apps compare with the lid open
For keeping a desktop Mac or an open MacBook awake, all three free apps work and each takes a different approach:
- KeepingYouAwake (Marcel Dierkes, 1.6.8, MIT): wraps Apple's
caffeinatecommand with one-click activation, preset durations, and a low-battery stop. It is a universal, sandboxed, Apple-notarized binary on macOS 10.13 or later (1.6.8 is its last release for Big Sur and older) and installs from GitHub or via Homebrew (brew install --cask keepingyouawake). - Caffeine (
caffeine-app.net, 1.6.4, MIT): maintained by Dominic Rodemer on GitHub (domzilla/Caffeine) as a continuation of Lighthead Software's 2006 original and IntelliScape's 2018 fork. It is universal, sandboxed, and notarized, with a menu bar toggle, timeout, and start-at-login option. Two easy traps to avoid: its website FAQ still says macOS 11, while the 1.6.4Info.plistsets the minimum to macOS 14.6; and Homebrew'scaffeinecask installs IntelliScape's older 1.1.4 rather than 1.6.4. - Amphetamine (William Gustafson, 5.3.2, Mac App Store): free with no in-app purchases and no official Homebrew cask. It adds automatic triggers (external display, USB or Bluetooth device, running app, power, battery, Wi-Fi, VPN, DNS, audio, drive, CPU, idle), schedules, screen lock, cursor movement, Drive Alive, and AppleScript. Its App Store listing sets macOS 10.13 or later, and its last update was November 10, 2023.
Where all three stop: closing the MacBook lid
Closing a MacBook lid puts macOS through a separate sleep path, and that is where the three free tools diverge or add setup friction:
- KeepingYouAwake stops at the lid. Its README states directly: "Does it work on a MacBook with a closed lid? No. Because of (sensible) macOS limitations and out of thermal considerations, KeepingYouAwake will only prevent sleep on desktop Macs and portable Macs with an open lid." See KeepingYouAwake with the lid closed.
- Caffeine documents no closed-lid mode. Its website and README do not claim closed-lid support, and its source code holds a display idle-sleep assertion.
- Amphetamine needs a separate sudoers add-on to survive power changes on Apple Silicon. Its listing includes Closed-Display Mode, and its 5.3 release notes say it works without an add-on, except that on Apple Silicon laptops plugging in or unplugging power ends the session unless you install Power Protect. That separate notarized package asks for Touch ID or an admin password once and writes
/private/etc/sudoers.d/amphetamine_PowerProtectforpmset -a disablesleep 1and0(see is the Amphetamine Mac app safe). Amphetamine also lists no heat cut-off and has not been updated since November 2023.
Why pay $9.99 once for Clamshell? KeepingYouAwake and Caffeine stay lid-open tools, and Amphetamine's closed-lid add-on asks for an admin password and a sudoers file; Clamshell keeps a closed MacBook awake with neither.
Why choose Clamshell when you close the lid
If you need your MacBook to keep running with the lid shut, on battery or power, without adding a sudoers file or companion installer, Clamshell for Mac is built for closed-lid sessions.
- No admin password or sudoers file to stay awake. Clamshell needs no
sudo, no admin password, no kernel extension, and no privileged helper to keep a closed Apple Silicon MacBook running. Normal lid sleep returns when you disarm or quit. - Always-on heat cut-off and 20% battery floor. Serious, critical, or unknown thermal pressure disarms Clamshell toward normal lid sleep automatically, and thermal safety stays on. Low-battery disarm at 20% (on battery or a weak charger) is on by default.
- Survives plugging in and unplugging. Keep a closed-lid session running across charger changes without installing a separate script.
- Actively updated and notarized by Apple. Version 2.0.6 (November 23, 2026), with Sleep Timer, Arm on a Schedule, and Arm While an App Runs, available via direct download, Homebrew (
brew install --cask clamshell), or Setapp.
Try it on your Mac before paying anything: Download free trial (free for 7 days, no card required; $9.99 once for one Mac or $19.99 for up to three Macs, with a 14-day money-back guarantee).
When the free apps are the better pick
- Your lid stays open. KeepingYouAwake, Caffeine, and Amphetamine are free and cover open-lid keep-awake on desktops and open MacBooks without paying for a closed-lid app.
- You run an Intel Mac or macOS 13 or older. Clamshell requires Apple Silicon and macOS 14 or later. Amphetamine and KeepingYouAwake support Intel Macs back to macOS 10.13.
Frequently asked questions
Is KeepingYouAwake better than Amphetamine?
With the lid open, KeepingYouAwake is the faster choice for a free, open-source, Homebrew-installed menu bar switch with preset durations. Amphetamine is the pick for automatic triggers, schedules, or extra tools such as Drive Alive and cursor movement. If you need the lid closed on Apple Silicon with no sudoers add-on, choose Clamshell instead.
Which Caffeine app should I download?
If you want the modern Caffeine, download version 1.6.4 directly from caffeine-app.net or github.com/domzilla/Caffeine (requires macOS 14.6 per its Info.plist). Homebrew's caffeine cask installs IntelliScape's older 1.1.4 instead. If you want Homebrew and older macOS support for open-lid use, use KeepingYouAwake.
Can I install Amphetamine with Homebrew?
No. There is no official amphetamine Homebrew cask (checked November 23, 2026), so install Amphetamine from the Mac App Store. For Homebrew installation with the lid open, choose KeepingYouAwake; for Homebrew installation with the lid closed, choose Clamshell (brew install --cask clamshell).
Which of these keeps a MacBook awake with the lid closed?
Of the three free apps, only Amphetamine documents a closed-lid mode, and on Apple Silicon laptops it asks for its separate Power Protect sudoers install to survive power changes. KeepingYouAwake's README says no, and Caffeine documents no closed-lid support. For closed-lid sessions with no admin step on Apple Silicon (macOS 14+), start Clamshell's 7-day free trial.
Why pay $9.99 for Clamshell when these three are free?
KeepingYouAwake and Caffeine are built for open lids, while Amphetamine's closed-lid Power Protect add-on asks for Touch ID or an admin password and adds a sudoers file in an app last updated in November 2023. Clamshell costs $9.99 once with no subscription so you can keep a closed Apple Silicon MacBook awake with no admin rights, an always-on heat cut-off, and a 20% battery floor.
Related guides
- KeepingYouAwake with the lid closed
- Is the Amphetamine Mac app safe?
- Sleepless vs Amphetamine vs Clamshell
Try Clamshell free for 7 days
Keep your Apple Silicon MacBook running with the lid closed, on battery or power, 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: Amphetamine's US Mac App Store listing, iTunes lookup, and a read-only inspection of Power Protect for Amphetamine.dmg; github.com/newmarcel/KeepingYouAwake, keepingyouawake.app, and the 1.6.8 app bundle; caffeine-app.net, github.com/domzilla/Caffeine, and the 1.6.4 app bundle; the Homebrew cask API; Apple Support article 102445; and the Amphetamine Enhancer GitHub page. No closed-lid test of Amphetamine, KeepingYouAwake, or Caffeine was run. Clamshell details come from version 2.0.5. Product names belong to their respective owners.