What is imagent on Mac?

What imagent does, why it uses CPU or memory, what breaks if you block it, and how to check the copy on your Mac is Apple's. Checked on macOS 26.

SafePart of macOS or a well-known app. Leave it alone. The rating describes the real imagent, not every copy with that name.

What it is
Messages. Sends and receives iMessages.
Made by
Apple
Where the real one lives
/System/Library/PrivateFrameworks/IMCore.framework/imagent.app/Contents/MacOS/imagent
If you block its internet access
Messages can't send or receive iMessages.
What to do
Part of macOS. Leave it allowed.

imagent is the part of macOS that sends and receives iMessages for the Messages app. It keeps your Mac connected to Apple’s iMessage service, so messages arrive even when the Messages window is closed.

It’s part of macOS and safe. Firewalls ask about it because it talks to Apple’s servers.

Is imagent safe?

Yes. The real imagent is a small app inside a private macOS framework called IMCore, on the read-only system volume, and it’s signed by Apple. It runs with your user name, not as root, because it handles your own messages. macOS starts it at login through a launch agent, com.apple.imagent, in /System/Library/LaunchAgents.

It works alongside two other Apple services: identityservicesd, which checks who can receive iMessages and FaceTime calls, and apsd, which delivers Apple’s push notifications.

Why imagent uses CPU or memory

imagent is usually quiet. It does more work:

  • after you sign in to Messages, or set up a new Mac, when your conversations download
  • when you turn on Messages in iCloud, which syncs your whole message history
  • with a very long history, especially one with many photos and videos
  • when a busy group chat is active, with lots of messages and reactions arriving at once

Photos and files in Messages are uploaded and downloaded by a separate helper, IMTransferAgent, so a big attachment shows up there rather than in imagent.

Should you block or quit imagent?

Leave it allowed. If you block it in a firewall, Messages can’t send or receive iMessages.

Quitting it in Activity Monitor does no harm, but macOS starts it again straight away. If you don’t use Messages on your Mac, sign out instead:

  1. Open Messages and choose Messages > Settings.
  2. Click iMessage.
  3. Click Sign Out.

How to check the imagent on your Mac is the real one

Run this in Terminal:

Terminal
ps -ax -o user,comm | grep imagent

The real one runs with your user name and has this path:

Terminal
/System/Library/PrivateFrameworks/IMCore.framework/imagent.app/Contents/MacOS/imagent

To see who signed it:

Terminal
codesign -dv /System/Library/PrivateFrameworks/IMCore.framework/imagent.app/Contents/MacOS/imagent

Look for Identifier=com.apple.imagent and Platform identifier, which only Apple’s own programs have.

When to worry

  • A program called imagent anywhere else, such as your home folder, /Users/Shared or /tmp. Check it with a malware scanner.
  • imagent running as root. The real one runs as you.
  • An app you don’t trust with Full Disk Access. Your messages are stored in the Messages folder inside your user Library, and macOS only lets apps with Full Disk Access read it. Check the list in System Settings > Privacy & Security > Full Disk Access.

Frequently asked questions

What is imagent on my Mac?

It’s the macOS service that connects the Messages app to iMessage. It sends and receives your messages in the background.

Why is imagent using so much CPU?

It’s usually syncing messages, for example after you sign in or turn on Messages in iCloud. It settles once the history has downloaded.

Should I allow imagent in my firewall?

Yes. It’s Apple’s iMessage service. Blocking it stops Messages sending and receiving iMessages.

Is imagent a virus?

No. It’s part of macOS. A program with the same name outside the IMCore framework folder isn’t the real one.

Sources

  1. Apple, Set up Messages on Mac.
  2. Apple, View information about Mac processes in Activity Monitor.
  3. Paths, user, launch agent and signature checked on macOS 26.0.1 (25A362), 13 November 2026.

How we checked. Paths, commands and behaviour were checked on macOS 26.0.1 (25A362), MacBook Pro (16-inch, 2021), 13 November 2026. They can differ on other versions of macOS.