Best apps to keep a MacBook awake, lid closed or open (2026)

By Matyas Rathonyi. Updated November 15, 2026. Guides

Our pick is Clamshell for Mac, the best overall for lid-closed use. It keeps an Apple Silicon MacBook awake with the lid closed and no monitor, with no admin password, sudo rule, or root helper. A restart always brings back normal lid sleep, and thermal safety is always on. If the lid stays open, almost any keep-awake app works, including free ones such as Amphetamine, KeepingYouAwake, and caffeinate. This page is written by the maker of Clamshell, and it says where another option is the better choice.

Our pickClamshell, $9.99 once
No adminNo sudo or root helper
Lid sleepIdle-only apps cannot stop it
20 toolsChecked October 2026

Clamshell for Mac keeps an Apple Silicon MacBook awake with the lid closed while armed. No monitor, no sudo. Free for 7 days.

Apple Silicon, macOS 14+. Notarized by Apple. 3.6 MB. Or install with Homebrew: brew install --cask clamshell.

Two kinds of sleep. Idle sleep is blocked by any keep-awake app. Lid sleep is blocked only by lid-closed apps: the lid closes and the Mac keeps working. Idle sleep any app Lid sleep lid apps only
Two kinds of sleep, one clear pick.Every app on this list can stop the idle timer. Only lid-closed apps stop the sleep that a closing lid triggers, and Clamshell does it with no admin rights.

Searching for an app to keep a MacBook awake turns up dozens of menu bar utilities, and most reviews treat them as interchangeable. They are not. This roundup checks 20 apps and built-in commands, 15 on October 5, 2026, four more on October 12 and Macchiato on October 15, against each one's own website, App Store listing or GitHub repository, and sorts them by the question that matters most: does the Mac stay awake when you close the lid? Clamshell comes first because it answers yes with no admin rights and nothing left behind.

Clamshell is listed with the same criteria as every other app here: lid-closed behavior, price, open source, admin rights, checked against its own published pages.

If you only want lid-closed depth, the Clamshell vs Amphetamine vs pmset comparison goes further on that one job. This page covers everything, idle and lid.

Idle sleep or lid sleep: which one stops your Mac?

macOS has two separate reasons to sleep. Idle sleep happens when nobody touches the Mac for the time set in System Settings. Lid sleep happens when you close a MacBook without an external display attached. Classic keep-awake apps create a power assertion that holds off idle sleep, the same thing caffeinate does. That assertion does nothing against lid sleep.

The same idle-only keep-awake app. With the lid open the job runs to the end. With the lid closed the job stalls and the Mac sleeps. z Lid open keeps running Lid closed sleeps anyway
Same app, same job, one closed lid. An idle-only keep-awake app holds the Mac up while the lid is open. Close the lid with no display attached and the Mac sleeps on schedule anyway.

Several developers say this plainly. Lungo's site says it can only keep a closed Mac awake when a charger and an external display are connected. Theine's App Store listing says it cannot prevent sleep on a closed MacBook with no additional display. KeepingYouAwake's maintainer closed issue #66 about the closed lid, and a newer proposal to add an opt-in pmset mode, issue #262, was still open as of October 2026.

All keep-awake apps compared (October 2026)

Prices, versions and requirements below come from each product's own page on October 5, 2026, for Insomnia, Capsomnia, Lidless and StillOn on October 12, 2026, and for Macchiato on October 15, 2026. Where a vendor does not say something, the cell says so instead of guessing.

Best overall for lid-closed use: Clamshell. It keeps a closed MacBook awake with no admin password, sudo rule, or root helper, and keeps thermal safety on at all times. The other lid-closed tools follow it, then the idle-sleep apps, which do not keep the Mac awake once the lid closes.

Lid-closed apps and commands

