What is caffeinate on Mac?
By Junaid, maker of Taskglass · Last reviewed
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
- 1Check which app or Terminal window started it
- 2Run 'pmset -g assertions' in Terminal to see what's keeping the Mac awake
- 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
- powerdManages sleep, wake, battery and charging, and tracks apps asking to keep the Mac awake.
- cfprefsdReads and saves the settings (preferences) of every app and of macOS itself.
- configdKeeps track of network and system configuration and tells apps when it changes.
- containermanagerdCreates and manages the private storage 'containers' that sandboxed apps keep their data in.
- ControlCenterRuns Control Center and most of Apple's menu bar icons: Wi-Fi, Bluetooth, sound, battery, clock.
- coreaudiodHandles all sound on your Mac: playback, microphones, and audio devices.
Part of the Taskglass Process Library · More macOS system processes