Thrum

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 byApple (part of macOS, AirPlay)
TypeUser agent
Location/System/Library/CoreServices/AirPlayUIAgent.app/Contents/MacOS/AirPlayUIAgent
Runs asyour user
Started bylaunchd job com.apple.AirPlayUIAgent
Bundle IDcom.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?

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?

  1. Stop screen mirroring when done. Turn off Screen Mirroring in Control Center so the Mac can sleep again.
  2. Check sleep blockers. Run pmset -g assertions in Terminal to see whether AirPlay is preventing sleep.
  3. 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