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.

Checked on 13 November 2026, on each tool’s own page.
ToolLid closed, no external displayHands sleep back if the app crashesStops on heat or low batteryPriceOpen sourceSource
caffeinateTerminal command in macOSNot stated: Apple’s manual never mentions the lidYes, when it exits: its assertions last “until caffeinate exits”Not statedBuilt into macOSYes: Apple publishes its source (APSL 2.0)Apple’s manual page
sudo pmset disablesleepTerminal setting in macOSNot stated: Apple’s pmset manual doesn’t list disablesleepNot statedNot statedBuilt into macOSYes: Apple publishes pmset’s source (APSL 2.0)Apple’s manual page
macOS clamshell modeBuilt into macOSNo: Apple describes it with an external display, keyboard and mouse connectedNot statedNot statedBuilt into macOSNot statedApple’s MacBook Pro guide
AmphetamineMac App Store appNot stated. It says: “Keep your MacBook awake while its display/lid is closed”Not statedLow battery: yes. Heat: not statedFreeNot statedApp Store listing
KeepingYouAwakeMenu-bar appNo: “only … with an open lid”Not statedLow battery: yes. Heat: not statedNot statedYes, MITGitHub READMEkeepingyouawake.app
lidawake by zaYcoMenu-bar app — we make this oneYesYes: its helper hands sleep back if the app crashes, freezes or is force-quitYes, both$19 once for one Mac, $29 for three; 14-day free trialYes, MITProduct pageGitHub
awake (crafter.run)Command-line tool and menu-bar appNot 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 statedFreeYes, MITawake.crafter.run
AwaykeMenu-bar appNot stated. It says it stops the sleep macOS does “when you close the lid”No: “the setting may persist”Low battery: optional. Heat: not statedNot statedYes, MITGitHub README
CapsomniaMenu-bar appNot 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 settingNot statedNot statedYes, MITGitHub README
Clamshell for MacMenu-bar appYes: “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 statedclamshell.dev
InsomniaZ – Never SleepMac App Store appYes: “with or without an external display”Not statedNot stated$14.99 (US App Store)Not statedApp Store listing
KeepressoMenu-bar appYes: “lid shut and no external display”Yes: “even after a crash”Yes, bothFree: “no paid tier”Yes, GPL-3.0GitHub READMEkeepresso.com
LidRunMenu-bar appYes, in Pro: “lid shut, no monitor”Not statedYes, bothFree with the lid open; closed-lid Pro “$9.90 One-time” (launch offer, 13 November 2026)Not statedlidrun.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.