Coming soon for macOS
Keep your MacBook awake with the lid closed
AwakeLid is a small menu bar app for Mac. Close the lid and your Claude Code or Codex session, build, render or download keeps running. When the work is done, your Mac goes back to sleep on its own.
Why your Mac stops when you close the lid
macOS puts a MacBook to sleep the moment the lid closes. Tools like caffeinate and the usual keep-awake apps only stop idle sleep, so they do nothing once the lid is shut. Apple only supports closed-lid use when an external display, power and a keyboard are connected.
That was fine when jobs took a minute. In 2026 an AI coding agent can work for an hour on a single task. Close the lid to catch a train or go to bed, and the agent simply freezes until you open it again. AwakeLid is built to close that gap, and nothing more.
How AwakeLid will work
- Turn it on from the menu bar. One click keeps your MacBook awake with the lid closed, for 15 minutes, an hour, three hours, or until you turn it off.
- Or let it watch your agents. In agent mode AwakeLid keeps the Mac awake only while Claude Code, Codex or another agent you choose is actually working. If the agent is idle or waiting for your approval, it does not hold the Mac awake.
- Close the lid and walk away. The screen goes dark, the work keeps going. You can SSH back in or check your phone later.
- It sleeps when the job ends. A few minutes after the work goes quiet, normal sleep comes back and you get a notification.
Safety first, because a closed MacBook runs warm
Keeping a closed laptop awake is the easy part. Keeping it safe is the part we care about most. These protections are on by default in the first version.
Low battery
On battery, normal sleep returns at 10% charge, so you never come back to a dead Mac.
Heat
If macOS reports serious thermal pressure, AwakeLid lets the Mac sleep. Use it on a hard, ventilated surface, never inside a closed bag.
Watchdog
A separate helper restores normal sleep within seconds if the app crashes or is force quit. Your Mac will not get stuck awake.
Smallest possible access
Closed-lid mode needs an admin setting. The helper can only switch that one setting on and off. It cannot run anything else.
Who AwakeLid is for
- Developers who run Claude Code, Codex, Cursor or Gemini CLI on long tasks.
- Anyone with a long build, render, backup, upload or local model run on a MacBook.
- People who want to close the lid without an external monitor, keyboard and charger plugged in.
If you always work at a desk with a display attached, macOS clamshell mode may already be enough for you, and you probably do not need AwakeLid.
AwakeLid FAQ
Is AwakeLid available to download?
Not yet. AwakeLid is in development. Join the waitlist and we will send one email when it is ready to download.
Why doesn't caffeinate keep my MacBook awake with the lid closed?
caffeinate and most keep-awake apps prevent idle sleep. Closing the lid triggers a different kind of sleep that they do not block, unless an external display, power and keyboard are connected.
Will it work with Claude Code and Codex?
Yes, that is the main use case. In agent mode AwakeLid watches the agents you choose and keeps the Mac awake only while they are actually working.
Is it safe to keep a closed MacBook running?
It can run warm, so AwakeLid lets the Mac sleep on serious thermal pressure and at low battery. Keep the MacBook on a hard, ventilated surface and never run it inside a closed bag.
Why does it need an admin password?
Blocking lid sleep requires a system setting that only an administrator can change. A small helper is allowed to switch that one setting on and off and nothing else.
Which Macs and macOS versions will it support?
We are targeting macOS 14 Sonoma and later on Apple silicon MacBooks first. Final requirements will be listed at launch.
How much will it cost?
We plan a one-time purchase with a free trial, not a subscription. The price will be announced at launch.
Be first to keep your MacBook awake with the lid closed
AwakeLid is in development. Join the waitlist above and we will send a single email when you can download it.
Join the waitlist