Caffeine for Mac Alternatives (2026)
Lighthead's Caffeine for Mac is discontinued. Compare KeepingYouAwake, Amphetamine, Lungo, the new Caffeine, Glowmoth and the built-in caffeinate command.
AlternativesUpdated 12 min read
On this page
Caffeine for Mac, Lighthead's coffee-cup menu bar app that kept Macs awake with one click, is discontinued and no longer maintained by Lighthead. Two projects use the name today: an open-source continuation at caffeine-app.net, and a separate, newer open-source app on GitHub (iannuttall/caffeine) built around coding agents. If you want a simple, free replacement, start with that continuation or KeepingYouAwake. If you don't want an app at all, the built-in caffeinate command does the job from Terminal.
The quick list, as of November 2026:
caffeinate(built into macOS): best for occasional use with nothing to install.- KeepingYouAwake: best for a free, small menu bar app with timers.
- Lungo: best for a simple toggle on macOS 26 Tahoe, for $4.
- Amphetamine: best for free automatic triggers (Wi-Fi, USB, apps, downloads and more).
- Caffeine (Agent Watch, iannuttall): best for free, hook-based awareness of Claude Code and Codex.
- Glowmoth: best for automatic rules plus a clear answer to "why is my Mac awake?"
We make Glowmoth, so weigh our view accordingly. We've tried to be fair to every app here, and for many people a free option is enough.
What happened to the original Caffeine app
Caffeine was a free menu bar utility from Lighthead Software. It stopped the Mac from sleeping, dimming the screen or starting the screen saver. The coffee cup icon was empty when it was off and full when it was on. The sources we found show no rules, command line or "why is my Mac awake" view; it was a single on/off switch.
Lighthead no longer maintains it. A third-party archive of the project calls it "the original Caffeine which seems to be discontinued." Sources disagree on when it first appeared: SourceForge lists December 2010, while caffeine-app.net says Tomas Franzén of Lighthead Software originally developed it in 2006.
We couldn't confirm how the old Lighthead build behaves on current macOS. Because it gets no updates, we wouldn't install it on a new Mac.
Is the new open-source Caffeine the same app
"Caffeine for Mac" can mean two different things now.
- The continuation at caffeine-app.net. An open-source version from IntelliScape/domzilla that carries on the original app. As of November 2026 the site offers version 1.6.4, which requires macOS 11 Big Sur or later. If you liked the original and want the same idea, look at this one first.
- Caffeine by iannuttall. A new, MIT-licensed project with a different aim. We call it Caffeine (Agent Watch) on this page, after its agent feature. Its tagline is "Keep your Mac awake while you work, then let it sleep when your coding agent waits for you." The only release we found is 0.1.0, dated August 1, 2026. It shares the name, not the original's one-button purpose.
We cover the iannuttall app below because it's a real alternative with its own strengths.
What a Caffeine replacement should do
Caffeine set a simple bar. A replacement should:
- Live in the menu bar with an icon that shows at a glance whether the Mac is being held awake.
- Offer timed sessions ("keep awake for 2 hours") so you don't forget to turn it off.
- Let you choose whether the display stays on. A presentation needs the screen lit; a download only needs the Mac awake.
- Run on your macOS version. Lungo needs macOS 26; Glowmoth and the iannuttall Caffeine need macOS 14 or later.
Automatic triggers, coding-agent awareness, a command line or lid-closed support only matter if you'd use them.
Caffeine for Mac alternatives compared
All details are as of November 2026.
| App | Best for | Price | macOS | Standout limit |
|---|---|---|---|---|
caffeinate | No install, occasional use | Free, built in | Built in | Terminal only; no menu bar status |
| KeepingYouAwake | Free menu bar app with timers | Free, open source | 10.13+ per older README (an unreleased 1.6.9 lists 12) | Timer and indefinite modes only; infrequent updates |
| Lungo | Simple toggle on Tahoe | $4 one-time (also on Setapp) | 26+ | No app, folder or rule triggers listed; no lid-closed mode |
| Amphetamine | Free automatic triggers | Free, no in-app purchases | Not checked | Last updated November 2023; lid-closed fail-safe needs a separate helper |
| Caffeine (Agent Watch) | Coding agents with hooks | Free, MIT | 14+ | Early (version 0.1.0); lid-closed mode is best-effort |
| Glowmoth | Rules and seeing why the Mac is awake | Part of MacSuite, $349 one-time | 14+ | Only sold in the bundle; English only |
What each one does beyond on/off. "Not listed" means our notes don't mention it, not that the app definitely can't do it.
caffeinate | KeepingYouAwake | Lungo | Amphetamine | Caffeine (Agent Watch) | Glowmoth | |
|---|---|---|---|---|---|---|
| Automatic triggers | While a command or process runs | None found | Not listed | 15 trigger types, plus app and download sessions | Coding agents | Apps, processes, folders, 14 rule conditions, scheduled runs |
| Coding-agent awareness | No | None found | Not listed | Not listed | Optional Claude Code and Codex hooks; process fallback (off by default) | 11 agents, by process (no hooks) |
| Scripting | Is a command | URL scheme | lungo-cli, URL scheme | AppleScript | caffeine CLI | glowmoth CLI, URL scheme |
| Shortcuts actions | No | Not listed | Yes | No | Not listed | Yes |
| Lid closed | Not listed | None found | No, by design | Closed-display mode; fail-safe via Amphetamine Enhancer | Best-effort | Helper, laptops only, during a session |
| Shows what else keeps the Mac awake | Use pmset -g assertions | None found | Not listed | Not listed | Yes | Yes |
| Battery protection | No | Not listed | Option to turn off on battery | Not listed | Yes | Low-battery pause and heat limit |
Keep your Mac awake with no app: caffeinate
macOS has its own Caffeine built in: the caffeinate command. Open Terminal (Applications ▸ Utilities) and run one of these. None of them change a setting. Each lasts only while the command runs, and ⌃C (Control-C) ends it.
Keep the display on (which also keeps the Mac awake) until you press ⌃C:
caffeinate -dKeep the Mac awake but let the display sleep, for 2 hours (7,200 seconds):
caffeinate -i -t 7200Stay awake until a process exits (replace 12345 with its PID from Activity Monitor):
caffeinate -w 12345Stay awake while a long command runs, then stop:
caffeinate -i makeTo see which apps are holding your Mac awake right now, this read-only command lists every power assertion:
pmset -g assertionsWhat caffeinate can't do: it has no menu bar icon, so a session left running in a Terminal tab is easy to forget, and it has no triggers beyond "while this runs." Our caffeinate command guide covers every flag.
If you want your Mac to stop sleeping on its own permanently, change the sleep settings instead: open System Settings and search for "sleep". The Mac sleep settings guide explains each option.
KeepingYouAwake
KeepingYouAwake is a small, free, open-source menu bar utility, close in spirit to the original Caffeine.
Good at:
- Keeping the Mac awake for a set duration or for as long as it's switched on.
- Notifications (macOS 11 and later) and a URL scheme for simple automation.
- Translations into several languages, and a popular GitHub project (about 7,000 stars as of November 2026).
- Native Apple silicon support since version 1.6.0.
Lacks: We found only timer and indefinite modes: no rules, agent awareness or command-line tool. Updates are infrequent and small. The latest release we saw, 1.6.8, added a macOS 26 Tahoe app icon.
Price: Free, as of November 2026.
Pick it if you want a small free switch with timers and nothing else. See KeepingYouAwake vs Glowmoth for a closer look.
Lungo
Lungo is a paid toggle known for simple, sensible defaults.
Good at:
- A preset menu from 10 minutes to 12 hours, plus Indefinitely.
- An option to toggle with a left-click, like Caffeine.
- "Allow display to sleep", "Allow sleep while screen is locked" and "Deactivate when switching to battery" options.
- Shortcuts actions ("Set Enabled State", "Adjust Time"), a
lungo:URL scheme andlungo-cli.
Lacks: It requires macOS 26 Tahoe. It has no lid-closed mode, by design. Our notes list no triggers for apps, folders or rules.
Price: $4 one-time, also available through Setapp, as of November 2026.
Pick it if you're on Tahoe and want a simple toggle with a few useful options.
Amphetamine
Amphetamine is the long-standing free choice for people who want automation.
Good at:
- 15 trigger types, including displays, USB and Bluetooth devices, Wi-Fi, IP address, VPN, DNS, audio, volumes, CPU and idle time.
- Sessions that last while an app runs or a download finishes, plus a "Drive Alive" feature.
- Cursor movement, custom icons and sounds, AppleScript and hotkeys.
- A closed-display mode for using a MacBook with the lid shut.
Lacks: As of November 2026, its last update was in November 2023. It has no Shortcuts actions; scripting is through AppleScript. The fail-safe for closed-display mode comes from a separate helper, Amphetamine Enhancer, whose only release is 1.0 and whose repository looks inactive. On Apple silicon, Amphetamine's own README says closed-display mode may fail after plugging in or unplugging power, and the official fix ("Power Protect") is a manual install involving a script and a sudoers file.
Price: Free, no in-app purchases, as of November 2026.
Pick it if you want many free triggers, especially USB, IP, DNS or idle time, which the other apps here don't list. More options are in Amphetamine alternatives and Amphetamine vs Glowmoth.
Caffeine (Agent Watch, iannuttall)
The newer Caffeine is aimed at people running AI coding agents.
Good at:
- Optional lifecycle hooks for Claude Code and Codex, so it can keep the Mac awake while the agent works and let it sleep when the agent waits for you. Process-based Agent Watch is a separate fallback that's off by default.
- Timers, battery protection, display sleep controls and a view of other processes blocking sleep.
- A CLI with commands such as
caffeine status --json,caffeine on,caffeine for 2handcaffeine off. - Developer ID signing, notarization and Sparkle updates. Runs on Apple silicon and Intel Macs with macOS 14 or later.
Lacks: It's early: the only release is 0.1.0. Closed-lid mode is best-effort; the project says it doesn't change pmset or promise that every Mac can work with the lid closed. It's only available as a DMG from GitHub Releases.
Price: Free, MIT licensed, as of November 2026.
Pick it if you use Claude Code or Codex and want hook-based detection for free. Our guide to keeping your Mac awake while Claude Code or Codex runs compares the options.
Glowmoth
Glowmoth is our keep-awake app. It can work as a plain one-click switch, but it's built for when you want the Mac to stay awake on its own and to tell you why.
Good at:
- Sessions for a set time, until a clock time, or indefinitely, from the right-click menu or the panel. You choose whether the display stays on.
- Automatic reasons: while an app runs or is in front, while a process runs, while a download or copy into a folder is in progress, and rules with 14 conditions (AC power, external display, Wi-Fi network, hours, calendar events, VPN and more).
- Coding-agent mode that spots 11 command-line agents, including Claude Code, Codex and Aider, by their process activity, and lets the Mac sleep after a cool-down.
- An "Also Keeping This Mac Awake" list that names other apps holding your Mac awake and why, for example Google Chrome "playing video".
- A low-battery pause and a heat limit, a
glowmothcommand-line tool, Shortcuts actions, aglowmoth://URL scheme and a small desktop widget. - An optional closed-lid mode on MacBooks. It installs a small helper you approve in Login Items and only applies while Glowmoth is keeping the Mac awake.
Lacks: No USB, IP, DNS or idle-time triggers. No cursor movement or "keep me active" for chat apps. No custom icons or sounds, no AppleScript, English only. It detects agents by process, without the Claude Code and Codex hooks the iannuttall Caffeine offers. It has more settings than Lungo, though most stay out of sight until you open Settings.
Price: Glowmoth isn't sold on its own. It's part of MacSuite: $349 one-time for every MacSuite app on up to 3 Macs, as of November 2026 (see MacSuite pricing). Each app runs free for 7 days on each Mac.
Pick it if you want automatic keep-awake with rules, agent awareness and safety limits, or you'd use other MacSuite apps too. If you only want a toggle, the free options above do that job and cost nothing.
Which one should you pick
- You want the original Caffeine idea back: the caffeine-app.net continuation (macOS 11+) or KeepingYouAwake.
- You only need it now and then:
caffeinatein Terminal. - You're on macOS 26 and want something simple: Lungo.
- You want free triggers like USB, Wi-Fi or idle time: Amphetamine.
- You run Claude Code or Codex and want hooks, free: Caffeine (Agent Watch).
- You want rules, agent awareness, download watching and a "why is it awake" view in one app: Glowmoth.
- You need the Mac awake with the lid closed: read our clamshell mode guide first. Lungo doesn't offer it, and the others handle it in different ways (see the table above).
For a wider list, see the best keep-awake apps for Mac or our guide on how to stop your Mac from going to sleep.
Set up Glowmoth to work like Caffeine
By default, a left-click on Glowmoth's icon opens a panel. To get Caffeine's one-click toggle:
- Download the Glowmoth DMG from macsuite.app, open it and drag Glowmoth to the Applications folder.
- Open Glowmoth from Applications. It has no Dock icon or window; look for the moth-and-lamp icon in the menu bar.
- In the Welcome to Glowmoth window, under How will you use it?, choose Just a Switch. This sets left-click to toggle keep-awake and keeps the display on.
- Optional: turn on Launch at login, and record a Toggle Keep Awake hotkey (none is set by default).
- Click Done, or press Return.


