Skip to content
86% off$349 $48.86code BF2026

Best apps

Best Keep-Awake Apps for Mac (2026): Picks by Need

The best keep-awake apps for Mac by need: simple toggle, triggers, coding agents, closed lid, free. Plus caffeinate, and what each app can't do.

Best appsUpdated 14 min read

On this page

The best keep-awake app for your Mac depends on the job:

  • One-click switch: Lungo ($4, macOS 26 or later) or the free KeepingYouAwake.
  • Automatic triggers: Amphetamine (free) covers USB, IP address and idle time. Keepresso (free) has 20 conditions and coding-agent detection.
  • AI coding agents: Awakado follows the agents through their own hooks.
  • MacBook with the lid closed: Glowmoth and Awakado Pro both install a helper and add battery and heat cut-offs.
  • One-off use: the built-in caffeinate command, with nothing to install.

Quick picks (prices as of November 2026):

  • Lungo or KeepingYouAwake: best for a simple on/off switch with timers. Lungo is $4 and needs macOS 26. KeepingYouAwake is free.
  • Amphetamine or Keepresso: best for automatic triggers, and both are free. Amphetamine has USB, IP and idle-time triggers. Keepresso has 20 conditions and coding-agent detection.
  • Awakado: best for Claude Code and other coding agents, with "needs you" and "stalled" states from agent hooks. Free, or Pro for $9.99.
  • Glowmoth: best for rules plus closed-lid use with battery and heat limits, if you'd also use other MacSuite apps.
  • caffeinate: best when you don't want an app at all.

We make Glowmoth, so weigh our view accordingly. We've tried to be fair to every app here, and we list where Glowmoth falls short.

How we chose

We compared what each app's website, README or store listing says, as of November 2026. We didn't run benchmarks. These criteria matter for this job:

  • Current macOS support and recent updates. A sleep tool that stops working after a macOS update is no use.
  • It turns itself off. A timer, an end time, or "until this app quits" or "until this download finishes" is better than a switch you forget about.
  • It tells you why the Mac is awake, and ideally which other apps are holding it awake.
  • Laptop safety. Pausing at low battery or when the Mac runs hot matters most for long or closed-lid sessions.
  • Honest closed-lid behavior. Ordinary keep-awake apps can't stop lid-close sleep. We note which apps do it, how, and with what caveats.
  • Scripting. Shortcuts actions, a URL scheme or a command-line tool, for people who automate.
  • Price model. Free, one-time, or a bundle.

What a keep-awake app does on current macOS

Most keep-awake apps, and caffeinate, work the same way. They ask macOS to hold a "power assertion" that blocks idle sleep. There are two common kinds:

  • Keep the display on. The screen stays lit, and the Mac stays awake too.
  • Keep the system awake. Downloads, renders and builds keep running, but the display can still sleep. This is usually what you want for long jobs.

This read-only command lists every active assertion, including ones held by browsers, video calls or backups:

bash
pmset -g assertions

It shows which processes are preventing sleep and changes nothing.

An assertion does not do two things:

  1. It doesn't stop a MacBook sleeping when you close the lid. macOS sleeps on lid close unless the Mac is in clamshell mode, which needs power and an external display. Apps that offer closed-lid use need extra machinery, such as a privileged helper. See clamshell mode on Mac for the built-in route.
  2. It doesn't block manual sleep. Choosing Sleep from the Apple menu still works.

Blocking sleep also doesn't simulate keyboard or mouse input. If you want a chat app to keep showing you as active, you need an app that moves the cursor or fakes activity. Amphetamine (cursor movement) and Keepresso ("keep me active") offer this. Glowmoth deliberately doesn't. Caffeine (iannuttall) says it doesn't fake user input.

Best keep-awake apps for Mac compared: triggers, closed lid, safety, price

Summary (as of November 2026):

AppBest forPriceFree optionStandout limit
LungoSimplest switch$4 one-time (also on Setapp)Not listedmacOS 26 or later only; no closed-lid mode
KeepingYouAwakeFree simple switchFree, open sourceYesTimer or indefinite only
AmphetamineUnusual trigger typesFree, no in-app purchasesYesLast update found: November 2023; closed lid relies on a separate helper
KeepressoFree rules and agentsFree (GPL-3.0)YesMany controls in one panel
AwakadoCoding agents via hooksFree; Pro $9.99 once for 3 MacsYesClosed lid is Pro only; no general rules listed
Caffeine (iannuttall)Free agent-aware toggleFree (MIT)YesEarly 0.1.0 release; closed lid is best-effort
GlowmothRules plus closed lid with safety limitsPart of MacSuite, $349 one-time7-day trialOnly sold in the bundle; no USB, IP or idle triggers
caffeinateOne-off use and scriptsBuilt into macOSYesTerminal only; no safety limits

