Amphetamine vs Latte
Amphetamine is one of the best keep-awake apps on the Mac. An honest look at when it's enough for coding agents, and when it isn't.
By Harsh Soni, maker of Latte · Updated
Amphetamine is excellent at keeping a Mac awake on your terms, including with the lid closed, and it costs nothing. Latte is narrower: it keeps the Mac awake only while a coding agent is actually working, sends the agent's prompts to your phone, and sleeps the Mac the moment the work is done.
What Amphetamine does well
- Sessions you start by hand, for a set time, or while a specific app is running.
- Triggers based on things like power source, battery level, Wi-Fi network or connected displays.
- A Closed-Display Mode that keeps a MacBook awake with the lid shut. On recent versions this uses a small script it installs, approved with your admin password.
- Mature, widely used, and available on the Mac App Store.
If you want a general keep-awake switch for your Mac, it's hard to beat.
Where it falls short for coding agents
- It doesn't know what the agent is doing. A trigger like “while Terminal is running” is true all day. Amphetamine can't see that Claude Code finished an hour ago, or that it's sitting on a permission prompt, so the Mac stays awake either way.
- Nobody answers the prompt. The Mac is awake, but the run is stopped on “Allow this command?” until you're back.
- Guards are generic. Amphetamine can end a session at a battery level. It won't pause an agent when the Mac runs hot, or notice a run stuck repeating the same command.
Side by side
| Amphetamine | Latte | |
|---|---|---|
| Keeps the Mac awake, lid open | Yes, by session or trigger | Yes, while an agent works |
| Lid closed | Yes, Closed-Display Mode | Yes, on battery too if you turn it on |
| Knows when the agent finishes | No | Yes, through each agent's hooks |
| Prompts and questions on your phone | No | Claude Code, via Telegram or ntfy |
| Finished and status alerts | No | Claude Code, Codex and Grok |
| Battery floor | Yes, as a trigger | Yes, plus a hard stop at 7% |
| Heat guard and stuck-run detection | No | Yes |
| Price | No charge | $2 a month after a 7-day trial |
Which should you use?
If you mostly want your Mac awake for presentations, downloads or long renders, use Amphetamine. If you run Claude Code, Codex or Grok and want to close the lid, leave, and have the run finish and the Mac go to sleep on its own, that's the job Latte was built for.
Also worth reading: caffeinate vs Latte and every way to keep Claude Code running with the lid closed.
Common questions
- Can Amphetamine keep a MacBook awake with the lid closed?
- Yes. Amphetamine has a Closed-Display Mode. It keeps the Mac awake for the session or trigger you set, not for how long your coding agent actually works.
- Does Amphetamine know when Claude Code has finished?
- No. It can keep the Mac awake while an app such as Terminal is running, but it cannot tell whether an agent inside it is working, waiting for you, or done.
- Is Latte an Amphetamine alternative?
- For AI coding agents, yes. Latte follows Claude Code, Codex and Grok through their hooks, sends prompts to your phone and sleeps the Mac when the work ends. For general keep-awake use, Amphetamine is the better fit.
Latte keeps Claude Code, Codex and Grok working with your MacBook closed, sends approvals to your phone, and lets the Mac sleep the moment the work is done.