Skip to content
Edith

Lid Awake

Keep a MacBook awake with the lid closed

Close the lid and your MacBook keeps working: builds finish, downloads complete and agents carry on.

Mac Utilities
Get Edith for $35
ed extensions install lidAwake

Lid Awake is an Edith extension that stops a MacBook from sleeping when you close the lid, with no external display needed. A session can end on a timer, when the lid opens again, or when the battery drops below a floor you set.

macOS puts a MacBook to sleep the moment the lid closes, unless it is in clamshell mode, which needs a power adapter, an external display and an external keyboard or mouse. That leaves out the most common case: you want to shut the laptop, move it out of the way and let a long build, a large download, a remote session or a set of coding agents keep going. Lid Awake turns that into one switch on Home, in the notch or in the terminal.

Under the hood it changes the same system power setting you could flip by hand with pmset disablesleep, but through a small helper you approve once in Login Items, so you never type sudo. Edith keeps track of the session and puts normal lid-close sleep back when you turn it off, when a timer runs out, and by default when Edith quits. You choose how long a session lasts: until you turn it off, 15 minutes, 30 minutes, 1 hour, 2 hours, or until the lid closes and opens again.

A closed MacBook still draws power and gives off heat, so Lid Awake has two safety nets. A battery floor pauses it when the charge falls below the percentage you pick, and Edith's battery saver switches it off while you are unplugged unless you allow it on low battery. Before it turns on, Edith reminds you not to put the Mac in a bag. It is meant for a laptop on a desk or a stand.

Updated

Edith Home with Lid Awake on for 2 hours: lid sleep disabled, a 20 percent battery floor, a Restore sleep button, and the Lid awake quick action lit

How to keep a MacBook running with the lid closed

  1. 1

    Approve the helper once

    macOS asks you to allow Edith's background helper in Login Items.

  2. 2

    Choose how long

    Pick a session: until you turn it off, a set time, or until the lid reopens.

  3. 3

    Stay safe on battery

    Set a battery floor so it pauses before the battery runs flat.

What it does

Keep running with the lid closed

Builds, downloads and agents keep going when you close the lid.

Does macOS do this already?

Can a MacBook stay awake with the lid closed without extra software?

Partly. Apple's clamshell mode keeps a closed MacBook running only while it is connected to power, an external display and an external keyboard, mouse or trackpad. Without a display there is the Terminal route, sudo pmset -a disablesleep 1, which works but stays on until you run it again with 0 and pays no attention to the battery. Lid Awake uses that same system setting through an approved helper, adds timed sessions and a battery floor, and restores normal sleep when the session ends.

Use cases

Let coding agents finish overnight

Start your Claude Code or Codex sessions, run ed lid-awake on --yes, close the lid and go to bed. If the charger is not connected, set ed lid-awake battery 20 first so the Mac pauses before the battery runs flat.

Carry the laptop without stopping a transfer

Closing the lid to walk to another room normally interrupts an upload or a large download. A 30 minute or 1 hour session keeps it going and ends on its own, so you do not have to remember to switch it back.

Run the MacBook as a closed build or SSH box

With the lid shut on a stand, the Mac keeps serving builds, tests or an SSH session you reach from another computer. The until-the-lid-reopens session restores normal behaviour as soon as you open it again.

From the terminal and your coding agents

Every example returns JSON with --json, and agents can call the same thing over MCP.

Terminal
ed lid-awake statused lid-awake on --for 1hed lid-awake off
CommandMCP tools
ed lid-awakeedith_lid_awake_*

Connect Claude Code, Codex, Cursor or another client through the Edith MCP server.

Permissions and requirements

Permissions

  • Approve Edith's background helper in Login Items the first time you turn Lid Awake on

Requirements

  • A MacBook running macOS 14 or later on Apple silicon
  • Edith running during a session; quitting restores lid-close sleep unless you change that

Recent changes

Frequently asked questions

Is Lid Awake the same as Keep Awake?

No. Keep Awake stops idle sleep while the lid is open, so the display stays on. Lid Awake stops the sleep that happens when you close the lid. Use Keep Awake for reading or presenting, and Lid Awake for work that should continue with the laptop shut.