Features (as of November 2026; "not listed" means we found no mention of it):

AppAutomatic triggersCoding agentsClosed lidBattery / heat limitsScripting
LungoNone (preset timers)Not listedNo, by designCan turn off when switching to batteryShortcuts, URL scheme, CLI
KeepingYouAwakeNone (timer or indefinite)Not listedNot listedNot listedURL scheme
Amphetamine15 types incl. USB, Bluetooth, Wi-Fi, IP, VPN, DNS, CPU, idle; no scheduleNoClosed-display mode, with the separate EnhancerNo heat limitAppleScript, hotkeys
Keepresso20 conditions, Any/All20+ agentsNot listedBattery auto-pause; heat limit with fan boostCLI with leases, MCP, webhooks
AwakadoAgent-focused21 agents via hooksPro, with a helperBoth always onNot listed
Caffeine (iannuttall)Agent WatchClaude Code and Codex hooks, process fallbackBest-effortBattery protectionCLI
Glowmoth14 conditions incl. schedule; apps, processes, folders11 agents, process-basedHelper, laptops onlyBoth on by defaultShortcuts, URL scheme, CLI with leases
caffeinateA command or process IDNoNoNoCommand line only

Best simple toggle

Lungo

Good at: a menu bar switch with sensible defaults. The preset menu runs from Indefinitely through 10 minutes to 12 hours, and you can set left-click to toggle. Options include "Deactivate when switching to battery", "Allow display to sleep" and "Allow sleep while screen is locked". For automation it has Shortcuts actions ("Set Enabled State", "Adjust Time"), a lungo: URL scheme and a command-line tool.

Lacks: it requires macOS 26 Tahoe or later. It has no automatic triggers for apps, folders, rules or agents. The developer chose not to include a closed-lid mode.

Price: $4 one-time, also available through Setapp (as of November 2026).

Pick it if you're on macOS 26 and want a switch you set up once and forget. It has far fewer settings than Glowmoth. Site: sindresorhus.com/lungo.

KeepingYouAwake

Good at: doing one job for free. Click the menu bar icon to keep the Mac awake for a set duration or indefinitely. It supports notifications on macOS 11 and later and has a URL scheme. It's translated into several languages and has run natively on Apple silicon since version 1.6.0. The project has about 7,000 stars on GitHub.

Lacks: timer and indefinite modes are the only modes we found. There are no rules, no agent awareness and no CLI. Updates are small and infrequent: the latest release we saw (1.6.8) added a macOS 26 Tahoe app icon. The older README lists macOS 10.13 or later. A changelog entry for an unreleased version raises that to macOS 12. Either way, it covers far older systems than Lungo.

Price: free and open source.

Pick it if you want a free switch on Sonoma or Sequoia, or on an older Mac. We compare it with ours in KeepingYouAwake vs Glowmoth. Site: keepingyouawake.app.

Best for automatic triggers

Amphetamine

Good at: trigger types the others don't have. Its 15 trigger types include display, USB and Bluetooth devices, Wi-Fi, IP address, VPN, DNS, audio, volume, CPU and user idle time. It also has while-app and while-download sessions and a Drive Alive feature. It supports AppleScript and hotkeys, and it offers cursor movement and custom icons and sounds.

Lacks: it has no schedule trigger (such as "weekdays 9 to 6") and no Shortcuts actions, so you script it with AppleScript. There's no heat limit and no coding-agent mode.

Closed-display mode relies on the separate, free Amphetamine Enhancer, which adds a fail-safe: if Amphetamine isn't running, the Mac sleeps on lid close again. The Enhancer's only release is 1.0, and its repository looks inactive. On Apple silicon, Amphetamine's own README says closed-display mode may fail after you plug in or unplug power. The official fix is a manual install called "Power Protect", which uses a script plus a sudoers file. The most recent Amphetamine update we found is from November 2023.

Price: free, no in-app purchases, from the Mac App Store (as of November 2026).

Pick it if you need USB, IP, DNS or idle-time triggers, or cursor movement, and the age of the last update doesn't worry you. More detail: Amphetamine vs Glowmoth and Amphetamine alternatives.

Keepresso

Good at: rules and agents in a free app. It has 20 trigger conditions combined with Any or All, an Automatic/Manual switch, and detection for more than 20 coding agents. For scripting it has a CLI with leases, an MCP server and webhooks.

It also shows what else is keeping your Mac awake, and it keeps a 7-day summary with a decision log. The panel has "Stop in 15/30/1h" buttons. For safety it has a heat limit with a fan boost and a low-battery auto-pause. It also offers widgets, a Control Center toggle, presets, a first-run setup, a "keep me active" option and 15 languages.

