Skip to content

Keep your Mac awake while agents run

2:06 · 5 chapters ·

Stop your Mac sleeping while coding agents run: lpm's Keep awake keeps your Mac awake while Claude Code, Codex or any other agent is working, then lets it sleep a few minutes after the last one finishes, so a long task never stops halfway because the Mac went to sleep.

Transcript

The narration, chapter by chapter. Pick a time to play from there.

Intro

Your Mac goes to sleep, and your coding agent stops halfway. lpm keeps it awake while agents work, and lets it sleep once they're done.

The Keep awake menu

At the bottom of the sidebar, click More, then Keep awake, and its menu opens. It's off, so your Mac sleeps on its usual schedule. You can keep it awake while agents work, for a set time, or until you turn it off. Choose While agents work. Then stay awake adds time after the last agent finishes: it's five minutes by default, and here we pick fifteen. Keep the screen on too is ticked, and On battery too keeps it awake unplugged, until the battery drops to twenty percent. Closing the lid still puts it to sleep, unless a display is connected.

While an agent works

Now give Claude some work. Click Claude in the header, and ask it to review the shop's code. Send it, and a steaming coffee cup appears on More: your Mac is kept awake. Open More, and Keep awake reads one agent. Click it to see why: one agent is working, and your Mac stays awake fifteen minutes after the last one finishes. Claude is done, so the countdown starts. Open More, then Keep awake: in fifteen minutes your Mac can sleep, unless another agent starts first.

For a set time

Leaving it overnight? Under For a set time, pick eight hours, or set your own with Custom. To keep the countdown in view, open More, click Keep awake's three dots, and choose Move to the sidebar. Now the sidebar counts down. Rest on it, and plus one hour adds an hour.

Until you turn it off

For no end at all, pick Until I turn it off: the sidebar reads On until you click Turn off, or quit lpm. So pick While agents work, and your Mac stays awake until your agents are done, then sleeps on its own.

More in Servers, phones and other computers

All lessons