Caffeinate vs Amphetamine: Which Keep-Awake Tool (2026)
Use caffeinate when you want to keep your Mac awake for one command or one job from Terminal. Use Amphetamine when you want an app with a timer, a switch, and rules that decide when your Mac stays awake.
If you also want to reach that awake Mac from your phone, Macky puts its terminal and screen on your iPhone.
The short comparison
The caffeinate command | Amphetamine | |
|---|---|---|
| Source | Built into macOS | Mac App Store |
| Install | Nothing to install | Download from the Mac App Store. Requires macOS 10.13 or later |
| Interface | Terminal command | App with sessions |
| Ways to start | Flags that choose what stays awake | On/off switch or timer. Also file downloads, running apps, and Triggers. |
| Closed lid | Not confirmed here | Closed-Display Mode |
What caffeinate gives you
The syntax is caffeinate [-disu] [-t timeout] [-w pid] [utility arguments...]. Each flag covers a different kind of sleep:
-dprevents display sleep.-iprevents idle system sleep.-mprevents idle disk sleep.-sprevents system sleep, and only on AC power.
Run this in Terminal to keep the display on:
caffeinate -dFor more examples, see caffeinate on Mac.
What Amphetamine gives you
Amphetamine is made by William Gustafson and is free on the Mac App Store. It can keep the Mac and, optionally, its display awake. You start a session with an on/off switch or a timer. A file download, a running app, or rule-based Triggers can start one too.
It isn't open source. The latest version is 5.3.2, released in November 2023, according to a third-party review.
Reach your awake Mac from your iPhone
Macky's Mac app has a keep awake switch and a closed-lid mode. It runs from the menu bar and can launch at login.
From your iPhone you open a real shell on the Mac, or view its screen. The connection is end-to-end encrypted, with no open ports and no VPN to set up. A master password protects the Mac, and each new iPhone must be approved on the Mac first.

Closed lid on Apple Silicon
Amphetamine's Closed-Display Mode changed in version 5.3. Before that, it failed on Apple Silicon Macs when you connected or disconnected external power.
Now a closed-display session needs an installed script that runs when a session starts or ends. It also needs admin authentication, such as Touch ID or Apple Watch. For a full walkthrough, read how to keep a MacBook awake with the lid closed.
Which one to pick
- Pick caffeinate if you run long jobs in Terminal and want nothing extra installed.
- Pick Amphetamine if you want timers, Triggers, or Closed-Display Mode in an app.
- Use both if you like: they don't need to be exclusive.
Running a Mac as a server? See Mac mini home server and the headless Mac mini guide.
FAQ
What does the caffeinate command do on a Mac?
It stops your Mac from sleeping while the command runs. Flags choose what stays awake. Use -d for the display and -i for idle system sleep. Use -m for idle disk sleep and -s for system sleep on AC power.
Is Amphetamine free?
Yes. Amphetamine is free on the Mac App Store and requires macOS 10.13 or later.
Can either one keep a Mac awake with the lid closed?
Amphetamine has Closed-Display Mode. On Apple Silicon Macs it needs an installed script and admin authentication such as Touch ID. Macky's Mac app also has a closed-lid mode.
What are some free alternatives to Amphetamine on Mac?
The built-in caffeinate command costs nothing and needs no install. The Macky Mac app also has a keep awake switch, and it sits alongside the terminal and screen access that Macky gives you on your iPhone.
Related Guides & Comparisons
Try Macky
Connect to your Mac terminal from your iPhone.