Installing a macOS Agent

This document provides instructions on how to set up and install a Linux-based Agent


Supported macOS Versions

Currently, the macOS Agent only officially supports macOS 12.x (Monterey), macOS 13.x (Ventura) and macOS 14.x (Sonoma). Although most of the data collection is generic to the macOS versions, thus far testing has only been completed on macOS 12.x (Monterey), macOS 13.x (Ventura) and macOS 14.x (Sonoma).


Mass Deployment

If you are looking to leverage mass deployment options, you can reference our documentation here

In this article

Record a Liongard Access Key ID and Secret


Access Tokens

Liongard Access Key Tokens and Secrets can be reused when installing Agents, or you can generate a new Access Key Token and Secret every time.

If you do decide to reuse the Access Key and Secret, it should be secured as you would any other sensitive password.

Our Access Tokens are used only to register an Agent. It is not something that the Agent stores, so if a token gets deleted, nothing will happen to Agents that were installed using that token.


Agent Install Token: Required Permissions

To create an "Agent install token," a user must have one of the following permissions:

  • Global Admin
  • Global Environment Manager
  • Global System Integrators
  • Environment Administrators

Permissions Breakdown:

  1. Global Roles (Global Admin, Global Environment Manager, Global System Integrators):
    Can install agents.
    Can view and associate all agents.
  2. Environment Administrators:
    Can install agents.
    Can map installed agents to their assigned environments.
    Cannot view agents from other environments.
    Cannot view unassigned agents not installed by them.
  1. In Liongard, navigate to Your Name > Account Settings > Access Tokens
  • If you have an existing Access Token, you may use it to deploy the Agent.
  • If you need to generate a new token, select Generate New Token then select Agent Install Token.
  • Note: Users must be a member of the Global Admin, Global Environment Manager, or Global System Integrators groups to see the Agent Install Token option.
  1. Record a Liongard Access Key ID and Secret as you will need them in the next steps.

Download the Installer

  1. Navigate to Admin > Agents > Hover over "Download Agent Installer" > Select macOS
  2. Copy the installer link or download the installer

Install the Agent

  1. Open the package > Select Continue
  1. Select Continue > Select Agree
  1. Complete the following fields:
  • Your Liongard URL (e.g., ""): Enter the core of your Liongard URL. Do NOT include "https://". Must also be in lowercase letters.
  • Liongard Access Key ID and Secret: Enter the Access Key ID and Secret generated in Liongard from Step 1 above.
  1. Review the following field:
  • Agent Name: Liongard will populate this field using the hostname of the device the Agent is being installed on. If the Agent name already exists, Liongard will auto-concatenate a numerical value (in parenthesis) to the new Agent name


Naming Your Agent

At the moment, the Agent name cannot accept =, <, >, (, ), {, }, [, ] characters. Please avoid using them in the Agent name.

  1. If desired, complete the following fields:
  • Liongard Environment: This field is optional, but if skipped the Environment must be assigned in Liongard on the Admin > Agents screen. For more information review our Agent Management documentation.
  1. Select Continue
  2. Select the Disk to install the Agent onto then select Continue
  1. Select Install
  1. If the installation was successful you should see the notification in the top right hand of your screen

The Agent is now successfully installed. Return to Liongard and follow our Agent Management documentation for next steps:

Uninstalling the Mac Agent

The macOS agent can be removed from a system by running the command below:

sudo sh /Library/liongard/

Alternatively, you can find the uninstall script in the liongard agent's directory at the following location:

  • /Library/liongard/


Checking Liongard Agent Logs

To assist support with troubleshooting Agent issues the following log files may be required to send to support for further analysis:

  • /Library/liongard/logs/debug.log
  • /Library/liongard/logs/error.log
  • /Library/liongard/logs/heartbeat.log
  • /Library/liongard/logs/updater.log

Checking Installation Logs

If you encounter issues with installing the macOS agent you can find installation logs at the following location:

  • /tmp/liongard-agent-installer.log

Or running the command in your terminal:

cat /tmp/liongard-agent-installer.log

Checking if the Agent is Installed and Running

If you would like to see if the agent is installed and running you can use the command below:

[ -f "/Library/LaunchDaemons/com.liongard.liongard-agent.plist" ] && launchctl print system/com.liongard.liongard-agent > /dev/null 2>&1 && echo "Liongard Installed and Running" || echo "Liongard Not Installed"

Inspector Auto-Discovery

In order for Liongard to perform auto-discovery and auto-activation processes, an Environment must be assigned to an Agent. Liongard will determine the Inspectors discovered based on the operating system of the Agent.

Keep in mind that macOS Inspectors are Endpoint Inspectors. Endpoint Inspectors are billed per unit according to your agreement with Liongard. Usage beyond the contracted amount will be charged on your monthly invoices.

If you would like Endpoint Inspectors to auto-activate after auto-discovery, navigate to your Username > Company Settings and turn on the Endpoint Auto-Activation toggle as shown. After this toggle has been enabled, individual Environments can be excluded from the Endpoint auto-activation process by adding them to the list below the toggle. Enabling auto-activation means that Endpoint Inspectors will be automatically Auto-discovered, activated, and billed accordingly.

Please keep in mind that Endpoint Inspectors are billed per unit, and usage beyond your minimum commitment (also found on the Company Settings screen) will incur additional costs.