keep your mac awake.
only while your agents are working.
even with the lid closed.
macos 14+ · signed · notarized
keeping mac awake
a 418 kB native mac app. light as air. lives next to your wifi icon. shows what it's watching and whether it's holding the mac awake.
what happens otherwise
the lid clicks shut.
everything dies.
no caffeinate. no half-open lid. just a forgotten lid-close on battery. macos clamshell-sleeps the whole machine. the agent loses its socket. the model loses the turn. you come back to a dead terminal and 20 minutes of inference billed to nothing.
how it works
agent-aware, not just a coffee cup.
watches every claude code transcript
tails the jsonl session files at ~/.claude/projects. distinguishes an active turn from a session waiting for your reply.
watches your agent processes
polls the process list every 5 seconds against a user-editable allowlist. 40+ known cli agents preloaded.
holds the mac awake on ac power
uses iopmassertion preventsystemsleep. lid closes, machine stays alive, agent keeps thinking.
overrides on battery, optionally
one-time admin prompt installs a scoped sudoers entry, then agent caffeine toggles pmset disablesleep only while an agent is mid-run.
lets the mac sleep when done
the instant every agent goes idle or waits for your input, the assertion releases. battery saved.
detects
every agent you run.
40+ cli agents preloaded. add your own in seconds.
one price
$9
once. lifetime updates. no subscription.
buy agent caffeinesigned · notarized · gatekeeper-clean
faq
questions.
does it really work with the lid closed on battery?
yes. lid closed on ac power works out of the box via iopmassertion. lid closed on battery also works once you grant the one-time sudoers install, after which agent caffeine toggles pmset disablesleep only while an agent is running. both paths, every chip.
what privacy concerns are there?
no network calls. no telemetry. agent caffeine reads files inside ~/.claude/projects and scans process names on your own machine. that’s the entire footprint.
what macos versions?
macos 14 sonoma or later. universal binary, runs natively on apple silicon and intel.
do i need to install a privileged helper or weird permissions?
only if you want the on-battery override. otherwise: no daemons, no helpers. just a menu bar app and an iopmassertion.
what if my agent isn’t in the default list?
open preferences. type the process name. it’s a simple allowlist you control.
