Menu bar app for macOS
Close the lid. Your Mac stays awake.
A one-click menu bar switch that keeps your Mac awake, for real, even with the lid shut.
Try it
One switch in your menu bar.
That is the whole app. A sun when your Mac stays awake, a moon when it can sleep, a little chime either way. Go on, click it.
What it is for
Made for long jobs.
Start it, close the lid, walk away. Anything that takes longer than you want to sit and watch keeps going until it is done.
AI coding agents
Hand Claude Code, Codex, OpenCode or Grok a long task, close the lid and go. They keep working until it is done.
Exports and renders
Final Cut, Premiere, DaVinci Resolve or Blender, all the way to the last frame.
Downloads and backups
A big model, a fresh Xcode, Time Machine or Backblaze. Close the lid at 3%, open it at 100%.
Remote access
Screen Sharing, SSH, AirPlay to the speakers, the dev server you open on your phone: your Mac still answers.
A home server, 24/7
An old Mac on a shelf, lid shut, up day and night: Plex, Home Assistant or Homebridge, reachable from anywhere.
How it works
Three steps. The third one is the point.
1Download and open Wham
Drag it to Applications and open it. It lives in your menu bar, next to the clock.
2Click the switch
The sun comes out and the chime plays. The very first time, macOS asks for your password, once.
3Close the lid
Your Mac keeps going. Claude Code finishes its task, the export reaches the last frame, the download hits 100%.
Most keep-awake apps only ask macOS to stay up, which it ignores once the lid closes, so Wham turns sleep off itself and back on when you are done.
Tiny
You will forget it is running.
Wham does one thing: every two seconds, it reads one kernel flag. While on, it also listens for the battery, the heat, the lid and the network, which macOS announces. The rest of the time it does nothing at all, and CI holds it to a budget.
2.9MB
The whole app, on disk. The download is 2.5 MB.
10MB
Of memory while it runs.
0.03%
Of one CPU core, idle: a hundredth of a second of work every 30 seconds.
0
Dependencies. No analytics, no trackers, no background daemon.
For scale: KeepingYouAwake takes 7.6 MB on disk, and Amphetamine is a 6.7 MB download before its helper apps. Measured on a MacBook Air, macOS 26.6.
Compare
Most keep-awake apps stop at the lid.
Keeping a Mac awake with the lid open is easy. Shut it, and macOS ignores the polite way to ask. Here is how the well-known apps handle a closed lid, on battery, with no screen plugged in.
WhamYes, on its own
Turns off the kernel's sleep flag, the one switch macOS honors with the lid shut, and back on when you are done: for as long as you say, down to a flat battery only if you ask, never past critically hot. Download, drag, click. macOS 11 or later, Intel too, signed and notarized.
2.9 MB on disk · Free
AmphetamineWith helper apps
Sandboxed by the App Store. For a closed lid it offers Amphetamine Enhancer, a separate app from outside the store, and on Apple silicon laptops Power Protect, another separate download.
6.7 MB download, plus helpers · Free · Source
CaffeineLid open only
Holds a power assertion: the polite request to stay up that macOS drops the moment the lid closes.
0.8 MB on disk · Free · Source
KeepingYouAwakeLid open only
A friendly switch for
caffeinate. In its own words, it “will only prevent sleep on desktop Macs and portable Macs with an open lid.”7.6 MB on disk · Free, open source · Source
caffeinateLid open only
Built into macOS, with the same power assertions. Even its strongest flag,
-s, is “valid only when system is running on AC power.”Built in · man caffeinate
On their own, App Store apps cannot, and the honest ones say so: Lungo “will not prevent your computer from sleeping if you close the lid. This is a Mac App Store limitation.” Source
FAQ
Good questions.
wham on 2h, or wham run before a command to stay awake just while it runs.ServerAliveInterval 60 in your SSH config keeps it alive. Wham keeps your Mac awake; it cannot keep a network up.wham log prints its last lines; it is also in ~/Library/Logs/Wham, which Console opens. It stays on your Mac, is never sent anywhere, and holds no network name, no address, and neither your name nor your Mac's. Two small files at most.wham command and its journal stay in English.Install
The same signed app as the download, plus the wham command. Run it again to update.
curl -fsSL wham.sh | shbrew install gwendall/tap/whamnpx wham.shCurious first? Read install.sh: it downloads the latest release, checks its signature, puts it in Applications and opens it.
The wham command
wham on on: your Mac stays awake, even with the lid closed wham on 2h on until 4:30 PM: your Mac stays awake, even with the lid closed wham status on until 4:30 PM: your Mac stays awake, even with the lid closed wham off off: your Mac sleeps as usual wham run make # awake while make runs, then as it was before
Uninstall
curl -fsSL wham.sh/uninstall | shIt quits Wham, which gives sleep back, then removes the app, the wham command, its settings, its journal and the sudoers rule below. With Homebrew: brew uninstall --zap wham. Read uninstall.sh.
# /private/etc/sudoers.d/wham, for user ID 501 (you) #501 ALL=(root) NOPASSWD: /usr/bin/pmset -a disablesleep 0, /usr/bin/pmset -a disablesleep 1