ToolLid closedPriceAdmin or rootVersionBest for
Keepresso Yes, closed-display mode Free, open source (GPL-3.0) Needs admin. A password once per app run, or none after approving its optional helper once 1.26.0
Oct 4, 2026
Free, trigger-heavy, agent-aware
Sleepless Yes, via pmset disablesleep Free, open source (MIT) sudo rule. Scoped, added at install 1.2.7 (macOS 26)
Jun 3, 2026
Auditable free lid switch
Adrafinil Yes, while agents work Free, open source (MIT) Root helper. A small one 1.9
Oct 4, 2026
Free agent-only sessions
Insomnia Yes, timed sessions Free, open source (MIT) sudoers rule. Password at install 0.1.0 (macOS 26)
Oct 10, 2026
Timed sessions that also pause chat apps
Capsomnia Yes, while Caps Lock is on Free, open source (MIT) Needs admin. At install, for a helper and sudoers rule 4.2.4
Oct 7, 2026
A physical Caps Lock switch
Lidless Yes Free, open source (MIT) Root helper. Approved once 0.1.3
Aug 6, 2026
A free one-click toggle with a watchdog
Macchiato Yes, via pmset disablesleep Free, open source (Apache-2.0) Root helper. Approved once 0.1.0
Apr 30, 2026
A free single Keep Awake switch
Hold My Lid Per its FAQ, while agents work $9.99 early bird, up to 3 Macs Not stated 1.0.6
Sep 12, 2026
Agent hooks for Claude Code, Codex, OpenCode
StillOn Yes, hold Fn while closing 7-day free trial, then $14.99 once for up to 3 Macs None stated; undocumented lid interface Beta, version not stated Paid, Intel and macOS 11 support
LidRun Yes, Pro only Free lid-open tier; Pro from $9.90 Admin prompt until its helper is approved 1.2.30
Oct 11, 2026
Agent auto-detection, Intel Macs
Helmlet Yes, with fan control €3.99 introductory Needs admin. Signed helper, password once 2.4.2
July 2026
Lid closed plus fan curves
Awake Yes on power; battery mode is optional $14.99 lifetime, launch price Helper installed for battery mode Not published Simple timers, lid closed on power
Amphetamine Yes, Closed-Display Mode Free Extra install. Power Protect on Apple Silicon: a script plus a configuration file in /private/etc/sudoers.d/, Touch ID or admin password once 5.3.2
Nov 10, 2023
Free all-round keep-awake with triggers
pmset disablesleep Yes Free, built into macOS Needs sudo. Stays on until undone Ships with macOS Terminal users who will undo it

Idle-sleep apps and commands

These hold off idle sleep only. Without an external display, they do not keep the Mac awake once the lid closes. Caffeinated's new 3.2.0 lid option is the one untested exception.

ToolLid closedPriceAdmin or rootVersionBest for
Caffeinated New option in 3.2.0 $3.99 Not stated 3.2.0
Sep 11, 2026
Simple paid idle app with timers
Lungo No, unless a charger and display are connected $4 on the App Store, or via Setapp No 2.8.3 (macOS 26)
Sep 15, 2026
Polished idle keep-awake
KeepingYouAwake No Free, open source (MIT) No 1.6.8
Sep 12, 2025
One-click idle toggle
Theine No $8.99 No 4.3
Oct 1, 2026
Keep-awake plus window focus dimming
caffeinate No Free, built into macOS No Ships with macOS One terminal job, lid open

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.

Why Clamshell is the best pick for a closed lid

The download is notarized by Apple, and Clamshell is $9.99 once for one Mac after a 7-day free trial, with a 14-day money-back guarantee.

Get our lid-closed pick. Clamshell is 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.

Best apps to keep a MacBook awake with the lid closed

This is where the list shrinks. Every tool below can keep a MacBook awake with the lid shut and no external display, according to its developer. They differ in how they get there, what they cost, and what they ask of your system.

Clamshell: our pick, no admin rights to stay awake

A menu bar app for Apple Silicon MacBooks on macOS 14 or later. While armed it keeps the Mac awake with the lid closed, with no sudo, admin password, kernel extension or helper. The built-in display stays black, the Mac stays on the network, and thermal safety disarms toward normal sleep at serious or critical pressure. $9.99 once after a 7-day trial. Clamshell for Mac is available only from clamshell.dev, on Setapp and through Homebrew. It is not on the Mac App Store; App Store apps named Clamshell are from other developers.

Keepresso: free, needs admin

Free and GPL-3.0, with triggers for agents, meetings, downloads and schedules. Closed-display mode switches pmset disablesleep with administrator rights: a password once per app run, or none after you approve its optional admin helper once. See Keepresso vs Clamshell.

Sleepless: free, sudo rule

One MIT-licensed AppKit file that flips pmset disablesleep, with a timer and battery floor. Its installer adds a sudo rule for exactly two pmset commands. Needs macOS 26 on Apple Silicon. See Sleepless vs Clamshell.

Adrafinil: free, root helper, agents only

