Written by Pratik Nayak, the developer of Stay Awake. This guide covers free built-in options as well as our app. Updated December 3, 2026.
Why transfers stop
When a Mac goes to sleep, its apps stop running, so a download or upload pauses. Some apps resume on wake, some fail and start over, and some give up. The fix is to stop the Mac from idle sleeping while the transfer runs. Turning the screen off is fine, because the Mac can stay awake with the display dark.
Option 1: caffeinate, built into macOS
caffeinate holds a sleep-prevention assertion for as long as it runs. With no flags it prevents idle sleep. Open Terminal and pick the case that fits.
The transfer is a command you start yourself (curl, rsync, scp, wget). Put caffeinate -i in front of it. The Mac stays awake until the command exits, then sleeps normally:
caffeinate -i curl -C - -O https://example.com/big-file.zip
The -C - part is curl's own resume option, a good habit for any large file.
The transfer is already running as a process. Find its process ID in Activity Monitor, or with pgrep -x curl, and tell caffeinate to wait for it:
caffeinate -i -w 12345
Replace 12345 with the real ID. When that process ends, caffeinate ends too. Per man caffeinate, -w waits for the process to exit and then releases the assertion.
The transfer is in a browser or app, so there is no handy process to wait on. Use a time limit that covers it, in seconds. Here, four hours:
caffeinate -i -t 14400
Keep that Terminal window open. Closing it or quitting Terminal ends the assertion. Do not use a huge number and forget it: the Mac then never sleeps, and a laptop on battery will drain.
Option 2: change a System Settings option
On a MacBook, open System Settings > Battery > Options and look for Prevent automatic sleeping on power adapter when the display is off. On a desktop Mac the similar setting is under Energy. Wording moves a little between macOS versions. This keeps the Mac awake whenever it is plugged in, not just during a download, so switch it back afterward. It does nothing on battery.
Option 3: a menu bar app
- Amphetamine is a free Mac App Store app. Its App Store listing (checked 3 Dec 2026) ↗ lists a session option that keeps the Mac awake while a file is downloading. It asks you to choose the file, which can be awkward when a browser writes to temporary files.
- Stay Awake, our app, has a regular Keep Awake mode with an Auto-Stop timer of 10 minutes, 30 minutes, 1 hour or 3 hours, shown as a cup that drains in the menu bar. It does not watch the transfer itself, so you pick a time that covers it. There is a 7-day free trial, then $4.99 USD once. Regular Keep Awake needs no administrator approval. See the app ↗
What none of these fix
- Closing the lid. A MacBook still sleeps when you shut it, and caffeinate does not change that. See the closed-lid guide for the options.
- Low battery. A Mac that runs out of charge shuts down. Plug in for anything long.
- Network drops. An awake Mac with no connection still has a stalled transfer. Check that the Wi-Fi stays in range, and that a VPN does not time out.
- The server giving up. Some servers drop a connection after a set time or limit one session. That is outside your Mac.
- Heat. Do not leave a running laptop in a bag or on a bed. Use a hard, open surface.
A quick way to test before you leave
Start the transfer, set up your chosen option, then run pmset -g assertions in a second Terminal tab. If caffeinate or your app is working, you should see a sleep-prevention assertion listed, such as PreventUserIdleSystemSleep, with its name. If you see none, the Mac can still sleep.
Which should you use?
- A command you control:
caffeinate -iin front of it. - A browser download:
caffeinate -i -twith a safe time limit, or Amphetamine's download session. - You want a timer in the menu bar: try Stay Awake free for 7 days.
- Lid closed: read the closed-lid guide first.