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 · macOS 11+ · Apple Silicon & Intel

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. On the moment you launch.

💻

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 auto-off after 15m, 30m, 1h, or a custom time you set to the minute.

🔒

One-time setup

Lid-closed mode asks for admin permission just once — no manual config, no dev account needed.

🪶

Featherweight

A few hundred lines of Swift, no dependencies. Lives quietly in your menu bar — no Dock icon, no background bloat.

🛡️

Safe by design

Always restores normal sleep when you turn it off or quit. It can never 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. A switch for each mode, a timer if you want one — that's the whole app.

  • Keep Screen Awake turns on automatically at launch
  • 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 ticks away in the menu bar as well as the panel
  • Quit any time to restore normal sleep
29:59
Keep Screen Awake
Prevents display sleep for active processes
Indefinite15m30m1hCustom
Awake — 29:59 left
Keep Awake on Lid Close
Continues running with the lid closed
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. After that, it just works — forever.

CaffeinateCat

Ready to stay awake?

Download CaffeinateCat 1.1.0 and keep your Mac running exactly as long as you need.

Unsigned build — right-click → Open the first time to get past Gatekeeper.