Caffeinate & Disablesleep

cnd.demiao.cc

Free open-source menu bar utility with three modes to keep your Mac awake, including preventing sleep when the lid is closed

Caffeinate & Disablesleep prevents a Mac from sleeping via a menu bar interface that wraps two commonly-used terminal commands into three selectable modes. The app is aimed at users who need reliable wake states without repeatedly entering terminal commands. (Free, open-source)

Three modes cover different scenarios. Awake Session keeps the Mac awake for a set duration but only works with the lid open. Caffeinate prevents sleep even when the lid is closed, though the screen still dims after inactivity. Caffeinate + Disablesleep maintains a full wake state regardless of lid position until the user manually disables it.

Initial setup requires a one-time password prompt to install a sudoers rule. Subsequent mode changes require no further authentication, making quick toggling practical. The app is available via DMG download or Homebrew installation.

Source code is available under the MIT license. No analytics, tracking, or network connections are included.

System requirements: macOS 14 Sonoma or later.

Pricing: (Free, open-source) Available via DMG download or Homebrew.

Limitations: The Awake Session mode does not function when the lid is closed. The sudoers rule installation, while a one-time step, may concern users who prefer not to modify system security settings.

Alternatives: Amphetamine (feature-rich, App Store, free), KeepingYouAwake (open-source, simpler), Lungo (minimal, paid).

Suitable for users who need precise control over Mac sleep behavior when running scripts, processing files, or using a Mac Mini or closed-lid laptop configuration without an external display.

FAQ

What does Caffeinate & Disablesleep do?+

Caffeinate & Disablesleep prevents a Mac from sleeping with three configurable modes: a timed Awake Session, a Caffeinate mode that prevents sleep with the lid closed, and a Caffeinate + Disablesleep mode that keeps the Mac fully awake regardless of lid position until manually disabled.

Is Caffeinate & Disablesleep free?+

Yes. The app is free and open source under the MIT license, available via DMG download or Homebrew.

Does the app require a password each time?+

A one-time password prompt installs a sudoers rule. After that, enabling or disabling sleep prevention requires no further authentication prompts.

How is this different from macOS's built-in caffeinate command?+

The app wraps two terminal commands—'caffeinate -disu' and 'sudo pmset -a disablesleep 1'—into a menu bar interface with three distinct modes, eliminating the need to type commands manually each time.

What are the system requirements for Caffeinate & Disablesleep?+

The app requires macOS 14 or later.

Related Apps