Skip to content

Roundups

The best ways to keep a Mac awake

By · Updated

Short answer

Without installing anything, Terminal’s caffeinate keeps the Mac awake for as long as you say. Amphetamine is the best free app, with triggers and closed-lid mode. Lungo ($4, macOS 26) is the simplest menu bar switch, and KeepingYouAwake is a free, open-source one. Peekaboo’s Keep Awake comes with Clear Desktop for screen sharing.

How we picked. Prices and requirements from each vendor’s own page or App Store listing, checked November 13, 2026. KeepingYouAwake was added on November 21, 2026, checked on its site and GitHub. Peekaboo is our app; it’s listed with its gaps, like the others.

Before you buy anything: caffeinate (built in)

Type caffeinate -d in Terminal and the Mac and its display stay awake until you press Control-C; add -t 3600 for an hour. Free and exact, with no menu bar switch.

At a glance

AmphetamineBest for: Free, with triggers and closed-lid modePrice: Free, no in-app purchasesRequires: macOS 10.13 or later
LungoBest for: A simple menu bar switch on macOS 26Price: $4 one-timeRequires: macOS 26 or later
KeepingYouAwakeBest for: Free and open source, one click in the menu barPrice: Free, open source (MIT)Requires: macOS 10.13 or later
PeekabooBest for: Keep awake plus Clear DesktopPrice: $24.99 one-time (launch price $9.99 until Nov 30)Requires: macOS 14 Sonoma

Amphetamine: Free, with triggers and closed-lid mode

The free keep-awake app, with triggers and closed-lid mode.

  • Free, no in-app purchases
  • Triggers by app, display, network or battery
  • Closed-lid mode
  • Runs on old macOS versions

Gaps: Its latest App Store version, 5.3.2, is from November 2023.

Free, no in-app purchases · macOS 10.13 or later · source: Mac App Store listing id937984704, verified 2026-11-13

Amphetamine websiteAmphetamine vs Peekaboo

Lungo: A simple menu bar switch on macOS 26

A small menu bar app that keeps the Mac awake for a set time.

  • One click in the menu bar
  • Preset and Shortcuts durations
  • In Setapp

Gaps: Needs macOS 26 or later.

$4 one-time · macOS 26 or later · source: sindresorhus.com/lungo, verified 2026-11-13

Lungo websiteLungo vs Peekaboo

KeepingYouAwake: Free and open source, one click in the menu bar

A free, open-source menu bar switch that keeps the Mac awake.

  • Free and open source
  • One click in the menu bar
  • Preset durations
  • Stops when the battery is low

Gaps: It only prevents sleep with the lid open, and its latest release, 1.6.8, is from September 2025.

Free, open source (MIT) · macOS 10.13 or later · source: keepingyouawake.app and github.com/newmarcel/KeepingYouAwake, verified 2026-11-21

KeepingYouAwake websiteKeepingYouAwake vs Peekaboo

Peekaboo: Keep awake plus Clear Desktop

Keep Awake holds off sleep for 15 minutes to 5 hours or until you stop it; Clear Desktop hides desktop icons and the Dock.

  • Clear Desktop for screen shares
  • A cup in the menu bar while it’s on
  • Part of a larger Mac app

Gaps: No triggers and no closed-lid mode.

$24.99 one-time (launch price $9.99 until Nov 30) · macOS 14 Sonoma

Try Peekaboo free

Questions

How do I stop my Mac sleeping without an app?

Run caffeinate -d in Terminal and leave the window open, or caffeinate -d -t 3600 for one hour.

Can a MacBook stay awake with the lid closed?

With an external display, power and a keyboard connected, yes, natively. Without a display, Amphetamine’s closed-lid mode does it with a helper.

Your privacy choices

With your permission, Google Analytics and our self-hosted Minilytics measure visits to this site using cookies. Privacy policy.