Keep your Mac awake.
One click and your Mac won’t sleep or dim. Pick 30 minutes to 8 hours, your own length, or stay awake until you turn it off. A free, native alternative to Caffeine and Amphetamine, on macOS and Windows.
One click. Stays awake. Done.
Open Toolbox from your menu bar, hit Keep Awake and choose how long. Your Mac won’t sleep and the screen won’t dim until the time’s up or you switch it off. Under the hood it holds the system awake with the OS’s own power API, so it’s clean and reliable.
- Presets for 30 minutes and 1, 2, 4 and 8 hours
- “Other…” for your own length or a clock time, or “Until turned off”
- Optionally turns the screens off when idle, while the system stays awake
- Or “While a process runs”: awake while a process like
clauderuns, then lets go - Optional: lock the session when the screens go off, and only when plugged in
- A keyboard shortcut of your choice locks the session and turns the screens off, while it stays awake
- A live countdown of the time remaining
- Releases automatically when it ends — or when you quit Toolbox
How to use Keep Awake.
The same panel on a Mac and on a Windows PC. Step-by-step guides for each job: lock a Mac, lock a Windows PC, stop Windows from sleeping and keep the screen on.
-
Open Toolbox from the menu bar on a Mac (the system tray on Windows) and click Keep Awake, the coffee cup in the Quick Launcher.
-
Choose how long: 30 min to 8 h, Until turned off, or Other… to type your own length (90, 1h30) or a clock time (until 18:30). Tapping a length turns Keep Awake on right away.
-
It is on: the card turns amber and shows until when it stays awake. +30 min and +1 h add time, tapping another length replaces the current one, and the switch turns it off. Next time, the switch alone turns it back on with the last length.
-
In Screens, pick Turn off and lock and how many idle minutes: 5, 10, 15 or 30. After that long without keyboard or mouse it warns for 30 seconds, locks the session and turns the screens off. Touching anything during the warning cancels it.
-
Leaving right now? Once it is on with Turn off and lock, the button at the bottom reads Lock and turn screens off: one click locks the session and darkens the displays, and the computer keeps working.
-
Under Condition there are two optional limits. Only when plugged in pauses it on battery and resumes when you plug in. While a process runs takes a process name (for example
claude) and keeps the computer awake only while that process is running.
-
The gear opens three options: Turn it back on if Toolbox restarts, Show it on the Toolbox icon and Turn it on when Toolbox opens on this computer, for a machine that should always be ready.
How to keep your Mac awake without Terminal.
macOS already ships a command for this: caffeinate. Open Terminal, type
it, and your Mac stays awake for as long as that window keeps it running. Its flags
choose what it holds off: -d keeps the display on, -i stops
idle sleep, and -t sets a limit in seconds. Press Control‑C, or close the
window, and it lets go.
It works, and it is the same power assertion Keep Awake uses. The catch is everything
around it: a Terminal window you cannot close, a number of seconds to work out, and no
way to see at a glance whether it is still on. Keep Awake gives you the same result
from the menu bar, with presets, a visible countdown and an off switch. And on Windows,
where there is no caffeinate at all, it does the same job.
- No command to remember, no window to keep open
- Time left always visible in the Toolbox panel
- Releases on its own when the timer ends
How to keep your Windows PC awake.
Windows has no caffeinate. The built-in way is the power settings
(Settings, System, Power & battery on Windows 11): set sleep to Never, and remember
to set it back afterwards. From a terminal, powercfg /change standby-timeout-ac 0
does the same while plugged in. Both change your settings until you undo them. The
popular Caffeine utility fakes a keypress instead; how that differs:
Caffeine for Windows and its alternatives.
Microsoft’s free PowerToys includes Awake, which does it from the system tray. If you only use Windows and already run PowerToys, it is a good choice. Keep Awake makes more sense if you also use a Mac, because it is the same tool on both, or if you want it next to your timers, clipboard history and notes in one tray icon. Each Awake mode, with its Mac equivalent: PowerToys Awake for Mac.
- Same presets on Windows and on the Mac
- Nothing to restore in your power settings afterwards
- Claude can turn it on and off through the MCP server
Same job. One less single-purpose icon.
If you’ve used Caffeine or Amphetamine, this will feel instantly familiar — it stops your machine from sleeping, on your terms. The difference: Keep Awake works on both macOS and Windows, and it lives inside Toolbox, so instead of one more standalone app you also get a clipboard manager, timers, notes and dev tools in the same menu-bar icon.
Looking for more menu bar apps that already work on macOS 27? Here is our list of free ones, all verified on 27.
Prefer Terminal? Our guide to the caffeinate command covers every flag, with examples.
Want the Mac to stop sleeping for good instead? Here is how to stop a Mac from sleeping in System Settings, and how to keep the screen on.
Comparing apps? Here are the free apps to keep a Mac awake, compared, how to turn off the screen without sleeping, and how to keep your computer awake while you are away.
- Works on macOS and Windows (Amphetamine is Mac-only)
- Free, native and lightweight
- Part of a whole toolbox, not a lone icon
It’s one widget of many.
Keep Awake is a single tab inside Webstarted Toolbox — a lightweight hub that lives in your menu bar (macOS) or system tray (Windows). One icon, a click, and a popover full of small tools organized in tabs.
Questions, answered.
Does Keep Awake work on Windows too?
Yes. Webstarted Toolbox is a native app for both macOS and Windows, and Keep Awake works on both: it holds the system awake using the OS’s own power API and releases it automatically when the timer ends or you quit the app.
Is it really free?
Yes. Keep Awake is one of the widgets built into Webstarted Toolbox, which is free to download and use: no account required.
How is it different from Caffeine or Amphetamine?
Same idea (stop your machine from sleeping), but Keep Awake runs on both macOS and Windows, and it comes inside Toolbox alongside a clipboard manager, timers, notes, dev tools and more, so it’s not one more single-purpose icon in your menu bar.
Will it drain my battery or stop my screen from locking?
It only prevents the system from going to sleep for as long as you choose. When the time is up, or when you turn it off or quit Toolbox, everything goes back to your normal power settings. By default the screen stays on too (the “Stay on” mode); if you would rather save the display, see the next question. In “Stay on” the display does not turn off and the system does not sleep, so the lock that comes with them never arrives. A screen saver that asks for a password, an idle lock set by your company, or Windows Dynamic lock still locks the session: Keep Awake does not fake activity, on purpose.
Can it keep the computer awake but turn the screens off?
Yes. Under Screens, “Turn off” keeps the system awake but lets the screens go dark after 5, 10, 15 or 30 minutes without keyboard or mouse input. It warns for 30 seconds first, and any input cancels it. It is made for leaving the machine on while you work on it remotely. While it is on there is also a “Turn screens off now” button.
Can I keep my Mac awake indefinitely?
Yes. Pick a timed preset (30 minutes, or 1, 2, 4 or 8 hours), use “Other…” to type your own length or a clock time, or choose “Until turned off” to stay awake with no time limit. Picking another length while it runs replaces the current one instead of adding to it; +30 min and +1 h add time.
Will it keep my Mac awake with the lid closed?
Not on battery. Closing the lid triggers your Mac’s clamshell sleep, and Keep Awake does not override it. It keeps your Mac awake while the lid is open, and in clamshell mode when you’re on power with an external display connected, which macOS allows on its own. If you need a closed lid on battery, some Mac-only apps such as Amphetamine offer a closed-display mode.
Is it an alternative to PowerToys Awake?
For the same job, yes: PowerToys Awake keeps a Windows PC awake from the system tray, and so does Keep Awake. PowerToys is Windows-only, while Keep Awake works the same on Windows and on the Mac, inside Toolbox. If you only use Windows and already run PowerToys, Awake is enough.
Can it lock my computer and keep it awake?
Yes. Under Screens, choose “Turn off and lock”: after the idle minutes you pick it locks the session right before the screens go dark, and the button at the bottom becomes “Lock and turn screens off” for when you leave. The computer stays awake and keeps working, so you can leave a download, a render or an AI agent running behind a locked screen. Our guides on locking a Mac and locking a Windows PC cover the built-in ways too.
Can it stay awake only while a program runs?
Yes. Under Condition, in “While a process runs”, type a process name (for example claude) and Keep Awake holds the machine awake while that process is running, then lets go on its own when it ends. It is the one-click version of “caffeinate -i” followed by a command.
Does it work on battery?
Yes, unless you turn on “Only when plugged in”: then it pauses on battery (the countdown keeps going) and resumes when you plug in.
Can Claude keep my computer awake for me?
Yes, if you turn on the MCP server built into Toolbox. Keep Awake gives an agent three actions (turn on, turn off and check status), so Claude can keep the machine awake during a long task and let it sleep again afterwards. The server is off by default.
Do I need Terminal, the caffeinate command or pmset?
No. Keep Awake drives your Mac’s own power API (the same one behind the caffeinate command) from a single click, so you never have to type “caffeinate -d” or change pmset settings in Terminal. On Windows it uses the equivalent system call.
Get Webstarted Toolbox
Free to use. Keep Awake and every other widget included. macOS 12+ and Windows 10+.
One icon, many small tools
This is one of the 51 widgets in Webstarted Toolbox, the free all-in-one menu bar app for Mac and Windows. Here are the rest: