Skip to content
Join the community

awake

Keep your Mac awake with the lid closed - safe by default, built for humans and agents

CCrisCore

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 on keeps the Mac awake for 1 hour by default and restores normal sleep on its own through a launchd agent; awake on 3h or --forever change that.
  • awake setup installs a sudoers rule limited to the two disablesleep commands, and awake setup --uninstall removes 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 --json with a stable envelope and meaningful exit codes.
  • awake status shows 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.

Maker

CCris@camilocbarreraCore

Probably Statistician ~

View profile

Updates

Every release and change, newest first.

No updates yet. New releases and changes will show up here.

Your turn

Your project can be on this wall.

Publishing takes a couple of minutes. Pick the way that fits how you work.

Publish your Ship