agent caffeine
buy · $9

keep your mac awake.
only while your agents are working.
even with the lid closed.

buy agent caffeine · $9

macos 14+ · signed · notarized

a macbook propped open on a xerox photocopier so the lid doesn't close
agent caffeine

keeping mac awake

opencode
CLI · active
now
wiki · landing page
Claude Code · active
now
claudemarketplaces.com
Claude Code · waitingForInput
14s
preferences…quit

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.

$ claude
> refactor the entire auth module
working...
edited 14 files
running tests...
[ lid closes ]
[ battery: clamshell sleep ]
connection lost
session terminated
$ _

how it works

agent-aware, not just a coffee cup.

01

watches every claude code transcript

tails the jsonl session files at ~/.claude/projects. distinguishes an active turn from a session waiting for your reply.

02

watches your agent processes

polls the process list every 5 seconds against a user-editable allowlist. 40+ known cli agents preloaded.

03

holds the mac awake on ac power

uses iopmassertion preventsystemsleep. lid closes, machine stays alive, agent keeps thinking.

04

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.

05

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.

Claude CodeCodexOpencodeCursor agentGemini CLIAiderAmpCrushGooseClineWindsurfOpenhandsForgecodeJunieRoo CodeTabnine CLIZencoderTraeQwen CodeQoderContinueCodebuddyCodestudioCodemakerAntigravityMistral VibeDevinDroidAugmentFirebenderHermesIflowKiloKiro CLIMcpjamPochiRovodevDeepagentsNeovateCommand Code+ user-editable allowlist

one price

$9

once. lifetime updates. no subscription.

buy agent caffeine

signed · 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.