Keepresso
Keepresso
Getting started

How to keep your Mac awake

Updated Jul 4, 2026 2 min

There are a few ways to keep a Mac from going to sleep, depending on how much control you want. Here they all are, from the built-in options to a menu-bar app that does it on your terms.

The built-in ways

macOS has some of this built in:

  • System Settings. Under Displays, "prevent automatic sleeping when the display is off" keeps the system awake while it is plugged in. It is all-or-nothing, and only applies on power.
  • The caffeinate command. In Terminal, caffeinate keeps the Mac awake until you stop it, and caffeinate -t 3600 does it for an hour. It works, but it lives in a Terminal window and takes flags to remember.

These are fine for a quick, blunt "stay awake." They do not let you keep awake only under certain conditions, run with the lid closed on battery, or see what is holding sleep off.

The menu-bar way: Keepresso

Keepresso is a free, open-source menu-bar app built on the same macOS power technology as caffeinate, with the controls those built-in options lack. Flip it on from the menu bar and pick how you want it to behave:

The Keepresso menu in three states: idle with the system able to sleep; a timed session counting down in the menu bar; and a trigger-held session showing the process claude running as the condition keeping the Mac awake

Common reasons to keep a Mac awake

The quickest start

Install Keepresso and click the cup in your menu bar:

brew install --cask gyorgysh/keepresso/keepresso

Full steps in Install Keepresso and keep your Mac awake.

Get Keepresso

Free and open source, for macOS 14 and newer. Install it and keep your Mac awake on your terms.