Lacks: simplicity. Many controls sit in one panel, which some people will find busy. We found no closed-lid mode listed, so check its site if you need one.

Price: free, GPL-3.0 (as of November 2026).

Pick it if you want many conditions and agent detection at no cost and don't mind a dense panel. Site: keepresso.com.

Glowmoth also fits this category. It has 14 rule conditions, including a schedule, plus triggers for apps, processes and download folders. We cover it under closed-lid use below, because that's where it differs most from the free apps.

Best for AI coding agents

Awakado

Good at: knowing what your agent is doing. It connects to 21 agents through their hooks and tracks them as working, needs you, usage limit, stalled or done. A "needs you" icon tells you when to come back.

You choose a cool-down of 2, 5 or 15 minutes before the Mac may sleep, and you can mark some agents as tracked only. It can wake when a Claude Code usage limit resets. Its battery floor and heat limit can't be turned off. A Home window shows an activity log and weekly stats. Pro adds closed-lid use with a helper and a lid-closed summary.

Lacks: we found no general rules, no app, process or folder triggers, no CLI, URL scheme or Shortcuts actions, and no view of what else is holding the Mac awake. The always-on safety limits are good guard rails, but you can't adjust them. Closed-lid use needs Pro.

Price: free. Pro is $9.99 one-time for 3 Macs, sold through Polar (as of November 2026).

Pick it if you run Claude Code or similar agents for long stretches and want to know when they stop and need you, not just when they're busy. Site: awakado.noodledragon.studio.

Caffeine (iannuttall)

Good at: a familiar three-click model. Left-click toggles, right-click shows timers, and Option-click opens a panel. Optional turn-aware hooks for Claude Code and Codex let the Mac sleep while the agent waits for you. A blue dot shows when an agent owns the session. A process-based Agent Watch fallback is also available, but it's off by default.

It has battery protection with auto-resume, display sleep controls and a view of other processes blocking sleep. A CLI (caffeine status --json, caffeine for 2h) covers scripts. It's signed and notarized, supports Sparkle updates, and runs on Apple silicon and Intel Macs with macOS 14 or later.

Lacks: maturity. The only changelog entry is version 0.1.0, dated August 2026. Closed-lid mode is best-effort: it doesn't change pmset and doesn't promise that every Mac will work with the lid shut. It has no heat limit and no general rules. You can only get it as a DMG from GitHub Releases.

Price: free, MIT license (as of November 2026).

Pick it if you want a free, open-source toggle that understands Claude Code and Codex turns, and you're fine with an early release. Site: github.com/iannuttall/caffeine.

Keepresso (above) detects more than 20 agents. Glowmoth detects 11 by their process activity and doesn't use hooks. For setup steps, see keep your Mac awake while Claude Code or Codex runs.

Best for closed-lid use

Glowmoth

Good at: keeping a MacBook awake with the lid closed, with safety limits that stay on while it does. In Settings ▸ Safety, turn on Stay awake with the lid closed. Glowmoth installs a small helper, which you approve in System Settings ▸ General ▸ Login Items. Glowmoth opens that pane for you.

While Glowmoth is keeping the Mac awake for any reason, the helper turns system sleep off. It turns sleep back on as soon as that ends. You don't need an external display or a power adapter. While closed-lid mode is on:

  • The battery floor (20% by default) and the heat limit are forced on.
  • Closed-lid mode switches off below the battery floor, and immediately when macOS reports serious thermal pressure.
  • Normal sleep returns within 30 seconds if Glowmoth stops responding, and immediately if Glowmoth quits or crashes.

The closed-lid docs cover setup and status messages.

The rest of the app covers most of the categories above:

  • Rules with 14 conditions: On AC Power, External Display Connected, On a Wi-Fi Network, During Hours, App Running, Process Running, Folder Busy, Camera or Microphone in Use, Volume Mounted, CPU Busy, Audio Playing, Bluetooth Device Connected, VPN Connected and Calendar Event in Progress.
  • Folder watching that keeps the Mac awake while a download or copy is in progress, then allows sleep 2 minutes after the folder goes quiet.
  • Coding agents: Claude Code, Codex, Gemini CLI, Aider, Copilot CLI, Cursor Agent, OpenCode, Amp, Goose, Qwen Code and Crush, detected by process activity, with a 2, 5 or 15 minute cool-down.
  • An "Also Keeping This Mac Awake" list that shows which other apps hold sleep assertions and why ("playing video", "in a call").
  • Scripting: Shortcuts actions, a glowmoth:// URL scheme and a glowmoth CLI. For example, glowmoth run -- make keeps the Mac awake while a command runs and returns its exit code.

It runs on macOS 14 or later.

