What is Adrafinil?
Keep your Mac awake only while AI agents are still working, then let it sleep normally.
Verified product facts
- Type
- battery and power utilityEditorially reviewed
- Platform
- macOS
- Pricing
- Open sourceDeveloper-stated
- Open source
- Yes
- Relationship to Nuanyue
- Third-party product — not published by NuanyueEditorially reviewed
- Licence
- MIT
- Current version
- 1.8Developer-stated
- Official website
- kagerou.glass/adrafinil/
Last updated . Facts marked developer-stated come from the developer and are not independently confirmed; editorially reviewed marks a Nuanyue judgement.
Key features
What Adrafinil does at a glance.
Agent-aware, not always-on. Sleep is blocked only while ≥1 agent session holds an assertion. Zero sessions → normal sleep, including lid-close
Sub-50ms CLI
Adrafinil acquire / release are called from agent hooks and round-trip to the daemon in under 50ms, so they never stall an agent's workflow
Reference-counted 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
Links
Sources
Facts on this page are checked against the sources below. Last updated .