Hooks into Claude Code, Codex and other agents and holds the Mac awake only while a session is active. It uses pmset disablesleep through a small root helper. See Adrafinil vs Clamshell.

Insomnia: free, timed, sudoers rule

MIT-licensed timed sessions that switch pmset disablesleep. Its installer needs your password and adds a sudoers rule covering your whole user account. On lid close it can freeze chat apps, mute audio and turn on Low Power Mode. Needs macOS 26, is not notarized, and calls itself experimental. See Insomnia vs Clamshell.

Capsomnia: free, Caps Lock switch

MIT-licensed. Caps Lock on keeps the Mac awake, Caps Lock off restores sleep. It switches pmset disablesleep through a privileged helper and a sudoers rule that need administrator access at install. Signed and notarized. See Capsomnia vs Clamshell.

Lidless: free, root helper

An MIT-licensed menu bar toggle that sets the SleepDisabled flag through a root helper approved once. A watchdog restores sleep if the app stops checking in, and it can pause on heat, low battery or when unplugged. Notarized, macOS 13 or later.

Macchiato: free, root helper

An Apache-2.0 menu bar app with one Keep Awake switch. It holds an idle-sleep assertion and sets pmset disablesleep through a privileged helper you approve once in System Settings; after a crash or force quit, its README says to run sudo pmset -a disablesleep 0. Release 0.1.0 is ad-hoc signed, not notarized. See Macchiato vs Clamshell.

Hold My Lid: paid, agent-aware

Reads lifecycle hooks from Claude Code, Codex and OpenCode and holds the Mac only while an agent works. Its FAQ says it holds the PreventUserIdleSystemSleep assertion and works with the lid closed and no external display; Apple's IOPMLib.h documentation says the system may still sleep for lid close with that assertion, so test it before a long run. $9.99 early-bird price for up to 3 Macs, with a free trial. See Hold My Lid vs Clamshell.

StillOn: paid, Fn-close

Hold Fn while closing the lid to arm it. Its site says it needs no password or sudo and uses an undocumented macOS interface for lid control. $14.99 once for up to 3 Macs after a 7-day trial, for Apple Silicon and Intel MacBooks on macOS 11 or later, in beta. Its homepage describes sessions that end when an agent finishes, while its FAQ says it does not watch the agent.

LidRun: auto-detection, Pro only

Free for lid-open sessions. Closed-Lid Mode is in Pro, from $9.90 for one Mac at its launch price, and its FAQ says it calls pmset disablesleep. Supports Intel Macs and macOS 13. See LidRun vs Amphetamine vs Clamshell.

Helmlet: lid closed plus fans

Adds fan curves and live temperatures, and ends closed-lid mode when the Mac gets too hot or drops below 15% battery. €3.99 introductory price, signed helper. See Helmlet vs Clamshell.

Awake: lid closed on power

Lid-closed mode needs the Mac plugged in; an advanced on-battery mode installs a background helper. $14.99 lifetime launch price, 3-day trial, Apple Silicon and Intel.

Amphetamine belongs here too: its Closed-Display Mode is free. On Apple Silicon laptops, its release notes say connecting or disconnecting power could cause unexpected session behavior, and the fix, Power Protect, is a separate download and install. Without any app, sudo pmset -a disablesleep 1 works but stays on, system-wide, until you set it back to 0. The pmset guide has the checks.

Do keep-awake apps need admin rights?

Idle-only apps generally do not. Lid-closed apps usually do, because the common mechanism, pmset disablesleep, is an administrator setting. Each app handles that differently: a helper approved once, a scoped sudo rule, or a password at install. Clamshell needs no admin rights to keep the closed Mac awake; 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. How keep-awake apps work explains each mechanism and what it leaves behind after a quit or crash.

Three routes. A power assertion cannot keep a closed Mac awake, so it sleeps. The pmset flag keeps it awake but needs root. Clamshell keeps it awake while armed, with no admin rights. Power assertion lid sleeps pmset flag root needed Clamshell no admin
Where the admin step comes from. Power assertions only stop the idle timer. The pmset flag stops lid sleep but needs root, so apps add helpers or sudo rules. Clamshell keeps the closed Mac awake while armed, with no helper or admin rights.

Apps for a lid that stays open

For downloads, presentations, renders and builds on a Mac that stays open, any of these does the job. None of them keeps the Mac awake once the lid closes without an external display, so for a closed lid, use Clamshell.

Amphetamine: free all-rounder

