Skip to contentBlack FridayTaskglass is $9 instead of $14Get the deal →

What is caffeinate on Mac?

By Junaid, maker of Taskglass · Last reviewed

Summarize this page with

A built-in tool that keeps your Mac awake while something is running.

caffeinate is a command-line tool included with macOS that stops the Mac from going to sleep, either for a set time or while another program runs. Apps, scripts and developer tools use it to keep the Mac awake during long tasks. It uses almost no CPU; its only effect is preventing sleep.

Category
macOS system
Made by
Apple
Safe to quit:
Yes

Shown in Activity Monitor as caffeinate

Why is caffeinate using so much CPU or memory?

  • It almost never uses CPU; its effect is on sleep, not performance
  • A script or app started it and forgot to stop it, keeping the Mac awake

What to do

  1. 1Check which app or Terminal window started it
  2. 2Run 'pmset -g assertions' in Terminal to see what's keeping the Mac awake
  3. 3Quit it if you want the Mac to be able to sleep again

Safe to quit? Yes.

Safe to quit; your Mac will simply be allowed to sleep normally again.

Typical CPU and memory use

Measured on an Apple M4 Mac running macOS 27.0.1 on November 17, 2026, during normal use:

  • caffeinate: 0 MB of memory, running as your user account

Resident memory from ps at one moment. It changes with what you're doing.

Is it genuine? How to check

Malware sometimes borrows the name of a real process. The real one runs from a fixed place and carries its maker's code signature, so check both.

caffeinate

Location
/usr/bin/caffeinate
Signed by
Apple (part of macOS)

Check the signature in Terminal:

codesign -dv --verbose=2 "/usr/bin/caffeinate"

The genuine file prints these lines:

Identifier=com.apple.caffeinate
Authority=macOS Software Signing
TeamIdentifier=not set

To see where the running copy lives, run this in Terminal and compare the path:

ps -axo pid,user,comm | grep -F caffeinate

In Activity Monitor: select the process, click the Info button (ⓘ), then Open Files and Ports. The first line is the program's path.

Paths and signatures checked on macOS 27.0.1 (26A434), Apple M4, November 17, 2026. Other macOS versions can differ.

Related guides

Related processes

Part of the Taskglass Process Library · More macOS system processes

See this process live in Taskglass.

Taskglass shows what caffeinate is doing on your Mac right now, groups it under the app that started it, and checks its code signature for you. It explains 224 processes this way.

See how Taskglass works →How it compares with Activity Monitor →