Thrum

What is caffeinate, and why is it running on my Mac?

Last reviewed: 19 November 2026. Path and man page checked on macOS 26.3.1.

caffeinate is a macOS command-line tool that stops the Mac, its display or its disk from sleeping for as long as it runs. If you see it in Activity Monitor, you, a script or an app started it to keep the Mac awake. It uses almost no CPU, but it can drain the battery by preventing sleep; quitting it is safe.

caffeinate at a glance

caffeinate
Made byApple (part of macOS)
TypeCommand-line tool
Location/usr/bin/caffeinate
Runs asyour user
Can you quit it?Yes. Quitting it releases the sleep assertion it holds.

What is caffeinate?

The man page says caffeinate "creates assertions to alter system sleep behavior. If no assertion flags are specified, caffeinate creates an assertion to prevent idle sleep." Options choose what to keep awake: -d the display, -i the system from idle sleep, -m the disk, -s the whole system (valid only on AC power) and -u to declare that the user is active. -t sets a timeout in seconds, and -w waits for another process to exit.

When caffeinate is given a command, as in caffeinate -i make, it keeps the Mac awake until that command finishes. Run on its own, it keeps the Mac awake until caffeinate itself exits. It lives at /usr/bin/caffeinate and runs as whichever user started it.

Is caffeinate safe?

Yes. caffeinate is an Apple tool that only holds power assertions. The only side effect is that the Mac stays awake, which uses battery and keeps the display or system on.

Why does caffeinate use so much energy and CPU?

How much energy is normal for caffeinate?

0% CPU and well under a megabyte of memory. Running for as long as the task it protects, then exiting, is normal.

A caffeinate that stays running for days with no reason is usually left over from a script or an app.

How do you stop caffeinate keeping your Mac awake?

  1. See what it is holding. Run pmset -g assertions in Terminal. caffeinate appears by name with the assertion it holds, such as PreventUserIdleSystemSleep.
  2. Find who started it. Run ps -o ppid=,command= -p $(pgrep -x caffeinate) to see its parent process ID and arguments, then ps -p PARENT with that number to see the app or script that started it.
  3. Stop it. If you started it in Terminal, press Control-C in that window. Otherwise select caffeinate in Activity Monitor and click the Stop button, or run killall caffeinate. The Mac can then sleep normally.
  4. Stop the source. If an app or script keeps starting caffeinate, change that app's setting for keeping the Mac awake, or remove it.

When should you worry about caffeinate?

caffeinate started by a program you do not recognise is worth tracing with the steps above; legitimate uses include backup, download and build tools that want to finish before the Mac sleeps.

A Mac that never sleeps on battery and gets warm in a bag is a common symptom of a forgotten caffeinate.

How do you check caffeinate in Activity Monitor and Terminal?

Open Activity Monitor (Applications > Utilities), and type caffeinate in the search field. The Energy tab shows its Energy Impact. The CPU tab shows its % CPU. Double-click the row for its parent process, memory details and open files.

In Terminal, the first command lists every caffeinate process with its PID, user, CPU and memory (RSS is resident memory in kilobytes).

ps -axo pid,user,%cpu,%mem,rss,command | grep -F 'caffeinate' | grep -v grep
pmset -g assertions    # shows processes keeping the Mac awake

How can Thrum help with caffeinate?

Thrum's Energy tab shows energy impact for each app, plus battery level and time remaining, so you can see how much caffeinate adds to battery drain. Click caffeinate in the list for its PID, threads and memory, and Quit or Force Quit it after a confirmation.

Thrum is $4.99 once with a 14-day free trial and no account. It requires macOS 26 Tahoe on Apple silicon or Intel.

Questions about caffeinate

Is caffeinate a virus?

No. It is an Apple command-line tool at /usr/bin/caffeinate. It only keeps the Mac awake for whoever started it.

How do I keep my Mac awake for an hour from Terminal?

Run caffeinate -d -t 3600. The display and Mac stay awake for 3,600 seconds, then the assertion is released.

Does caffeinate -s work on battery?

No. The man page says the -s assertion is valid only when the system is running on AC power. Use -i to prevent idle sleep on battery.

Sources