Lacks:

  • No mouse jiggling or "keep me active".
  • No USB, IP address, DNS or idle-time triggers.
  • No AppleScript dictionary.
  • Agent detection is process-based only. There are no hooks and no "needs you" or "stalled" states, and it supports fewer agents than Awakado or Keepresso.
  • Fewer conditions than Keepresso, and more settings than Lungo.
  • Closed-lid mode works only on laptops and only during a keep-awake session.
  • English only.

Price: Glowmoth isn't sold on its own. It's part of MacSuite, which costs $349 one-time for every MacSuite app on up to 3 Macs, with a 14-day refund window (as of November 2026; see pricing). If a keep-awake app is all you want, the free apps here cost far less.

Pick it if you want closed-lid use with safety limits, rules and agent detection in one app, and you'd use other MacSuite apps too. Glowmoth is part of MacSuite; you can try it free for 7 days.

Other ways to use a Mac with the lid closed

  • Awakado Pro ($9.99) uses a helper and adds a lid-closed summary. Its battery and heat limits are always on.
  • Amphetamine with Amphetamine Enhancer adds a fail-safe, so the Mac sleeps on lid close again if Amphetamine isn't running. Apple silicon Macs may also need the manual "Power Protect" install.
  • Caffeine (iannuttall) has a best-effort mode. It doesn't change pmset and doesn't promise that every Mac will stay awake with the lid shut.
  • Lungo doesn't offer closed-lid use.
  • Built-in clamshell mode needs power and an external display, but no app.

A closed laptop sheds heat less easily. Whichever app you use, keep a heat limit on.

Best free option

For most people, a free app is enough:

  • Just a switch: KeepingYouAwake.
  • USB, IP or idle triggers, or cursor movement: Amphetamine.
  • Rules, agents and a "what's keeping it awake" view: Keepresso.
  • Coding agents with hooks: Caffeine (iannuttall). Awakado also has a free tier, with closed-lid use in Pro.
  • Nothing to install: caffeinate.

If you're looking for the original Caffeine from Lighthead, it's discontinued. A newer open-source version continues it at caffeine-app.net and requires macOS 11 or later. See Caffeine for Mac alternatives.

Do you need an app at all? Try caffeinate

macOS includes caffeinate, which holds the same kind of assertion as the apps above. None of these commands changes a setting. The assertion ends when caffeinate exits, which happens when you press ⌃C (Control-C), when the timer runs out, or when the watched command or process finishes.

Keep the Mac from idle sleeping until you press ⌃C (the display may still sleep):

bash
caffeinate -i

Keep the display on for one hour (3,600 seconds):

bash
caffeinate -d -t 3600

Stay awake until process 12345 exits (find the process ID in the PID column of Activity Monitor):

bash
caffeinate -i -w 12345

Stay awake while a command runs, then allow sleep:

bash
caffeinate -i make

What it can't do: it has no menu bar icon and no reminder that it's running. It has no battery or heat cut-off and no closed-lid use. It also stops if you close the Terminal window it runs in. For more flags and examples, see the caffeinate command on Mac.

If you want the Mac to stay awake all the time instead of for one job, change the system setting. Open System Settings and search for "sleep". Mac sleep settings explained covers the options. To see every method side by side, read how to stop your Mac from going to sleep.

How to choose

  • If you want one click and nothing else: Lungo on macOS 26, or KeepingYouAwake on older systems.
  • If you need USB, IP, DNS or idle triggers, or cursor movement: Amphetamine.
  • If you want many conditions and agent detection for free: Keepresso.
  • If you run coding agents and want to know when they need you: Awakado.
  • If you want closed-lid use with forced battery and heat limits, plus rules: Glowmoth. Choose Awakado Pro instead if agents are your main use.
  • If it's a one-off download or build: caffeinate -i in Terminal.

FAQ

Do keep-awake apps work with the lid closed?

Not by default. A normal sleep assertion doesn't stop lid-close sleep. You need clamshell mode (power and an external display) or an app with a dedicated closed-lid feature, such as Glowmoth, Awakado Pro or Amphetamine with its Enhancer.

Will a keep-awake app keep me "active" in Teams or Slack?

Only if it simulates input. Amphetamine can move the cursor, and Keepresso has a "keep me active" option. Glowmoth doesn't fake activity, and we found no such option listed for Lungo or KeepingYouAwake.

Why is my Mac still awake after I turned the app off?

Another app may be holding an assertion. Video playback, calls and backups often do. Run pmset -g assertions to see which apps, or read Mac won't sleep for the common causes.

Will a keep-awake app drain my battery?

It can, because the Mac never idles into sleep. Lungo can turn off when you switch to battery, and Glowmoth can stop your session when you unplug. Glowmoth, Awakado and Keepresso can also pause at low battery, and Caffeine (iannuttall) has battery protection.

Every app.
One purchase.