Turns on by itself
Nothing to remember. From 10 PM, HODL keeps the Mac awake the moment an agent starts working, and lets it sleep once your agents finish.
HODL keeps your Mac awake so your AI agents keep working overnight, with the lid open or closed. From 10 PM it turns on by itself, so you don’t have to remember.

Open this page on your Mac to download.
Free · macOS 14 Sonoma or later · Apple silicon and Intel
The problem
You start a long agent run, close the lid, and go to bed. A few minutes later macOS sleeps, and the run stops halfway. In the morning you find a frozen terminal and a half-finished branch.
How it works

From 10 PM, HODL turns on by itself as soon as an agent is working. Earlier, click the moon in the menu bar or press ⌥ ⌘ L.

On AC or battery, the Mac stays awake with the lid closed. HODL can dim the screen, mute sound, and pause chat apps until you open it again.

When your agents go quiet, HODL lets the Mac sleep and tells you why it stopped.
Features
HODL lives in your menu bar and keeps the Mac awake only as long as your agents need it.
Nothing to remember. From 10 PM, HODL keeps the Mac awake the moment an agent starts working, and lets it sleep once your agents finish.
Keeps the Mac awake with the lid open, closed, or either. A closed lid on battery needs an optional helper, and HODL always undoes its change.
Lets the Mac sleep at 15% battery by default, and turns on Low Power Mode at 40% so the night lasts longer.
Eases off when macOS reports serious heat, and lets the Mac sleep at once if it becomes critical.
Overnight, timed, until 7 AM, or while an app runs, never past a 12-hour maximum unless you allow it.
hodl-run -- ./job.sh keeps the Mac awake while a command runs. A URL scheme and a local API cover the rest.
Every change has an undo
Before HODL changes lid sleep, brightness, or sound, or pauses an app, it writes the change down. Turn it off, quit, crash, or force quit: HODL, its next launch, or a small launchd backstop puts it all back. It always says why it stopped.

The menu bar
Click the moon for Cursor, Claude Code, Codex, Herdr, and Pi, plus the battery, the lid, and the heat. For Herdr, HODL asks each terminal’s status, so it knows exactly when Herdr’s agents work. Round switches keep the Mac awake, limit that to while agents work, turn the display off, go quiet when you close the lid, and turn sounds on or off.

Which switches to turn on
Stay Awake is the main switch. Nothing else keeps the Mac awake on its own.
The default. From 10 PM, Stay Awake turns on by itself when an agent works. Sleeps about 10 minutes after they finish.
Closing the lid dims the screen, mutes sound, and pauses chat apps. Opening it brings them back.
Stays awake for the whole session, even after your agents finish.
Sleeps as usual. Nothing else matters while Stay Awake is off.
On is blue in the menu bar, Off is grey. Whatever you choose, the Mac still sleeps at 15% battery or if it gets too hot. On battery, macOS sleeps when you close the lid unless you click Allow in the menu bar once; plugged in, nothing else is needed.
Install
Download HODL.zip and open it.
Drag HODL.app into Applications.
Open it. The first time, macOS may say it can’t verify the developer. Go to System Settings › Privacy & Security and click Open Anyway. You only do this once.
That’s it. From 10 PM, Stay Awake turns on by itself when an agent is working. Before then, click the moon in the menu bar and turn it on.
Tip: For a closed lid on battery, click Allow in the menu bar and enter your password once. It lets HODL run four pmset commands and nothing else.
Privacy
HODL sees which agents are running, never what they do. Hooks send only a session ID to your own Mac.