Clamshell mode without an external display.

Written and tested by Matyas Rathonyi. Updated July 12, 2026. Guides

Most answers online say it flatly: clamshell mode requires an external display. That is true of what macOS allows out of the box, and it is not the whole story. A MacBook can absolutely run with the lid closed and no monitor at all; here is every way to do it and what each one costs.

What clamshell mode actually is

Clamshell mode is Apple's name for using a MacBook with the lid shut while an external display, keyboard, and mouse do the work. The display requirement is not physics, it is a policy: macOS keeps an internal switch that decides whether closing the lid puts the Mac to sleep, and it only leaves the Mac awake when it detects an external display. No display, no exception; the lid closes and the Mac sleeps within seconds, even mid-task.

Plenty of situations want the opposite: a long build or download, an AI coding agent working overnight, a Mac used headless over SSH or screen sharing, or just a laptop doing its job from a bag or a shelf. For those, closing the lid should mean "screen off", not "stop everything".

Your options, honestly compared

An external display or an HDMI dummy plug

The official route. A dummy plug (a small adapter that pretends to be a monitor) satisfies the display requirement for around ten dollars; stock macOS typically also wants the Mac on power with an external keyboard or mouse attached. Downsides: it is hardware to buy, carry, and not lose; it occupies a port; and the phantom display it creates is real to macOS, so windows and dialogs can quietly open on a screen that does not exist.

sudo pmset -a disablesleep 1

Built into macOS and free, this root-level command stops the lid from sleeping the Mac. It is also a blunt instrument: it disables every kind of sleep, system-wide, until you remember to run it again with 0. Leave it on and the Mac stays awake in your bag on battery until it runs flat. It needs admin rights every time, and nothing in the menu bar reminds you it is active.

A keep-awake app with a closed-display setting

Amphetamine, the best-known keep-awake app, can do closed-lid sessions after enabling its closed-display mode in settings, and its own documentation notes extra setup on Apple Silicon. Most other keep-awake tools, including caffeinate and KeepingYouAwake, only prevent idle sleep and do not handle the lid at all.

A purpose-built app

Clamshell does one thing: hold Option, close the lid, and the Mac keeps running with the screen dark. Open the lid and it wakes instantly and disarms itself: arming is momentary, one lid-close at a time. It asks the power manager to skip lid-close sleep only, for the current session, through a single unprivileged call: no sudo, no kernel extension, no privileged helper. Disarming or quitting retries the restore and warns if macOS refuses it; a restart always returns normal sleep behavior because the switch is never saved across restarts. An optional low-battery switch lets the Mac sleep if the charge drops below a level you choose.

Clamshell gives you clamshell mode with no display attached. Free for 7 days, then $9.99 once.

Download free trial

Common questions

Running AI agents overnight is the most common reason people end up here; that workflow has its own guide: keep Claude Code running with the lid closed. For command-line details, read why caffeinate does not override the lid and what pmset disablesleep changes.

Amphetamine, KeepingYouAwake, and other product names are trademarks of their respective owners; comparisons are based on each product's public documentation.