AI Developer Tools
Adrafinil
Keeps your Mac awake only while AI coding agents are actively working, and lets it sleep when they finish.
Adrafinil
What is Adrafinil?
Adrafinil is a macOS menu bar app that prevents system sleep—including clamshell (lid-closed) sleep—exclusively while an AI coding agent has an active session, then releases the block when no agent is working.
Adrafinil vs Similar AI Tools
| Pricing Model | Free | Free | Custom Pricing | Free, Paid |
| Free Credits | ||||
| Key Features |
|
|
|
|
| Pros |
|
|
|
|
| Cons |
|
|
|
|
| Best For |
|
|
|
|
How to use Adrafinil?
- 1Download the signed disk image from GitHub Releases.
- 2Drag Adrafinil to Applications and launch.
- 3Authorize the privileged helper on first launch.
- 4Install hooks for your agents via 'adrafinil install-hooks' or the app's UI.
- 5The app automatically manages sleep: blocks when agents work, releases when they sleep.
Adrafinil Key Features
- Agent-aware sleep management (blocks only when agents are active)
- Hook integration for 9 agents: Claude Code, Codex, Cursor, Gemini CLI, Aider, Hermes, OpenCode, Cline, Pi
- Sub-50ms CLI for acquire/release operations
- Reference-counted assertions for overlapping agent sessions
- Thermal cutout to prevent overheating while lid is closed
- Idle release for processes that die or go idle
- Optional process sniffing to auto-acquire without hooks
- Lid-close audio chime and lid-open summary
- Clean uninstall that removes all hooks
Adrafinil Use Cases
- Keep Mac awake during long AI coding sessions with the lid closed
- Ensure the machine sleeps normally when no AI agents are running
- Avoid overheating by auto-releasing sleep assertions on thermal threshold
Adrafinil Pricing & Free Credits
Adrafinil currently operates on a Free model.
This tool is completely free to use
Adrafinil Pros & Cons
Pros
- Agent-aware, not always-on
- Minimal resource usage
- Open source and auditable
- Supports many popular AI coding agents
- Thermal safety for lid-closed use
Cons
- Requires macOS 26.4 or later
- Requires root privileges for clamshell (lid-closed) sleep override
- Only available for macOS
What is Adrafinil best for?
- Developers using AI coding agents on macOS who want to keep their Mac awake only during active agent work
- Users who run agent tasks unattended with the lid closed