Messages · macOS process

imagent on Mac: what it is, why it uses CPU or memory, and why not to quit it

The short answer

imagent is the background agent that keeps iMessage and FaceTime connected, even when the Messages app is closed. It sits near zero CPU and 50 to 150 MB of memory all day and wakes briefly when a message arrives. It gets busy for 10 to 30 minutes after you sign in to a new Mac or turn on Messages in iCloud, because it is syncing your whole message history. If it sits at 100 percent for hours or its memory climbs into the gigabytes, the sync is stuck; signing out of iMessage and back in is the fix. Do not quit it: messages and calls stop arriving until it restarts.

Leave itA core part of macOS. Quitting it does nothing useful, and macOS starts it again.

6 min readUpdated 16 November 2026macOS 12 Monterey to macOS 26 Tahoe

What it is
The iMessage and FaceTime agent from Apple's IMCore framework. Messages.app and FaceTime.app are just windows onto it.
Normal
0 to 2 percent CPU and 50 to 150 MB of memory, with a short burst each time a message or call comes in.
Not normal
100 percent CPU for hours with Messages closed, or memory growing past 1 GB and not coming back.
Safe to quit?
It relaunches, but while it is down you miss messages and calls. Sign out and back in instead.
The one safe fix
Messages, Settings, iMessage, Sign Out, wait a minute, sign back in. Then let the sync finish.
On this page9 sections
  1. What imagent does
  2. Why imagent is using CPU or memory right now
  3. What normal looks like
  4. Is it safe to quit imagent?
  5. What to do, in order
  6. Why the firewall asks about imagent
  7. When to worry
  8. What people hit
  9. Questions

What imagent does

When you open Messages on a Mac, the app does not talk to Apple's servers itself. It asks imagent, a background agent that has been running since you logged in. imagent holds the encrypted connection to Apple's push and messaging servers, receives each new iMessage and SMS relayed from your iPhone, writes it into the Messages database, and tells Notification Center to show the banner. It does the same for FaceTime invitations, which is why a FaceTime call can ring on a Mac whose FaceTime app has not been opened in weeks.

It also runs the sync behind Messages in iCloud. When that is on, every device with your Apple Account keeps the same message history, and imagent is the process that downloads it, reconciles it with what is already on the Mac, and uploads anything new. Attachments, read receipts, typing indicators, tapbacks and the "delivered" status all pass through it.

It lives at /System/Library/PrivateFrameworks/IMCore.framework/imagent.app, runs as your user, and is managed by launchd. If you have never set up iMessage on the Mac it still runs, but it has nothing to do and you will never notice it.

Why imagent is using CPU or memory right now

Nearly every report of a busy imagent is one of these:

  1. A first sync. You just signed in to iMessage on this Mac, turned on Messages in iCloud, or restored from a backup. imagent downloads years of conversations and attachments and indexes them. On a large history this is 10 to 30 minutes of real work, longer on a slow connection.
  2. A sign-in loop. The Mac tries to activate iMessage, fails (wrong password, two-factor prompt waiting on another device, a date and time that is off), and tries again every few seconds. CPU stays high and nothing arrives. Sign out, fix the cause, sign back in.
  3. A damaged message database. The Messages history is a SQLite database in your Library folder. If one conversation is corrupt, imagent can spin trying to sync it, growing in memory as it goes. The MacRumors thread quoted below is the classic version: imagent filling RAM and disk at every startup.
  4. A huge attachment backlog. Group chats with thousands of photos and videos. Each attachment is downloaded, thumbnailed and stored. Watch nsurlsessiond move in step with it.
  5. A macOS bug after a major update. Several releases have shipped with imagent leaks that appeared right after updating and disappeared in the next point release. The pattern is high memory on an otherwise idle Mac, cleared by a restart, back within a day.
  6. Firewall prompts. Not a CPU issue, but the second most common reason people search for this name: the macOS firewall or a third-party firewall asks whether imagent may accept incoming connections. The answer is yes; it is how messages and FaceTime calls reach you.

What normal looks like

Where you are in the sync matters more than the number:

Signed in, idle, Messages closed0 to 2 percent, 50 to 150 MBWakes for a second per message, then sleeps.
Busy group chat, Messages open5 to 20 percent in burstsEach incoming photo is downloaded and written to the database.
First sync after sign-in or iCloud toggle50 to 100 percent for 10 to 30 minDownloading history and attachments. Leave it plugged in.
Hours at 100 percent, memory in the GBStuck loop or leakSign out and in. If it returns daily, restart and update macOS.
imagent CPU and memory by situation. The sync window is from Apple Community and MacRumors reports; the idle figures are what a healthy Mac shows in Activity Monitor.

One useful check: open Messages and look at the bottom of the conversation list. During a sync it shows a progress line such as "Downloading messages from iCloud". While that line is there, imagent is supposed to be busy. When it is gone and imagent is still pinned, something is wrong.

Is it safe to quit imagent?

It will not damage anything, but it is the wrong move, and the knowledge base verdict is to leave it alone. imagent is the thing that receives your messages. While it is down you miss iMessages, SMS relayed from your iPhone, and FaceTime calls, and because other people see "Delivered" only once a device has received the message, you may not know what you missed. launchd restarts it within a few seconds, so the gap is short, but if it was stuck in a sign-in loop the new copy enters the same loop.

