Adrafinil is an open-source macOS utility that prevents a Mac from sleeping while AI coding agents are actively working. It automatically detects agent activity through integrations with Claude Code, Codex, Cursor, Gemini CLI, and other development assistants. A privileged helper enables continued operation when a MacBook lid is closed. Each agent session receives an independent sleep-prevention hold that ends when its work finishes. Overlapping sessions keep the computer awake until all active holds are released. Thermal protection prevents excessive heat during unattended operations. Abandoned session detection automatically removes unnecessary holds. Users can configure manual or timed controls through the menu bar, command-line interface, and MCP integrations. Optional activity summaries provide information about recent agent operation.

Features

  • Automatic Mac sleep prevention during active AI coding agent sessions
  • Closed-lid operation through a privileged macOS sleep management helper
  • Claude Code, Codex, Cursor, Gemini CLI, and other coding agent integrations
  • Independent session tracking with automatic release after all agents finish
  • Thermal safety cutoff with abandoned session detection and cleanup
  • Manual sleep controls, timed holds, and command-line or MCP automation

Project Samples

Project Activity

See All Activity >

License

MIT License

Follow Adrafinil

Adrafinil Web Site

Other Useful Business Software
Ship Agents Faster Icon
Ship Agents Faster

Transform your applications and workflows into powerful agentic systems at global scale.

Gemini Enterprise Agent Platform lets you rapidly build, scale, govern and optimize production-ready agents grounded in your organization's data. The platform enables developers to build custom or pre-built agents for virtually any use case. New customers get $300 in free credits.
Start Free
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of Adrafinil!

Additional Project Details

Operating Systems

Mac

Programming Language

Swift

Related Categories

Swift Productivity Software, Swift AI Coding Tool

Registered

3 days ago