website/docs/endpoint-devices/authentik-agent/agent-deployment/macos.md
You must configure your authentik deployment to support the authentik Agent.
If you already have an enrollment token, skip to the next section.
:::info Automated deployment is recommended It's recommended to deploy the Agent via MDM or automation tools instead of manually configuring it. :::
:::info Serial number required The Agent requires a serial number be presented by macOS. Some hypervisors don't set serial numbers. When deploying on a virtual machine, ensure that it has a serial number set. :::
Log in to authentik as an administrator and open the authentik Admin interface.
Navigate to Endpoint Devices > Connectors.
Click on the authentik Agent connector that you created when configuring your authentik deployment to support the authentik agent.
Under Setup, click macOS to download the authentik Agent installer.
Once the download is complete, attempt to install the package. Default Apple security settings should block the install.
xattr -r -d com.apple.quarantine "$HOME/Downloads/authentik agent installer.pkg"Confirm that the authentik Agent is installed by opening a Terminal window and entering the following command: ak
You should see a response that starts with: authentik CLI v<version_number>
To enable device compliance features, you must join the device to an authentik domain.
sudo "/Applications/authentik Agent.app/Contents/MacOS/ak-sysd" domains join <deployment_name> --authentik-url https://authentik.company
deployment_name is the name that will be used to identify the authentik deployment on the device.https://authentik.company is the fully qualified domain name of the authentik deployment.To enable initiating SSH connections and CLI application authentication, the device must be connected to an authentik deployment. To do so, follow these steps:
ak config setup --authentik-url https://authentik.company
You can check the version of all installed authentik components by running the following command:
ak version
The authentik Agent uses macOS's native logging abilities. To retrieve the logs, open the Console application and then filter for authentik-related processes such as authentik-agent or authentik-sysd.
Please report issues and bugs via the authentik Platform GitHub repository.