About this Ship
awake keeps a Mac running with the lid closed. It wraps pmset -a disablesleep 1 with a timer and narrow permissions, for people and coding agents that need a laptop to keep working through a long task.
awake onkeeps the Mac awake for 1 hour by default and restores normal sleep on its own through alaunchdagent;awake on 3hor--foreverchange that.awake setupinstalls a sudoers rule limited to the twodisablesleepcommands, andawake setup --uninstallremoves it.- A SwiftUI menu bar app shows a sun icon with a live countdown and notifies you when the auto-off fires.
- Every command supports
--jsonwith a stable envelope and meaningful exit codes. awake statusshows the timer and warns when the Mac is on battery.
Try it: clone the repo, run bun install, bun run link:global and awake setup. More at https://awake.crafter.run.
