Guide
Keep your Mac awake without Terminal

It always happens at the worst moment. The 40 GB upload is running, you grab a coffee, and when you come back the screen is black, Wi-Fi has gone to sleep and the transfer is stuck at 71 percent. macOS puts the Mac to sleep after a few minutes without input. Great for the battery. A pain for anything that's meant to keep running in the background.
You don't need to type in the Terminal or permanently change your energy settings to fix it. Here are the three routes that actually work, which one fits when, and what to do if the Mac still falls asleep.
Why your Mac falls asleep in the first place
macOS runs on timers. After a while without mouse or keyboard input the display turns off first. If nothing happens after that, the computer itself goes to sleep. The system only knows a download is running if the app explicitly tells it. Some apps do, many don't. That's why uploads in a browser tab or sync jobs often break off halfway, even though you were only gone for a minute.
Route 1: System Settings
On a MacBook the key switch lives under System Settings → Battery → Options. There you can stop the Mac from sleeping automatically on the power adapter once the display is off. When the display turns off is set under Lock Screen, separately for battery and power adapter. On an iMac, Mac mini or Mac Studio the section is called “Energy” or “Energy Saver”, depending on your macOS version.
It works, but there are three catches. The setting then applies all the time, even if you only needed it for an hour. You will absolutely forget to switch it back and wonder three weeks later why the battery is empty. And the switch in the battery options only works on the power adapter; on battery the MacBook still sleeps after the usual timeouts. Fine for a Mac that lives on a desk, too clunky for a quick in-and-out.
Route 2: caffeinate in the Terminal
macOS ships its own tool for this. caffeinate -i prevents sleep, caffeinate -d also keeps the display on. Both work as long as the Terminal window stays open. It's cleanly built and free. For daily use a few things are missing, though: you can't see how long it has left, and closing the window ends it. Every option with tested examples is in caffeinate: keep your Mac awake from Terminal.
Route 3: A switch in the menu bar
The most convenient route is a click up in the menu bar. Several apps do this, free ones like Amphetamine or KeepingYouAwake, and Helmlet too. Under the hood they all use the same mechanism as caffeinate, Apple's so-called Power Assertions. The difference is the handling: a switch instead of a command, a visible countdown instead of flying blind, and you pick exactly what should stay awake.
Staying awake isn't one thing
Most people miss this: there are three separate levels, and it's best to control them individually.
| System awake | The Mac won't sleep, background tasks keep running. The screen may still go dark. |
|---|---|
| Display awake | The screen stays on. Handy for presentations, dashboards or cooking from a recipe. |
| Network awake | Stops the connection from dropping in power-saving mode. Exactly what matters for big uploads and downloads. |
For an overnight export “system awake” is usually enough. The screen can stay off and save power. For a long upload you also want “network awake”. An app that throws everything into one switch keeps the display on for hours for no reason.
Which setting for which job
| Download, upload | System and network awake, ideally on the power adapter. |
|---|---|
| Overnight export | System awake, the display can be off. On the power adapter so the battery doesn't give out. |
| Presentation | Display awake, also for dashboards or recipes. The system automatically stays awake with it. |
| Copy to a drive | System awake until the copy to the external drive is done. With a timer the Mac doesn't keep running needlessly afterwards. |
| Remote access | For Screen Sharing or SSH, system and network awake. A sleeping Mac is often unreachable from outside. |
And when you close the lid?
This is the biggest trap. Everything above only applies while the MacBook is open. Close the lid and the Mac goes to sleep immediately, no matter which setting or app is running. For macOS, closing the lid is a separate reason to sleep, and the usual keep-awake mechanisms don't reach it.
Officially, a closed MacBook only keeps running on the power adapter with an external monitor attached. How that works is in Use your MacBook closed on a monitor. Without a monitor you need a different approach, which I explain in Keep your MacBook awake with the lid closed.
If your Mac still falls asleep
- The battery is almost empty. When it runs low, macOS puts the Mac to sleep regardless of your settings. Long jobs belong on the power adapter.
- The setting only applies on power. The switch in the battery options does nothing on battery.
- The Terminal window is closed. Closing it ends
caffeinatetoo. - The timer ran out. Many apps release the Mac after the set time. That's intentional, but easy to forget.
To see whether something is blocking sleep right now, open Activity Monitor: the Energy tab has a column that shows which app is preventing sleep. In the Terminal, pmset -g assertions gives you the same information in full detail.
Why a timer is the real trick
The key part isn't turning it on, it's turning it off automatically. “Stay awake for 4 hours” or “until 9 a.m. tomorrow”, and afterwards everything returns to normal on its own. The screensaver comes back, the Mac sleeps again, the battery thanks you. You don't have to remember anything, and that's the whole point.
One reassuring side effect of Power Assertions: if the program crashes, macOS releases the lock automatically. Your Mac never stays awake forever by accident.
Common questions
Does it harm my Mac to stay awake for hours?
No. Macs are built for continuous use, and an overnight export is everyday work for the hardware. Just make sure it's on the power adapter for long jobs and gets air under load, so not on a bed or in a backpack.
Does a download keep running when the display is off?
Yes, as long as only the display sleeps and not the system. That's why it pays to switch display and system separately: the screen can be off while the computer keeps working.
Do I need admin rights for this?
Not for caffeinate or the usual keep-awake apps. Only keeping the Mac awake with the lid closed and no monitor needs admin rights.
That's exactly what Helmlet is for
Helmlet puts these three switches, each with its own timer and countdown, in your menu bar. Plus live temperature and, if your Mac has fans, safe fan control. One-time €3.99, no subscription.
Get HelmletRelated: caffeinate in the Terminal, Keep your MacBook awake with the lid closed and Show your Mac's temperature.