A left-click now toggles keep-awake on and off. Like Caffeine's cup, the icon shows the state: an outline moth and lamp means sleep is allowed, and a filled lamp with a small glow means Glowmoth is keeping the Mac awake.
If you already closed the welcome window:
- Right-click the menu bar icon and choose Settings…, or press ⌘, (Command-Comma) while Glowmoth is active.
- Open the General tab.
- Set Left-click to Toggle Keep Awake.
Details that match how people used Caffeine:
- Default duration (Settings ▸ Sessions) is Indefinitely, so a click keeps the Mac awake until you click again. Pick a quick duration there if you'd rather it stop on its own.
- Right-click (or Control-click) the icon for timed sessions: 15 Minutes up to 8 Hours, Until a time, or Custom…. Option-click always opens the panel.
- To let the screen sleep while the Mac stays awake, turn off Keep the display on in Settings ▸ Sessions for new sessions, or use Keep Display On in the right-click menu for the running one.
- If a full menu bar or the camera notch hides the icon, hold ⌘ and drag menu bar icons to make room, or quit some menu bar apps. More fixes are in menu bar icons hidden behind the notch.
More setup detail is in Getting started with Glowmoth.
Should you switch at all
If you use the caffeine-app.net continuation and it does what you need on your Mac, there's no reason to change. A one-button keep-awake app is a solved problem.
Switch if you're still on the unmaintained Lighthead build, if you keep forgetting to turn keep-awake off (timed sessions fix that), or if you want the Mac to stay awake on its own during downloads, builds or agent runs without clicking anything.
FAQ
Is Caffeine still available for Mac?
Lighthead's original is discontinued. An open-source continuation is offered at caffeine-app.net (version 1.6.4, macOS 11 or later, as of November 2026), and a separate new app called Caffeine is on GitHub from iannuttall.
Does caffeinate change my sleep settings?
No. It holds a power assertion only while the command runs. Press ⌃C or let the command finish and normal sleep returns.
Can these apps keep my status "active" in Teams or Slack?
Glowmoth deliberately doesn't move the mouse or fake key presses. Amphetamine offers cursor movement. Keeping the Mac awake on its own doesn't simulate activity.
Do these apps stop me from putting the Mac to sleep manually?
They prevent idle sleep. Choosing Sleep from the Apple menu still sleeps the Mac during a normal Glowmoth session and with caffeinate -i or -d.