The equivalent action that actually resets its state is signing out of iMessage inside the Messages app and signing back in. That closes the connection cleanly, clears the activation state, and starts a fresh sync. It takes a minute and loses nothing: your history is on Apple's servers and your other devices.

It is also not malware. It has run under this name since Messages replaced iChat in 2012, lives inside the sealed system volume, and runs as your user, not root.

What are you about to quit?

What to do, in order

  1. Check whether a sync is running

    Open Messages. If the conversation list says it is downloading messages from iCloud, imagent is doing its job. Plug in, leave it, and check back in 30 minutes. Most reports end here.

  2. Fix the obvious sign-in blockers

    Open System Settings, General, Date & Time and make sure the time is set automatically; iMessage activation fails when the clock is off. Then check your iPhone for a waiting two-factor prompt. Both cause the retry loop that keeps imagent at full CPU.

  3. Sign out of iMessage and back in

    Messages, Settings, iMessage tab, Sign Out. Wait a full minute, then sign in again. This is the one safe reset for imagent. Do the same in FaceTime, Settings, if FaceTime was the trigger. Expect a short sync afterwards.

  4. Turn Messages in iCloud off and on

    In the same iMessage tab, uncheck Enable Messages in iCloud, wait for the Mac to finish, then check it again. This forces a clean re-sync and clears a stuck conversation without deleting anything stored in iCloud.

  5. Restart the Mac

    If imagent's memory had climbed into the gigabytes, a restart from the Apple menu frees it and resets launchd's view of the process. Watch it for the next day: if the growth returns, it is a macOS bug rather than your data.

  6. Update macOS

    System Settings, General, Software Update. imagent leaks after a major update have been fixed in point releases more than once. If you are one release behind, this is the fix, not another sign-out.

Why the firewall asks about imagent

The second thing people search for is the prompt: "Do you want the application imagent to accept incoming network connections?" It appears when the macOS firewall is on with the default settings, or when you install a third-party firewall. imagent needs to accept incoming connections for FaceTime calls and some message delivery paths to work. Click Allow. Blocking it does not make the Mac safer; it makes FaceTime ring on every device except this one and can delay messages. If you blocked it by mistake, open System Settings, Network, Firewall, Options, find imagent in the list and set it to allow.

If you want the prompt to stop appearing without allowing it, the honest answer is to sign out of iMessage and FaceTime on this Mac. Then imagent has nothing to listen for.

When to worry

imagent is never a security concern on its own. The concern is a Mac that stays hot, a battery that drains, or messages that stop arriving. The flow below is the decision most people need:

  1. 1imagent high in Activity Monitor
  2. 2Signed in or toggled iCloud in the last hour? Wait 30 minutes
  3. 3Still high and Messages shows no sync line? Sign out and back in
  4. 4Returns within a day? Restart, then Software Update
  5. 5Quiet again: leave it alone
The path from a busy imagent to a quiet one, safest step first.

The thing a single look at Activity Monitor cannot tell you is whether imagent is finishing a sync or looping. Safe to Quit watches it over hours and flags the difference, which saves the guesswork. If the whole Mac feels slow rather than just this process, start with why is my Mac so slow.

What people hit, in their words

“whenever i start my computer, a process called imagent starts and fills up all the ram, then it fills up the Disk”

“It does not recognize my password so pops up constantly.”

“IMAgent is a process that listens for FaceTime invitations.”

Questions people ask

What is imagent on Mac?

imagent is the background agent for iMessage and FaceTime. It keeps the connection to Apple's messaging servers open, receives messages and call invitations even when the Messages and FaceTime apps are closed, writes messages into your local history, and runs the Messages in iCloud sync. It is part of macOS, located inside the IMCore framework on the system volume, and runs as your user.

Why is imagent using so much CPU?

Usually because it is syncing your message history after a sign-in, a restore, or turning on Messages in iCloud, which takes 10 to 30 minutes on a big history. Sustained 100 percent with nothing syncing means a sign-in retry loop (often a wrong clock or a waiting two-factor prompt) or a corrupt conversation. Signing out of iMessage and back in resets it.

Can I quit imagent?

You can, and macOS restarts it within seconds, but while it is down you miss iMessages, relayed SMS and FaceTime calls, and quitting does not clear a stuck sign-in. The equivalent that actually helps is Messages, Settings, iMessage, Sign Out, then sign in again. Your history is safe in iCloud and on your other devices.

Should I allow imagent to accept incoming connections?

Yes. The firewall prompt appears because imagent listens for FaceTime calls and message delivery. Allowing it is the normal, expected setting on every Mac that uses iMessage or FaceTime. Blocking it does not improve security; it stops FaceTime ringing on this Mac and can delay messages. You can change the choice later in System Settings, Network, Firewall, Options.

Is imagent a virus?

No. It is a core macOS component that has existed since Messages replaced iChat in 2012. It lives on the sealed, read-only system volume at /System/Library/PrivateFrameworks/IMCore.framework and cannot be modified by malware. If you want to confirm, select it in Activity Monitor, click the info button and check the path.

Sources and further reading