Menu Rolling out with MDM

Guides

Rolling out with MDM

Jamf, Intune and other MDM tools: one enrollment key for many machines, and organization-wide default or enforced settings.

An organization can put indra on many machines at once, join them all to its hub, and give them the same settings, with the device management it already uses: Jamf Pro, Microsoft Intune, Kandji, Workspace ONE, or any tool that can run a script or place a file.

There are two parts. Use either or both:

Join many machines with an enrollment key

  1. In the hub's console, go to Machines > Add many machines.
  2. Give the key a label (for example "engineering laptops"), choose how long it is valid (7 days to a year) and, if you like, how many machines may use it. Click Make a key.
  3. Copy the key, or one of the ready-made scripts below it, right away. indra keeps only a fingerprint of the key and cannot show it again.

Each script installs indra for the signed-in user, joins the hub with the key, and keeps the link running in the background (it starts again at sign-in). The machine is named after its computer name, and agents may work in the user's home folder (change that later on the Machines page).

The keys are listed on the same panel: how many machines used each one, which machines, and when it expires. Revoke stops a key from adding more machines; machines that already joined stay.

Running a script again on a machine that already joined does nothing (it says so, and makes sure the link runs), so a policy that re-runs is safe.

Jamf Pro (macOS)

Settings > Scripts > New, paste the Jamf (macOS) script from the console, then add it to a policy (for example: Recurring check-in, Once per computer). Jamf runs scripts as root; the script installs and joins as the user who is signed in:

#!/bin/sh
user=$(stat -f%Su /dev/console)
{ [ -z "$user" ] || [ "$user" = root ]; } && exit 0
launchctl asuser "$(id -u "$user")" sudo -u "$user" -H sh -c "cd ~ && curl -fsSL https://raw.githubusercontent.com/dmdhrumilmistry/indra/main/install.sh | INDRA_JOIN='https://hub.example.com:7878 IEK-...' sh"

Microsoft Intune (Windows)

Devices > Scripts and remediations > Platform scripts > Add > Windows 10 and later, upload the Intune (Windows) script from the console, and set Run this script using the logged on credentials: Yes and Run script in 64 bit PowerShell Host: Yes:

Set-Location $HOME
$env:INDRA_JOIN = "https://hub.example.com:7878 IEK-..."
irm https://raw.githubusercontent.com/dmdhrumilmistry/indra/main/install.ps1 | iex

Linux and other tools

Run this as the user who will run agents (Ansible become_user, a login script, ...):

cd ~ && curl -fsSL https://raw.githubusercontent.com/dmdhrumilmistry/indra/main/install.sh | INDRA_JOIN='https://hub.example.com:7878 IEK-...' sh

Organization settings

indra reads two optional files from a folder only administrators can write, besides each user's own indra.toml:

OSFolder
macOS/Library/Application Support/indra
Linux/etc/indra
WindowsC:\ProgramData\indra

Both are ordinary indra.toml files: any section works. How they combine:

Example: the same agents and limits everywhere

managed.toml:

# Every machine routes runs the same way and runs at most two agents at once.
[local]
max_parallel = 2

[routing]
strategy = "most_remaining"

# A profile people cannot change: reviews always run on this model, read-only.
[[profile]]
name = "reviewer"
runner = "claude"
model = "opus"
permission_mode = "plan"

# Join this hub with `indra join` and no arguments.
[join]
hub = "https://hub.example.com:7878"
key = "IEK-..."

defaults.toml:

# A local model server to start from; users may point at their own.
[[profile]]
name = "local"
runner = "claude"
provider = "ollama"
ollama_url = "http://gpu.example.com:11434"
model = "qwen3-coder"

Deploying the files

Keep the folder and files writable only by administrators, so users cannot change enforced settings. INDRA_SYSTEM_DIR points indra at another folder (for testing a layout first).

Is it safe?