Veraha Agent with Kandji
You will add the signed package as a Custom App and write enrol.json with a
pre-install script. Kandji's $EMAIL variable works in profiles, so a small
profile passes each person's email to the script.
Before you start
- In Veraha, go to Settings → Devices → Enrolment keys. Create a key, for example "Kandji rollout", with an expiry date. Copy it. It is shown once.
- Download both packages from
https://app.veraha.ai/downloads/agent/:Veraha-Agent-<version>-arm64.pkgandVeraha-Agent-<version>-x64.pkg. They are signed with a Developer ID Installer certificate and notarised.
1. Pass the email (optional)
- In Kandji open Library → Add new → Custom Profile.
- Upload a
.mobileconfigwith a payload for the preference domainai.veraha.agentand one key,email, with the value$EMAIL. - Assign it to the same Blueprints.
Kandji replaces $EMAIL with the email of the user assigned to the device.
Without this step, computers show Needs an owner in Veraha until an admin
assigns them.
2. Add the Custom App
- Open Library → Add new → Custom App.
- Name it "Veraha Agent". Installation type: Installer package.
- Upload the
arm64package. Add a second Custom App forx64, or use Assignment Rules on the processor type. - Install: Install once per device.
- Turn on Pre-install script and paste this, with your key:
#!/bin/bash
KEY="vek_REPLACE_WITH_YOUR_KEY"
EMAIL="$(/usr/bin/defaults read "/Library/Managed Preferences/ai.veraha.agent" email 2>/dev/null)"
case "$EMAIL" in *@*) ;; *) EMAIL="" ;; esac
DIR="/Library/Application Support/Veraha"
/bin/mkdir -p "$DIR"
/bin/chmod 755 "$DIR"
if [ -n "$EMAIL" ]; then
printf '{"enrolmentKey":"%s","email":"%s"}\n' "$KEY" "$EMAIL" > "$DIR/enrol.json"
else
printf '{"enrolmentKey":"%s"}\n' "$KEY" > "$DIR/enrol.json"
fi
/bin/chmod 644 "$DIR/enrol.json"
- Assign the Custom App to your Blueprints.
The package installs the app and a launch agent that starts it at every
login. The agent reads enrol.json and connects itself.
The Veraha Agent runs next to the Kandji agent. Kandji EDR is not on the agent's list of known EDR products yet; Macs still pass the malware check when the built-in XProtect is present and Gatekeeper is on.
Privacy
The agent reads security settings only. It never reads files, browsing history or messages. The full list is at https://veraha.ai/agent/data.
Check it worked
In Veraha open Devices. Each Mac shows up within a few minutes.
Updates
Upload the new package to the Custom App. The .pkg install is owned by root,
so it does not update itself.
Uninstall
Add a Custom Script library item with the contents of
uninstall-macos.sh from the downloads folder. Set it to run once. It
removes the app, the launch agent, login items,
/Library/Application Support/Veraha and each user's agent data and keys.
Then remove the Custom App from the Blueprint and delete the Macs in Veraha,
or mark them out of scope.