Free, with timers, triggers by app, Wi-Fi, power and more, and a Closed-Display Mode. Its last App Store update was November 2023, and it is still listed for free.

KeepingYouAwake: free toggle

Open source (MIT), one click, preset durations, and a low-battery cutoff. It wraps caffeinate, so it stays an idle-sleep tool.

caffeinate: nothing to install

Built into macOS. caffeinate -i make keeps the Mac up until the command finishes. The caffeinate guide covers the flags.

Lungo, Caffeinated, Theine: paid

Lungo is $4 on the App Store and included in Setapp; its current version needs macOS 26. Caffeinated is $3.99. Theine is $8.99 and adds a focus mode that fades background windows.

One recent change: Caffeinated's 3.2.0 release notes, dated September 11, 2026, add an "option to keep your system awake with the lid closed", while its App Store description still says the anti-sleep feature does not work with the lid closed. Test it on your own Mac before relying on it.

What is the best Amphetamine alternative?

For a closed lid, Clamshell: no Power Protect install, no admin setup, and nothing left switched on. For a free lid-open toggle, KeepingYouAwake. The Amphetamine alternative guide goes deeper on the lid-closed case.

If you need a free open-source tool, agent auto-detection, or an Intel Mac, Keepresso, Adrafinil, or LidRun covers that.

Frequently asked questions

What is the best app to keep a MacBook awake with the lid closed?

Clamshell for Mac is our pick. It keeps an Apple Silicon MacBook awake with the lid closed and no external display, with no admin password, sudo rule or root helper. A restart always brings back normal lid sleep, and thermal safety is always on. If the lid stays open, a free app such as Amphetamine or KeepingYouAwake, or the built-in caffeinate command, is enough.

Do I need admin rights to keep a Mac awake with the lid closed?

Not with Clamshell for Mac. It keeps the Mac awake with the lid closed while armed, with no sudo, admin password, kernel extension or helper. The built-in route, sudo pmset -a disablesleep 1, needs an administrator, and most other lid-closed apps wrap it in a privileged helper or sudo rule.

Does Clamshell leave anything behind?

No. Clamshell restores normal lid sleep when you disarm or quit, 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. It is also on Setapp.

Why does my keep-awake app not work when I close the lid?

Most keep-awake apps hold off idle sleep, the timer that puts an untouched Mac to sleep. Closing the lid triggers a separate sleep path that idle-sleep assertions do not block. Some apps say so in their own listings, including Lungo, Theine and KeepingYouAwake.

Is there a free app to keep a Mac awake with the lid closed?

Yes. As of October 2026, Keepresso, Sleepless, Adrafinil, Insomnia, Capsomnia, Lidless and Macchiato are free and open source and can keep a MacBook awake with the lid closed. All seven switch pmset disablesleep through an administrator helper or a sudo rule. Amphetamine's Closed-Display Mode is also free, with a separate Power Protect download for Apple Silicon power changes.

Does Amphetamine still work in 2026?

Amphetamine is still free on the Mac App Store. As of October 2026 its latest listed version is 5.3.2, released November 10, 2023. For Closed-Display Mode on Apple Silicon laptops, its release notes describe Power Protect, a separate download that handles connecting and disconnecting power.

The real app: hold Option and close the lid (on supported models). The blue state confirms that Clamshell is armed.

Close the lid, keep working. Try Clamshell free for 7 days. No admin rights, nothing left behind, $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

Sources checked October 5, 2026: Mac App Store listings and release notes for Amphetamine, Lungo, Caffeinated and Theine; sindresorhus.com/lungo and Lungo on Setapp; GitHub repositories and releases for KeepingYouAwake, Sleepless, Keepresso, Adrafinil and Hold My Lid; Sleepless, Keepresso, Adrafinil, Hold My Lid, Helmlet and its changelog, Awake, LidRun's pricing, FAQ and changelog; the macOS caffeinate(8) and pmset(1) manuals. Prices are the vendors' listed prices and may change. The original Caffeine app is left out because its site could not be reached. Clamshell is the publisher of this roundup. Product names belong to their respective owners. Checked October 12, 2026: GitHub repositories and releases for Insomnia, Capsomnia and Lidless, and StillOn's homepage and FAQ. Rechecked October 15, 2026: LidRun's download page and changelog, Keepresso's README, the Amphetamine Power Protect page and App Store listing, Hold My Lid's FAQ and Apple's IOPMLib.h and Macchiato's README and releases.