CaffeinateCat icon

Keep your Mac awake.
Even with the lid closed.

A tiny macOS menu-bar app that stops your Mac from sleeping — and keeps your builds, servers and agents running even when the lid is shut and unplugged.

Free & open source · Version 1.3.0 · macOS 12+ · Apple Silicon & Intel · Apache 2.0

Keep the cat awaketap the cup · close the lid
z Z build 0%

The coffee is the battery gauge. Let it run out and watch what happens.

Why CaffeinateCat

Small app. Big peace of mind.

Everything you need to keep your Mac running, nothing you don't.

☕

Caffeinate

Keeps your screen on and prevents idle sleep with a single click, or a right-click on the cup. On the moment you launch, if you like.

💻

Lid-closed mode

Shut the lid, unplug, and walk away — your Mac keeps running on battery. Perfect for travel.

⏱️

Built-in timers

Run indefinitely or switch off after 15m, 30m, 1h or any time up to 23h 59m. Timers keep counting while the Mac sleeps, and show when they end.

🔋

Battery-aware

The cup is a battery gauge, and keep-awake switches itself off at 20% and again at 10%, so a Mac in a bag can't run itself flat.

🔄

Updates itself

New versions arrive through Sparkle, signed and verified before they install. A handful of Swift files, no Dock icon, no background bloat.

🛡️

Safe by design

Restores normal sleep when you turn it off or quit, and a tiny watchdog does it even after a crash or Force Quit. It can't leave your Mac stuck awake.

Two modes

Pick how far you want to go

ModeScreen stays onBlocks idle sleepLid closed
Keep Screen Awake Yes Yes Mac sleeps
Keep Awake on Lid Close Yes Yes Stays awake ✦

Lid-close mode is a superset of the other — lid open, it behaves exactly the same; lid shut, it keeps going, even on battery.

It lives in your menu bar

Click the cup and the panel drops down; right-click it to switch keep-awake on or off in one go. The drink inside shows your battery, and the cup steams in lid-close mode.

  • One switch per mode — turning one on turns the other off
  • Pick 15m, 30m, 1h or a custom time, or leave it running indefinitely
  • The countdown shows in the menu bar and the panel, with the time it ends
  • Options: let the display sleep, cut off on low battery, start at login
  • Check for Updates… right in the panel
27:14
Keep Screen Awake
Prevents display sleep for active processes
Indefinite15m30m1hCustom
Awake — 27:14 leftuntil 14:32
Keep Awake on Lid Close
Continues running with the lid closed
Allow display to sleep
Turn off at 20% and 10% battery
Keep awake when app opens
Open at login
Check for Updates…
Quit⌘Q

Under the hood

How it works

01

Idle assertions

Caffeinate uses macOS's own beginActivity API to hold off idle and display sleep. No permissions required.

02

The lid-close trick

For lid-closed mode it sets the SleepDisabled flag via pmset — the only reliable way to stay awake with the lid shut on battery.

03

Ask once, run silently

A tiny, tightly-scoped permission rule is installed with one native admin prompt (Touch ID works too). After that, it just works.

04

Never stuck awake

A watchdog in its own process restores sleep if the app dies, and the app re-checks every 30 seconds and after each wake.

CaffeinateCat

Ready to stay awake?

Download CaffeinateCat 1.3.0 and keep your Mac running exactly as long as you need. It keeps itself up to date from then on.

If macOS asks the first time, right-click the app → Open.