What is AirPlayUIAgent on my Mac?
Last reviewed: 19 November 2026. Path, account, launchd job, bundle ID and strings checked on macOS 26.3.1.
AirPlayUIAgent is the part of AirPlay that runs in your login session and shows AirPlay's windows and messages, such as the code prompt when you connect to an Apple TV, password requests and connection errors. Its display name is AirPlay Screen Mirroring, and while mirroring is active it keeps the Mac from sleeping. It is part of macOS and safe.
AirPlayUIAgent at a glance
| AirPlayUIAgent | |
|---|---|
| Made by | Apple (part of macOS, AirPlay) |
| Type | User agent |
| Location | /System/Library/CoreServices/AirPlayUIAgent.app/Contents/MacOS/AirPlayUIAgent |
| Runs as | your user |
| Started by | launchd job com.apple.AirPlayUIAgent |
| Bundle ID | com.apple.AirPlayUIAgent |
| Can you quit it? | Yes, but launchd starts it again at once, and AirPlay code and password prompts do not appear while it is gone. |
What is AirPlayUIAgent?
AirPlayUIAgent is an Apple app bundle with the bundle ID com.apple.AirPlayUIAgent and the display name "AirPlay Screen Mirroring". It starts at login and launchd keeps it running.
Its English strings show what it does: "Enter the AirPlay code for" a device, "Enter the AirPlay password for" a device, errors such as "Could not connect", "is currently in use" and "the wireless signal is too weak", a notice when the Firewall blocks AirPlay connections to the Mac, and a power assertion described as "AirPlay Screen is active. That prevents system sleep." The streaming work itself is done by AirPlayXPCHelper.
Is AirPlayUIAgent safe?
Yes. AirPlayUIAgent is in /System/Library/CoreServices on the read-only system volume and runs from an Apple launch agent.
Why does AirPlayUIAgent use so much energy, CPU and memory?
- Screen mirroring keeps the Mac awake. While AirPlay screen mirroring is active, it holds a power assertion that prevents system sleep, which matters on battery.
- Connecting to an AirPlay device. Code and password prompts and connection errors are shown by AirPlayUIAgent.
- Running all session. It runs for as long as you are logged in. Its memory use is normally small.
How much CPU is normal for AirPlayUIAgent?
Typical use is 0% CPU and little memory. It shows activity only when AirPlay prompts appear.
Steady CPU use is not typical.
What can you do about AirPlayUIAgent?
- Stop screen mirroring when done. Turn off Screen Mirroring in Control Center so the Mac can sleep again.
- Check sleep blockers. Run
pmset -g assertionsin Terminal to see whether AirPlay is preventing sleep. - Quit it once if it misbehaves. Select it in Activity Monitor and quit it. launchd starts a fresh copy.
When should you worry about AirPlayUIAgent?
Constant CPU use is unusual. A copy outside /System/Library/CoreServices would not be Apple's.
How do you check AirPlayUIAgent in Activity Monitor and Terminal?
Open Activity Monitor (Applications > Utilities), and type AirPlayUIAgent in the search field. The Energy tab shows its Energy Impact. The CPU tab shows its % CPU. The Memory tab shows its Memory. Double-click the row for its parent process, memory details and open files.
In Terminal, the first command lists every AirPlayUIAgent process with its PID, user, CPU and memory (RSS is resident memory in kilobytes).
ps -axo pid,user,%cpu,%mem,rss,command | grep -F 'AirPlayUIAgent' | grep -v grep
pmset -g assertions # shows processes keeping the Mac awake
How can Thrum help with AirPlayUIAgent?
Thrum keeps a live CPU graph in the menu bar. One click shows the eight processes using the most CPU, so you can see when AirPlayUIAgent is among them and how much it takes. An optional alert tells you when a process stays above a CPU level you choose (50 to 200% of one core) for 1 to 10 minutes. Click AirPlayUIAgent 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 AirPlayUIAgent
Why is my Mac not sleeping?
If AirPlay screen mirroring is on, AirPlayUIAgent prevents system sleep until mirroring stops.
Can I remove AirPlayUIAgent?
No. It is part of the read-only system volume.
Sources
- App strings: AirPlayUIAgent.app/Contents/Resources/AirPlayUIAgentUI.loctable
- pmset(1) man page: run man pmset in Terminal