---
title: "Enroll devices"
version: "v0.29.0"
canonical: "https://docs.obot.ai/device-management/enroll"
unreleased: false
---

# Enroll devices

<a id="obot-doc-configuration"></a>

## Configuration

The Configuration view sets up [Obot Sentry](https://github.com/obot-platform/obot-sentry), a lightweight agent that enrolls workstations with Obot and enables device scanning, local agent audit logs, and optional tool call enforcement on enrolled devices.

On first visit, select **Get Started** to create the device configuration, then follow the numbered install guide:

1. **Generate an enrollment key.** New devices enroll with your Obot server using this key. The credential is revealed once, when the key is created.
2. **Select your installation method.** How Obot Sentry is delivered to your devices.
3. **Select an operating system.** The operating system your devices run.
4. **Download the install artifacts.** A ZIP package for the selected installation method and operating system.
5. **Follow the install instructions.** The steps match your selections and show where to put the enrollment key.

Once Obot Sentry is installed and enrolled, devices begin reporting to Obot and appear in the other Device Management views.

<a id="obot-doc-installation-methods"></a>

### Installation methods

Installation methods and operating systems vary by Obot Sentry release. The current release supports:

| Installation method | Operating system | What the download contains                                                                                                                                                                                          |
| ------------------- | ---------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Do it Yourself      | Windows          | An MSI that sets up automatic scanning and hook maintenance, and handles upgrades and uninstalls. The download also includes a standalone `obot-sentry.exe` for running one-off scans or installing hooks manually. |
| Do it Yourself      | macOS            | A `.pkg` installer that sets up automatic scanning and hook maintenance. The download also includes an uninstall script and a standalone `obot-sentry` binary for running scans and installing hooks manually.      |
| Microsoft Intune    | Windows          | An `.intunewin` package to deploy as a Windows app (Win32) from the Intune admin center. Assigned device groups install Obot Sentry on their next check-in, then scan and maintain hooks automatically.             |
| Microsoft Intune    | macOS            | A `.pkg` installer, a configuration profile with your settings, a privacy preferences profile that gives Obot Sentry full disk access, and an uninstall script. You deploy them from the Intune admin center.       |
| Jamf Pro            | macOS            | A `.pkg` installer, a configuration profile with your settings, a privacy preferences profile that gives Obot Sentry full disk access, and an uninstall script. You deploy them from Jamf Pro.                      |

Each download's install instructions cover installing, configuring the enrollment key, and uninstalling for that method and operating system.

<a id="obot-doc-enrollment-keys"></a>

### Enrollment keys

- Keys can be named and given an expiration date. The default expiration is one year.
- Revoking a key stops new devices from enrolling with it. Already-enrolled devices are unaffected.
- New devices cannot enroll until at least one key exists.
- New devices cannot enroll once your license's device limit is reached. Remove devices you no longer use from the [Devices](https://docs.obot.ai/v0.29.0/device-management/inventory.md#obot-doc-devices-1) view to free their seats.

<a id="obot-doc-settings-and-updates"></a>

### Settings and updates

Open the agent settings (the gear icon) to review or change how Obot Sentry behaves on your devices.

The available settings also vary by Obot Sentry release. The current release has:

| Setting                       | Description                                                                                                                                                                                                                  | Default |
| ----------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------- |
| Scan interval (minutes)       | How often each signed-in user's device submits a scan. Accepts 15 to 1440 minutes.                                                                                                                                           | 60      |
| Hook check interval (minutes) | How often each device checks its hooks and restores any that are missing or modified. Accepts 5 to 1440 minutes. See [Hook maintenance](https://docs.obot.ai/v0.29.0/device-management/enroll.md#obot-doc-hook-maintenance). | 15      |

Use **Check for updates** to pick up new Obot Sentry releases. If an Update available badge appears, save the agent settings to rebuild your downloads with the new release.

Obot builds these settings, and the **Enforce tool calls on enrolled devices** setting, into the install package. To change them on devices that already have Obot Sentry, change them in Obot and download the updated package. Then deliver the new values as the package's `INSTRUCTIONS.md` describes:

- With Intune or Jamf Pro on macOS, upload the updated configuration profile.
- With Do it Yourself on macOS, rerun the `defaults write` commands from `INSTRUCTIONS.md`.
- On Windows, set the registry values listed in `INSTRUCTIONS.md`, through your MDM or by hand.

An MSI install or upgrade rewrites the scan interval and the device enforcement setting from its install command, and the hook check interval when the command includes it. Update the command you use for upgrades whenever you change these settings. A command without `ENFORCEMENT=1` turns enforcement off on the device.

On a device with only the standalone binary, rerun `obot-sentry hook-install` as root or Administrator after you change the values.

<a id="obot-doc-hook-maintenance"></a>

### Hook maintenance

The MSI, `.intunewin`, and `.pkg` installers register a scheduled job that runs as SYSTEM on Windows and as root on macOS. The job runs at startup and every 5 minutes. On Windows, it also runs 1 minute after each sign-in. Each run checks the hooks if a check is due and exits otherwise. The standalone binaries register no job, so nothing checks hooks installed with them.

A check is due when the hook check interval has passed since the last check. A check is also due on the next run after any of these events:

- The device restarted.
- A user profile was added or removed.
- The device enforcement setting changed. See [Configure enforcement](https://docs.obot.ai/v0.29.0/device-management/enforcement.md#obot-doc-configure-enforcement).
- Obot Sentry was upgraded.
- The last check failed.

A check restores missing or modified Obot Sentry hooks, and the Claude Code [plugin settings](https://docs.obot.ai/v0.29.0/device-management/enforcement.md#obot-doc-claude-code-plugin-settings) when enforcement is on. It covers the machine-wide client configuration files and the client configuration files of every user profile on the device, including users who aren't signed in. On macOS, it skips an account that doesn't own its home folder. It leaves hooks that users or other tools added in place.

Obot Sentry refuses to change a user's client configuration file that is larger than 4 MiB, isn't a regular file, or has extra hard links. On macOS, it also refuses a file the user doesn't own. Obot Sentry then can't install that user's hooks, and it records a failure in `hook-install.log` on every run until someone fixes the file.

Each check records the hooks it changed and any failures in `hook-install.log`, and keeps its schedule in `schedule.json`. The log rotates at 10 MiB and keeps one older copy. Both files are in `/Library/Application Support/obot/obot-sentry-hook-install` on macOS and `C:\Program Files\Obot\obot-sentry\hook-install` on Windows. Only administrators can write to that folder.
