Skip to content

Veraha Agent with Jamf Pro

You will upload the signed package, add a script that writes enrol.json, and scope both to your Macs in one policy.

Before you start

  • In Veraha, go to Settings → Devices → Enrolment keys. Create a key, for example "Jamf 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.pkg and Veraha-Agent-<version>-x64.pkg. They are signed with a Developer ID Installer certificate and notarised.

1. Upload the packages

  1. In Jamf Pro open Settings → Computer management → Packages.
  2. Click New and upload each .pkg.
  3. Name them clearly, for example "Veraha Agent 2.0.0 (Apple silicon)".

2. Send each Mac its user's email (optional)

Jamf fills in $EMAIL in configuration profiles, not in script parameters. So pass the email through a small profile, and let the script read it.

  1. Open Computers → Configuration Profiles → New.
  2. Add Application & Custom Settings → Upload.
  3. Preference domain: ai.veraha.agent. Property list:
<dict>
  <key>email</key>
  <string>$EMAIL</string>
</dict>
  1. Scope it to the same Macs. Jamf replaces $EMAIL with the email in each computer's User and Location record.

Skip this step if you prefer. The Macs then show Needs an owner in Veraha until an admin assigns them, unless you use parameter 5 below.

3. Add the enrolment script

  1. Open Settings → Computer management → Scripts and click New.
  2. Name it "Veraha Agent: write enrol.json".
  3. Paste this script.
#!/bin/bash
# Parameter 4: Veraha enrolment key (vek_...)
# Parameter 5 (optional): email domain, e.g. acme.com, used as <username>@<domain>
#                         when the profile from step 2 is not installed.
KEY="$4"
EMAIL="$(/usr/bin/defaults read "/Library/Managed Preferences/ai.veraha.agent" email 2>/dev/null)"
case "$EMAIL" in *@*) ;; *) EMAIL="" ;; esac
if [ -z "$EMAIL" ] && [ -n "$5" ] && [ -n "$3" ]; then EMAIL="$3@$5"; fi

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"
  1. Under Options, label parameter 4 "Enrolment key" and parameter 5 "Email domain (optional)".

4. Create the policy

  1. Open Computers → Policies → New.
  2. Scripts: add the script. Priority Before. Parameter 4: your key.
  3. Packages: add the right package. Use two policies, or a smart group per chip, so Apple silicon Macs get arm64 and Intel Macs get x64.
  4. Trigger: Recurring check-in. Frequency: Once per computer.
  5. Scope: the Macs you want to monitor.

The package installs the app, a launch agent that starts it at every login, and starts it for the person signed in. The agent reads enrol.json and connects itself. Writing the file before the package means the very first start connects.

5. Allow notifications (optional)

The agent shows a notification after it connects. To allow it, add a Notifications payload in a configuration profile for bundle ID ai.veraha.agent. Nothing else needs approving: the agent needs no full disk access, no screen recording and no admin rights.

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, with the person from the email as owner. Macs without a match show Needs an owner.

Updates

Upload the new package and update the policy (or use Jamf App Installers with your own package). The .pkg install is owned by root, so it does not update itself.

Uninstall

Add uninstall-macos.sh from the downloads folder as a Jamf script and run it in a policy. It removes the app, the launch agent, login items, /Library/Application Support/Veraha and each user's agent data and keys. Then delete the Macs in Veraha, or mark them out of scope.