Prerequisites
- Kandji admin access
- Enrollment key from Runlayer
- At least one Blueprint configured with enrolled devices
Creating an Enrollment Key
Creating an Enrollment Key
Enrollment keys allow devices to automatically register with Runlayer and obtain API credentials.

Navigate to Enrollment Keys
Go to Settings in the Runlayer dashboard and select the Enrollment Keys tab
Configure the Key
- Name (required): Enter a descriptive name (e.g., “Production MDM”)
- Description (optional): Add context about the key’s purpose
Deployment Steps
Generate the Script
Fill in your settings below to generate a deployment script.Kandji-specific configuration tips:
ENROLLMENT_USERNAME: Use a Kandji variable for the user’s identity if available. Leave empty to use the device username.ENROLLMENT_DEVICE_NAME: Use a Kandji variable for the device name. Leave empty to use the computer name.
Add a Custom Script Library Item
- Navigate to the Library section in Kandji
- Click Add New → Custom Script → Add & Configure
- Provide a Name (e.g., “Runlayer Config Sync”)
- Assign to your target Blueprint(s)
- Set Execution Frequency to Run daily (recommended) or Run every 15 minutes for more frequent syncs
- Paste the generated script into the Audit Script field
- Click Save
Verification
Open a client application (e.g., Cursor) on a target device and confirm the synced MCP servers appear. Check the Custom Script’s Status tab in Kandji for execution results. If something went wrong, check/var/log/runlayer-sync.log on the device.
You can force an immediate check-in on a test Mac by running sudo kandji checkin in Terminal.
