Keep Mac Awake
Keep a MacBook awake with its lid closed
Keep Mac Awake · $9 · macOS 26 Tahoe or later
About Keep Mac Awake
Keep Mac Awake keeps a MacBook working with the lid closed, with no external display, keyboard or mouse, so AI coding agents such as Claude Code and Codex, builds, renders and downloads keep running while you are away. You start each session from the menu bar or with the keepmacawake command; a session never starts by itself.
Choose how long on a crescent dial, or no limit. When a timed session ends, normal sleep returns. A moon in the menu bar shows whether a session is on. On a MacBook running on battery, Run on battery turns itself on at 20% the first time unless you set it yourself, so your first session takes one click; with it off, a session needs AC power. Desktop Macs have no battery option. A separate watchdog restores the normal sleep setting if Keep Mac Awake's background service or the system service stops or hangs. A free trial is available from the developer's website.
An alternative to
Apps people use Keep Mac Awake instead of.