Compared, from each tool’s own page
Keep a Mac awake with the lid closed: apps compared
You can keep a Mac awake with the lid closed in three ways: macOS’s own clamshell mode, which Apple describes for when an external display, keyboard and mouse are connected; a Terminal setting, sudo pmset disablesleep, which Apple’s pmset manual does not document; or a menu-bar app. Apps whose own pages say they keep a Mac awake with the lid closed include Amphetamine, Keepresso and awake (free), Capsomnia and Awayke (open source), and Clamshell for Mac, InsomniaZ, LidRun’s Pro tier and lidawake (paid); KeepingYouAwake says it works only with the lid open, and Apple’s caffeinate manual never mentions the lid. zaYco, which publishes this page, makes lidawake, for people who want to leave a closed Mac running unattended: it watches heat and battery, and hands sleep back even if the app crashes. Every fact below comes from each tool’s own page and was checked on 13 November 2026.
The comparison
Each cell says what that tool’s own page says, quoted where the wording matters. “Not stated” means its page doesn’t say — not that the answer is no. Two tools we looked for are not here: Night Crew, whose site could not be reached on 13 November 2026, and Macchiato, whose README offers no public download. Prices are as each page showed them on 13 November 2026; some pages change currency by where you visit from.
| Tool | Lid closed, no external display | Hands sleep back if the app crashes | Stops on heat or low battery | Price | Open source | Source |
|---|---|---|---|---|---|---|
| caffeinateTerminal command in macOS | Not stated: Apple’s manual never mentions the lid | Yes, when it exits: its assertions last “until caffeinate exits” | Not stated | Built into macOS | Yes: Apple publishes its source (APSL 2.0) | Apple’s manual page |
| sudo pmset disablesleepTerminal setting in macOS | Not stated: Apple’s pmset manual doesn’t list disablesleep | Not stated | Not stated | Built into macOS | Yes: Apple publishes pmset’s source (APSL 2.0) | Apple’s manual page |
| macOS clamshell modeBuilt into macOS | No: Apple describes it with an external display, keyboard and mouse connected | Not stated | Not stated | Built into macOS | Not stated | Apple’s MacBook Pro guide |
| AmphetamineMac App Store app | Not stated. It says: “Keep your MacBook awake while its display/lid is closed” | Not stated | Low battery: yes. Heat: not stated | Free | Not stated | App Store listing |
| KeepingYouAwakeMenu-bar app | No: “only … with an open lid” | Not stated | Low battery: yes. Heat: not stated | Not stated | Yes, MIT | GitHub READMEkeepingyouawake.app |
| lidawake by zaYcoMenu-bar app — we make this one | Yes | Yes: its helper hands sleep back if the app crashes, freezes or is force-quit | Yes, both | $19 once for one Mac, $29 for three; 14-day free trial | Yes, MIT | Product pageGitHub |
| awake (crafter.run)Command-line tool and menu-bar app | Not stated. It says: “Keep your Mac awake with the lid closed.” | Yes, by its timer: “restores normal sleep on its own, even after a crash” | Not stated | Free | Yes, MIT | awake.crafter.run |
| AwaykeMenu-bar app | Not stated. It says it stops the sleep macOS does “when you close the lid” | No: “the setting may persist” | Low battery: optional. Heat: not stated | Not stated | Yes, MIT | GitHub README |
| CapsomniaMenu-bar app | Not stated. It says work isn’t interrupted “when the MacBook lid is closed” | Not stated. It “restarts the app after a crash”, then reapplies its setting | Not stated | Not stated | Yes, MIT | GitHub README |
| Clamshell for MacMenu-bar app | Yes: “Do I need an external display? No.” | Not stated. It can “relaunch after an unexpected exit”; quitting “returns the Mac to normal lid sleep” | Yes, both | “Free for 7 days then €9.99 once, or €19.99 for 3 Macs” (page as served in Slovakia) | Not stated | clamshell.dev |
| InsomniaZ – Never SleepMac App Store app | Yes: “with or without an external display” | Not stated | Not stated | $14.99 (US App Store) | Not stated | App Store listing |
| KeepressoMenu-bar app | Yes: “lid shut and no external display” | Yes: “even after a crash” | Yes, both | Free: “no paid tier” | Yes, GPL-3.0 | GitHub READMEkeepresso.com |
| LidRunMenu-bar app | Yes, in Pro: “lid shut, no monitor” | Not stated | Yes, both | Free with the lid open; closed-lid Pro “$9.90 One-time” (launch offer, 13 November 2026) | Not stated | lidrun.com |
When lidawake is not what you need
- Your lid stays open. You don’t need lidawake for that. caffeinate is built into macOS and prevents idle sleep, and Amphetamine is free.
- Your Mac is plugged in, with an external display, keyboard and mouse connected. Apple says you can keep working with the lid closed in that setup, with nothing else installed: macOS’s own clamshell mode already works.
- Your Mac has an Intel chip, or runs macOS 12 or older. lidawake needs an Apple Silicon Mac (M1 or later) with macOS 13 or newer.
- Your work is something “Keep awake until it goes quiet” does not see. It does not see a muted video in Chrome, Edge, Brave or Arc; an agent run from a script (
claude -p) or one that waits longer than 30 minutes between checks; a job on another computer; or CPU-only work inside the apps Apple ships, or under another user account. For those, pick “Keep awake until I turn it off” instead.
Why closing the lid is its own kind of sleep, and what clamshell mode does → Why does my Mac go to sleep when I close the lid?
Questions people ask
Does caffeinate keep a Mac awake with the lid closed?
Apple doesn’t say it does. Apple’s manual for caffeinate describes assertions that prevent idle sleep, display sleep and disk sleep, and system sleep on AC power only — it never mentions the lid. KeepingYouAwake, which calls itself “a small wrapper around Apple’s caffeinate command line utility”, answers its own question “Does it work on a MacBook with a closed lid?” with “No.”
Sources: Apple’s caffeinate manual · KeepingYouAwake README
Does clamshell mode need an external display?
Yes, as Apple describes it. Apple’s MacBook Pro guide says: “When you have an external display and accessories (like a keyboard and mouse) connected to your MacBook Pro, you can keep working even when the lid is closed.” Apple’s older closed-display article, support.apple.com/HT201834, now redirects to “Connect displays to your Mac”, which does not mention using a Mac with the lid closed.
Sources: Apple’s MacBook Pro guide · Connect displays to your Mac
Is it safe to run a Mac with the lid closed?
Apple documents it: its MacBook Pro guide describes working with the lid closed when an external display and accessories are connected. The care needed is heat. Apple’s safety guide says to place a MacBook Pro “on a stable work surface that allows for adequate air circulation under and around the computer”, and not under a blanket or pillow while it is connected to power. A closed lid covers the vents, so keep the Mac on a hard, flat surface — not a bed or a couch cushion. lidawake stops if your Mac runs hot or the battery reaches the level you set.
Sources: Apple’s MacBook Pro guide · Apple’s safety information
Which app keeps a Mac awake for Claude Code with the lid closed?
Several say so on their own pages. LidRun says it “detects tools like Claude Code, Cursor, Codex, Docker, and Ollama and keeps the Mac awake while they are working”. Clamshell for Mac asks “Running Claude Code or another coding agent overnight?” and says agents keep running with the lid closed. lidawake by zaYco has two ways on. “Keep awake until I turn it off” keeps the Mac awake with the lid closed until you switch it off or a safety limit stops it. In “Keep awake until it goes quiet”, an AI agent that asks the Mac to stay awake while it works — Claude Code in a terminal does — keeps it on, provided it checks in more often than every 30 minutes. It does not see Claude Code run from a script (claude -p); use “Keep awake until I turn it off” for that.
Sources: lidrun.com · clamshell.dev · lidawake FAQ
Written by zaYco s. r. o., who make lidawake. Every row was checked on 13 November 2026 against the tool’s own page, linked in its Source column. Spotted something that has changed? Write to support@zayco.it and we’ll correct it.