Keep Mac coding agents awake with Capsomnia
Capsomnia is a free open-source macOS utility that turns Caps Lock into a physical keep-awake switch for closed-lid agent runs, SSH sessions, builds, and downloads. Check the macOS 14+ Apple silicon requirement and heat/battery caveats bef...
What you get from it
Capsomnia is a free open-source macOS utility that turns Caps Lock into a physical keep-awake switch for closed-lid agent runs, SSH sessions, builds, and downloads. Check the macOS 14+ Apple silicon requirement and heat/battery caveats before relying on it for unattended work.
Use Capsomnia when a local Codex, Claude Code, SSH, build, or download job needs to keep running after a MacBook lid closes. Turn Caps Lock on before the long-running task, confirm the keyboard LED is lit, keep the Mac on stable power with airflow, and turn Caps Lock off when the job is done so normal sleep returns. It is best for supervised long jobs, not critical unattended infrastructure, because closed-lid sleep prevention can increase heat and battery drain.
Discussion
Share practical experience, questions, or warnings with the community.
Sign in to join the discussion and vote on comments.
Sign in