Adrafinil 1.0
Adrafinil keeps your Mac awake while an AI agent is working — even with the lid closed — then lets it sleep the moment the work is done. Close the lid, walk away; it wakes only for the work.
Highlights
- Hook integration for 9 agents. A one-click installer wires Adrafinil into the hook systems of Claude Code, Codex, Cursor, Gemini CLI, Aider, Hermes, OpenCode, Cline, and Pi.
- Sub-50ms CLI.
adrafinil acquire/releaseare called from agent hooks and round-trip to the daemon in under 50ms, so they never stall a workflow. - Reference-counted wake assertions. Overlapping sessions stack cleanly; sleep unblocks only when the last one releases.
- Thermal cutout. If skin/CPU temperature crosses threshold while the lid is closed, all assertions are force-released so a bag-bound Mac can't cook itself.
- Idle release. Assertions whose owning process has died or gone CPU-idle for N minutes are dropped automatically.
- Process sniffing (optional). The daemon can auto-acquire when it sees a known agent binary running, even without hooks installed.
- Clean uninstall. Removes every hook entry it added across all agent configs.
Install
Download Adrafinil-1.0.dmg, drag Adrafinil to Applications, and launch. Requires macOS 26.4 or later. The standard install asks for admin rights once to register the privileged helper via SMAppService; a non-admin path drops the CLI in ~/.local/bin instead.