KeepingYouAwake vs Amphetamine: Which Mac Keep-Awake App to Use
KeepingYouAwake is a free, open-source menu bar switch that runs Apple's caffeinate for you. Amphetamine is a free App Store app with triggers, schedules and a closed-lid mode. Pick KeepingYouAwake for one click and Homebrew, Amphetamine for automation. Neither keeps Slack or Teams active.
Reading on your phone?
Run the idle test on your computer
Slack sets you away on your computer, so this free test runs there. Send yourself this page and press Start at your desk.
On this page
Both apps stop a Mac from sleeping, both are free, and both put a cup icon in the menu bar. The difference is how much they do. KeepingYouAwake is a small open-source switch: click the cup and it runs Apple's built-in caffeinate tool until you click again or a timer ends. Amphetamine is a full app from the Mac App Store with triggers, such as "stay awake while this app runs" or "while on this Wi-Fi", schedules, and a closed-lid mode. Pick KeepingYouAwake if you want one click and a Homebrew install. Pick Amphetamine if you want the Mac to decide for you, or need to close the lid. Neither app keeps Slack or Microsoft Teams active. They block sleep, but they send no keyboard or mouse input, and chat apps set you Away on input, not on sleep. Slack Green keeps your Slack dot green from a server with the Mac asleep or the lid shut, free for 7 days with no card.
KeepingYouAwake vs Amphetamine at a glance
| KeepingYouAwake | Amphetamine | |
|---|---|---|
| Price | Free | Free, no ads or in-app purchases |
| Source | Open source, MIT license | Closed source |
| Developer | Marcel Dierkes | William Gustafson |
| Install | GitHub download or brew install --cask keepingyouawake | Mac App Store |
| How it works | Runs /usr/bin/caffeinate | Its own power assertions |
| Timed sessions | Preset durations | Durations, end times, schedules |
| Automatic triggers | None | Apps, Wi-Fi, displays, power, battery, USB and more |
| Stop on low battery | Yes | Yes |
| Let the display sleep | Yes, an option | Yes, an option |
| Closed lid | No | Yes, with Amphetamine Enhancer |
| Automation | keepingyouawake:/// URL scheme | AppleScript |
Both are in active use. KeepingYouAwake's latest release, 1.6.8 from September 2025, added an icon for macOS 26 Tahoe and runs on macOS 10.13 and newer. Its README says 1.6.8 is the last version for Big Sur and older, so the next release will need a newer macOS.
KeepingYouAwake and Amphetamine keep the Mac awake, but Slack still sets you away 10 minutes after your last keyboard or mouse input. A server-side tool keeps your Slack dot green with no input, even while the laptop sleeps or the lid is closed.
What KeepingYouAwake does under the hood
KeepingYouAwake does not have its own sleep blocker. Its README calls it "a small wrapper around Apple's caffeinate command line utility", and its source code shows the exact command. When you click the cup, it starts:
/usr/bin/caffeinate -di -t <seconds> -w <app pid>
- •
-dstops the display from sleeping, and-istops the Mac from idle sleep. With "Allow display sleep" turned on, it passes-ialone. - •
-tis the timer, left out for an unlimited session. - •
-wties the command to the app, so quitting KeepingYouAwake ends it.
We ran the same caffeinate -di -t 15 on a Mac with macOS 26.5.2 and checked pmset -g assertions. It created two assertions named "caffeinate command-line tool": PreventUserIdleSystemSleep and PreventUserIdleDisplaySleep. That is all KeepingYouAwake does, and it is also why it is hard to break.
You can drive it from Terminal or a script through its URL scheme:
open -g "keepingyouawake:///activate?minutes=90"
open -g "keepingyouawake:///deactivate"
The README is also clear about the lid: on a MacBook it prevents sleep only "with an open lid."
What Amphetamine adds
Amphetamine is built around triggers. You set a rule once and the Mac stays awake whenever it applies:
It can also keep a MacBook awake with the lid closed. On recent Macs that needs a free companion app, Amphetamine Enhancer, and it is the most common reason Amphetamine "does not work": the lid mode is on but the Enhancer's helper is missing. The fixes, and the other alternatives, are in Amphetamine alternatives for Mac.
The cost is more settings to learn and an app you cannot inspect. For a one-off "stay awake for this download", many people find it more than they need.
Which one should you use?
caffeinate -di in Terminal, which is what KeepingYouAwake runs anyway. More in caffeinate on Mac.On a managed work Mac, also check what IT allows. A keep-awake app does not bypass a screen lock that a configuration profile sets, and some companies block App Store installs.
Neither app keeps Slack or Teams active
Both apps block sleep. None of them sends input, so apps that watch for activity still count you as idle:
What they do stop is the instant Away you get when the Mac sleeps.
KeepingYouAwake vs Amphetamine questions
Is KeepingYouAwake safe? It runs Apple's own caffeinate tool, and its code is public on GitHub under the MIT license.
Does KeepingYouAwake work with the lid closed? No. Its README says it prevents sleep only on desktop Macs and on MacBooks with the lid open.
Is Amphetamine better than KeepingYouAwake? It does more: triggers, schedules and a closed-lid mode. If you only click on and off, KeepingYouAwake does the same job with less to set up.
Do Mac keep-awake apps keep Teams green? No. They block sleep but send no input, so Teams still goes Away after about 5 idle minutes.
Related Articles
Caffeine vs KeepingYouAwake: Which Mac Keep-Awake Cup to Use
Caffeine and KeepingYouAwake are both free, open-source coffee cups for the Mac menu bar. KeepingYouAwake runs on macOS 10.13 and newer, wraps Apple's caffeinate, and can let the display sleep or stop on low battery. Caffeine needs macOS 14.6 and adds an optional cursor nudge that keeps Teams green. Which to pick.
Amphetamine vs Caffeine on Mac: Which Keep-Awake App to Use
Caffeine is a free, open-source menu bar cup that keeps a Mac awake with one click. Amphetamine is a free App Store app with triggers, schedules and a closed-lid mode. We checked both on macOS 26.5.2: versions, settings, and what each holds in pmset. Which to pick, and what neither one does.
Amphetamine Alternatives for Mac, and When to Switch
Amphetamine is free and covers almost every keep-awake case, so switch only for a reason: open source, one click, Shortcuts, a lid-closed setup without Enhancer, or nothing to install. The alternative for each, compared on price and features.