FOR OVERNIGHT VIBE CODING

Your agent can work all night.
Your MacBook can stay closed.

Claude Code, Codex, and terminal agents often need hours. Lid Awake keeps macOS awake during the run. Closed-lid mode uses an approved helper so the MacBook can stay closed.

Close the lid · Keep the run alive · Pause to restore sleep

FEATURES

For the overnight part of vibe coding.

01

Agent runs

Start the run. Walk away.

Keep the Mac awake while the run is active.

02

Overnight sessions

Wake up to progress

Keep the Mac available so Codex, Claude Code, or a terminal agent can continue.

03

Battery guard

Stop before the battery is low

Optionally set a cutoff so Lid Awake pauses before the Mac drops too low.

04

Display control

Display off, Mac still awake

Turn the display off to save battery while the Mac stays awake for the job.

05

Lock on close

Security still matters

Optionally ask macOS to lock the screen when the lid closes.

06

Guardrails

Not an always-on hack

Battery cutoff, Low Power Mode, pause timers, and one-click restore keep it reversible.

HOW IT WORKS

Made for the moment you want to close the laptop

You start an agent run, realize it needs hours, and do not want to leave the MacBook open on your desk. Lid Awake holds wake assertions; closed-lid mode also needs the approved helper.

The workflow

  • Start Claude Code, Codex, or another long-running coding agent.
  • Turn on Lid Awake from the menu bar and set up the helper if you need closed-lid mode.
  • Close the MacBook. The display can turn off to save battery while the Mac stays awake if closed-lid mode is active.
  • Pause or quit Lid Awake when you want macOS to return to normal sleep behavior.

SPECS

Under the hood

PLATFORMmacOS 14 or later
ARCHITECTUREarm64 · Apple Silicon
WAKE METHODIOPMAssertion · system sleep, optional display assertion
CLOSED-LIDpmset -a disablesleep (approved helper)
HELPERLaunchDaemon · SMAppService · XPC
UPDATESSparkle 2 · signed appcast (EdDSA)
DISTRIBUTIONDeveloper ID · Notarized · DMG + zip · SHA-256
LICENSEMIT

INSTALL

Up and running in a minute

Homebrew

brew tap thuongtin/tap && brew install --cask lid-awake

Manual download

  1. Download the DMG and its .sha256 file from GitHub Releases.
  2. Verify the checksum:
shasum -a 256 -c LidAwake-0.1.2-macos.dmg.sha256
  1. Open the DMG and drag Lid Awake to Applications.

macOS 14 or later · Apple Silicon (arm64) only

Stop leaving your MacBook open all night.

Let the agent run, close the lid, and come back to check progress.