/usr/local/MacGPG2/libexec/shutdown-gpg-agent
A LaunchAgent installed by GPG Suite to run /usr/local/MacGPG2/libexec/shutdown-gpg-agent and stop the GPG agent during logout or shutdown.
What is /usr/local/MacGPG2/libexec/shutdown-gpg-agent?
This startup item is a macOS LaunchAgent used by GPG Suite and its MacGPG2 components. It runs the script /usr/local/MacGPG2/libexec/shutdown-gpg-agent, which is tied to the GPG agent that handles OpenPGP key operations, passphrase prompting, and related encryption workflows on a Mac. Users typically encounter it after installing GPG Suite for email encryption, file signing, key management, or command-line GnuPG tools. The item works in the background rather than providing a normal app interface, and its role is to support a cleaner session end by shutting down the agent process when you log out or shut down. It is mainly relevant to people who use GPG keys, signed email, encrypted files, smart cards, or SSH setups integrated with GnuPG.
Review Mac startup items with diCleaner
Check login items, background entries, commands, and related files before disabling startup behavior.
Safety overview
Status: Mostly safe
This LaunchAgent is associated with GPG Suite / MacGPG2 and its background GnuPG components, so background execution is consistent with its purpose. It interacts with encryption-related agent processes rather than broad user data collection. Review it more carefully if you do not use GPG tools, if GPG Suite was not intentionally installed, or if the script path /usr/local/MacGPG2/libexec/shutdown-gpg-agent no longer exists while the LaunchAgent remains loaded. A leftover or broken agent can cause logout, shutdown, or key-handling issues rather than providing useful functionality.
Recommendation: Keep this item if you use GPG Suite, GnuPG, encrypted email, signing, or smart-card workflows on your Mac. If you no longer use those tools, disable it together with the rest of the GPG Suite components so you do not leave an orphaned background item behind. If logout or shutdown behavior is acting strangely, check whether the referenced script and related GPG components are still installed and up to date before removing anything.
File path
/Library/LaunchAgents/org.gpgtools.macgpg2.shutdown-gpg-agent.plist
Share your experience
Be the first to share your experience.