AMPLibraryAgent on Mac: what it is and why it uses CPU
AMPLibraryAgent is the background helper for the Music, TV and Podcasts apps. AMP stands for Apple Media Products, the group that replaced iTunes. The agent maintains your library database: it matches tracks, syncs with iCloud Music Library, refreshes artwork and metadata, and keeps playlists in step across devices. It is idle most of the time and busy for a while after a big import, after turning Sync Library on, or after a macOS or Music update. It settles on its own. If it does not, quitting Music and restarting is the safe reset.
- Verdict
- Let it settle. It finishes on its own, usually within an hour.
- Normal CPU
- 0 percent when quiet; 50 to 100 percent while a library job runs
- Normal memory
- Under 150 MB, more during a big import
- Common cause
- A large import, Sync Library turned on, a Music or macOS update rebuilding the library
- Runs even when Music is closed
- Yes. It is a login agent, not part of the Music window
What AMPLibraryAgent does
When Apple split iTunes into Music, TV and Podcasts in macOS Catalina, the library work that used to live inside iTunes moved into a shared background agent: AMPLibraryAgent. It owns the library database for those apps. When you add songs, it scans the files, reads tags, pulls artwork, and writes entries. When Sync Library (iCloud Music Library) is on, it compares your library with Apple's copy, uploads what is missing, matches what it can, and downloads changes made on your iPhone. When Music or macOS updates, it often has to migrate or rebuild the database to the new format.
It runs as you, starts at login, and keeps going whether or not the Music window is open. That last part is what surprises people: you quit Music, the fans keep spinning, and Activity Monitor shows a name you have never heard of at the top of the list.
What normal looks like
- Minute 0You import a few thousand tracks, or turn on Sync Library. AMPLibraryAgent jumps to 80 to 100 percent.
- Minutes 5 to 30Still high. It is reading every file, fetching artwork, matching against the catalog. Fans may run. Normal.
- Hour 1A library of tens of thousands of tracks can still be going, especially on a slow connection. Still normal if the number of items in Music keeps rising.
- Next morningShould be at zero. If it is still at 100 percent with the library unchanged, it is stuck. Fix order below.
Why AMPLibraryAgent is using CPU right now
- A big import just happened. Dragging a folder of music into Music, or adding a ripped CD collection, gives the agent thousands of files to scan and tag. This is the most common cause and it ends when the import does.
- Sync Library was turned on, or you signed into a new Apple ID. The first sync compares your whole library with iCloud, track by track. On a large library this is the longest job the agent ever does.
- Music, TV or macOS was just updated. Library database upgrades run in the background after an update. Reports of AMPLibraryAgent at full CPU cluster around major releases, with Catalina being the first and loudest.
- Artwork or metadata refresh. Music periodically refreshes artwork and catalog data for matched tracks. Smaller than an import, but visible.
- A damaged library file. If the agent hits a corrupt entry it can retry endlessly. The giveaway is high CPU with no change in the library for hours and no import in progress.
- An external drive with the library went away. If your Music library lives on a drive that was unplugged or went to sleep, the agent can spin waiting for it.
Is it safe to quit AMPLibraryAgent?
Quitting it is harmless but rarely useful. It is a login agent, so launchd restarts it, and when it restarts it resumes the same job from where the database says it left off. Force quitting during a library write is the one thing worth avoiding, because interrupting a database migration is how libraries end up damaged. The safe version of the same idea is to quit Music (and TV and Podcasts), give the agent a minute to finish writing, and then restart the Mac. That resets the agent cleanly and resumes any unfinished sync on the next launch.
Its siblings have similar names: AMPDeviceDiscoveryAgent (finds iPhones and iPads for syncing), AMPArtworkAgent (artwork), AMPDevicesAgent (device sync). Type any of them above.
What to do, in order
- Check whether a job is actually running
Open Music. Look at the bottom of the sidebar or the activity indicator in the window for an import, match or upload in progress. If the song count is rising, it is working. Leave it, ideally on power.
- Give it an hour, overnight for a large library
A library of tens of thousands of tracks on a slow connection genuinely takes hours to sync the first time. The agent is single-minded; it finishes faster if you do not keep restarting it.
- Reconnect the library drive
If your library lives on an external disk, plug it in and wake it. The agent stops spinning as soon as the files are reachable.
- Quit Music, TV and Podcasts, then restart
Quit the three apps so the agent has nothing to serve, wait a minute, and restart the Mac. On login the agent starts fresh and continues any unfinished sync from the database, not from scratch.
- Turn Sync Library off and on
Music, Settings, General, Sync Library. Switch it off, wait a few minutes, switch it back on. This restarts the cloud comparison cleanly. Downloaded tracks stay on the Mac; purchased and matched items come back when sync resumes.
- Hold Option while opening Music to pick or rebuild the library
If the agent stays at full CPU for days with no change, the library file may be damaged. Holding Option as Music opens lets you create a new library or choose a different one. Keep the old library folder; nothing is deleted. Re-add your music folder and let the agent rebuild once, properly.
When to worry
Worry when the agent has been at full CPU for more than a day, the song count in Music has not moved, no import is showing, and a restart brings it straight back. That is a damaged library or a missing drive, and the rebuild in step six is the fix. Do not worry about hours of activity after a big import or a first sync; that is the job you asked for. Do not worry about it running with Music closed; it is a background agent and that is normal. And do not install a cleaner to deal with it; nothing a cleaner does touches the Music database, and some of them break it.
Safe to Quit, the Mac app this site comes from, marks AMPLibraryAgent as one to let settle and tells you it stops on its own, which is the whole answer most of the time.
Questions people ask
What is AMPLibraryAgent on a Mac?
It is the background agent that maintains the library database for the Music, TV and Podcasts apps. AMP stands for Apple Media Products, the team that replaced iTunes in macOS Catalina. It imports and tags files, syncs with iCloud Music Library, refreshes artwork and migrates the database after updates. It runs on every Mac and starts at login.
Why does AMPLibraryAgent run when Music is closed?
Because it is a login agent, not part of the Music app window. Library syncing, artwork refresh and database upgrades happen in the background so the apps open instantly when you launch them. If you want it quiet, let it finish its current job; quitting Music does not stop it and does not need to.
How long should AMPLibraryAgent take after a big import?
Minutes for a few hundred tracks, up to an hour for several thousand, and potentially overnight for a library of tens of thousands on a slow internet connection with Sync Library on. The test is whether the song count in Music keeps rising. If it does, it is working; if it stops for hours while CPU stays high, it is stuck.
Can I stop AMPLibraryAgent from running?
Not permanently without breaking Music, TV and Podcasts, and there is no setting to disable it. You can reduce its work by turning off Sync Library in Music settings if you do not use iCloud Music Library, and by keeping your library on an internal or always-connected drive. After that it only runs when you add or change media.
Is AMPLibraryAgent related to AMPDevicesAgent?
They are siblings. AMPDevicesAgent handles syncing an iPhone or iPad plugged into the Mac, the job iTunes used to do with a cable. AMPLibraryAgent handles the library itself. If you see AMPDevicesAgent busy, a device sync or backup is running; it ends when you unplug the device or the sync completes.
Sources and further reading
- Apple Support: Sync Library with Apple Music What Sync Library does, which is the agent's biggest job.
- Apple Support: Import items already on your computer into Music on Mac The import flow that triggers a long AMPLibraryAgent run.
- Apple Support: If you can't open Music or a library file is damaged The Option-at-launch rebuild used in step six.