Do I need an external monitor for it to work?

No, and that is the point of it. Apple's clamshell mode needs an external display and keyboard, while Lid Awake keeps the Mac running with nothing plugged in at all.

Is it safe to leave a MacBook running with the lid closed?

On a desk or a stand it is fine for most jobs, but the Mac keeps drawing power and producing heat. Never put it in a bag or a sleeve while a session is active, and set a battery floor when it is not on the charger.

What happens if I quit Edith during a session?

By default, quitting Edith restores normal lid-close sleep. You can turn that off with ed lid-awake restore-on-quit false --yes, but then you would have to restore lid-close sleep yourself.

Can Claude Code or another agent turn Lid Awake on?

Yes. Edith's MCP server provides edith_lid_awake_status, edith_lid_awake_on and edith_lid_awake_off. Turning it on changes power settings, so the request is previewed first and only applied after confirmation, just like ed lid-awake on --for 1h without --yes.

Does Lid Awake cost extra on top of Edith?

No. Lid Awake ships as one of Edith's extensions and is covered by the same one-time purchase as the rest of the app.

More in Mac Utilities

Keep AwakeStop your Mac and display from going to sleep while you work.Audio DevicesChoose where sound plays, and keep it there.⌃⌥⌘OMic MuteMute every microphone on your Mac with one shortcut.⇧⌘MPresenterBlur private details and draw on your screen while you present.⌥⇧⌘PMenu Bar StatsSee how busy your Mac is, right in the menu bar.HomebrewInstall, update and remove Homebrew packages without the terminal.Cursor PacksGive your Mac a new pointer in one click.Messaging DownloadsKeep WhatsApp, Telegram and Signal files from piling up in Downloads.Voice TypeHold a key, speak, and your words appear wherever you type.⌃⌥DText GrabCopy text you can see but cannot select.⌃⌥⌘THyper KeyTurn Caps Lock into a power key and remap keys without extra drivers.Finder PlusCut and paste files, rename in bulk and create new files right in Finder.⌃⌥⌘NQuick TogglesOne tap for the switches and actions macOS hides in menus and Terminal.DisplaysEvery display's brightness, sound and input in one place.Window SwitcherSwitch between windows, not just apps.⌥TABWhat's Using ThisFind out what keeps a disk from ejecting, then let it go.Default AppsChoose which app opens what, in one table.Window TilingSnap windows into halves, zones and saved workspaces from the keyboard or by dragging.⌃⌥LApp BehaviorMake each Mac app quit, close and handle its windows the way you expect.Notch PetA small animated friend beside the notch that reacts to your Mac.Menu Bar StylesColour, glass and island shapes behind the see-through menu bar.Cursor EffectsTrails, click ripples and a spotlight that follow your pointer.⌃⌥SSound PacksGive every key press, click and alert a sound of its own.CalendarYour next meetings at a glance, with one-click join.⌃⌥⌘JRunning AppsSee what is running, in apps and in the background, and stop what you do not need.Keyboard CleanLock the keyboard and clean your keys without typing anything.CleanerUnderstand your storage. Choose what goes.App UpdatesKeep your apps current and remove them cleanly.Radial MenuA pie menu around the pointer for the things you do all day.⌃⌥SpaceNetworkSee what the network is doing, right now and over the day.Mouse TunerMake a third-party mouse feel right on a Mac.ScratchpadQuick notes that are always one shortcut away.⌥⌘NSystem HealthWatch how your Mac is doing and hear about it before it becomes a problem.Input SwitchEach app keeps its own keyboard language, like on Windows.⌃⌥⌘IPower TimerSleep, shut down or restart later, or when something finishes.Battery CareKeep the battery healthy while the Mac stays plugged in.ChimeRemember what comes next.KeytrailFind and run any menu command without leaving the keyboard.⌃⌥⌘GDesk LoomPut every window back where it belongs.SwitchyardLet familiar events start a useful sequence.WaylineSend files and text to nearby phones and computers running LocalSend.LonghandType a snippet keyword and get the full text, in any app.SpanwellMeasure an image and bring the dimensions into your next change.⌃⌥⌘UCrosswaySend each link to the right browser.