by newmarcel

newmarcel /KeepingYouAwake

Prevents your Mac from going to sleep.

3.8K Stars 158 Forks Last release: 3 months ago (1.5.2) MIT License 364 Commits 27 Releases

Available items

No Items, yet!

The developer of this repository has not created any items for sale yet. Need a bug fixed? Help with integration? A different license? Create a request here:


KeepingYouAwake is a small menu bar utility for macOS (Version 10.12 and newer) that can prevent your Mac from entering sleep mode for a predefined duration or as long as it is activated.


Download the latest version here.

or install it via cask:

brew cask install keepingyouawake

How does it work?

The app is a small wrapper around Apple's

command line utility. All current versions of macOS ship with this tool by default. You can read the manual page here.

Is this dangerous?

This utility will not harm your Mac because it is based on an official command line tool by Apple. BUT I cannot guarantee anything, so use this tool AT YOUR OWN RISK.

Inspired by Caffeine

KeepingYouAwake is inspired by Caffeine from Lighthead Software. I used it for many years, but sadly it hasn't been updated in a while. Eventually in 2014 I decided to build a replacement for myself that was optimized for macOS Yosemite and used the

command line tool under the hood.

Still using macOS Yosemite?

Version 1.5.2 is the latest release that supports macOS Yosemite and El Capitan.

Help Wanted!

Do you want to improve the app or add useful features? Please go ahead and create pull requests. I'm thankful for any help.

Building the Source Code

KeepingYouAwake uses Sparkle's

branch to deliver updates. You can build and sign Sparkle with
make Vendor
. To build a release version of the app just run
make dist


Everything in this project is licensed under the MIT license. Provided image assets are also covered by this license.

Although it's not required please do not redistribute forked versions of the app with the same name and icon. Thanks!

We use cookies. If you continue to browse the site, you agree to the use of cookies. For more information on our use of cookies please see our Privacy Policy.