Agent Caffeine vs Amphetamine
Agent Caffeine keeps a Mac awake while AI coding agents work. Amphetamine is a free keep-awake app for every other reason, with many Triggers. Here is how they differ.
Checked on
| Feature | Amphetamine | Agent Caffeine |
|---|---|---|
| Price | Free, no in-app purchases | $9 once for 1 Mac, after a 7-day free trial |
| Where to get it | Mac App Store | caffeinagent.com or Homebrew |
| Needs | macOS 10.13 or later | macOS 13 or later, Apple silicon and Intel |
| Source code | Not stated | Closed source |
| Timed sessions | Indefinitely, for a time, or until a time | Always on, or awake for 1 hour to 1 day |
| Starts by itself | Triggers: an app that runs, a Wi-Fi network, a display, the charger, processor use and more | When an AI coding agent works |
| Knows when an AI agent works | No. A Trigger can watch an app that runs | Yes. Claude Code, Codex and Grok Build report their state; more than 40 agents in all |
| Sleeps when the work is done | When the session ends or its Trigger no longer applies | Yes, when every agent is idle or done |
| Lid closed | Closed-display mode. Apple silicon laptops need Power Protect, a separate install | Yes. On battery, with a helper you allow once |
| Stops at a low battery | Yes | Yes, at 20% by default |
| Stops when the Mac is too hot | Not stated | Yes |
| Automation | AppleScript, hot keys | Command line tool, keyboard shortcuts |
| MCP server | Not stated | Yes |
| Last update | 5.3.2, November 10, 2023 | 1.2.12, December 1, 2026 |
The Agent Caffeine column comes from this site. The Amphetamine column comes from its own pages, read on the day above. "Not stated" means that the page does not say. It does not mean no.
When Amphetamine is the better choice
Pick Amphetamine if you keep a Mac awake for many reasons: a download, a presentation, a Mac that must stay awake on one Wi-Fi network or while a display is connected. Its Triggers do that, and it is free.
Its newest version is from 2023, so test closed-display mode on your macOS before you rely on it. Our guide to the Amphetamine app has a short test.
When Agent Caffeine fits
Pick Agent Caffeine if you keep a Mac awake for AI coding agents. It reads whether Claude Code, Codex and Grok Build work, wait for you or are idle, keeps the Mac awake while they work, and lets it sleep when they are done. You do not turn it on and off.
It holds a closed lid on battery with a helper you allow once, and it stops for a low battery or heat. Scripts and agents can ask for a hold with the agent-caffeine command or the MCP server. See how to keep a Mac awake for Claude Code and Codex.
Sources: Mac App Store, README.
Is a cell wrong or out of date? Write to hi@caffeinagent.com and we correct it.