> ## Documentation Index
> Fetch the complete documentation index at: https://docs.runlayer.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Deploy AI Watch

> Deploy AI Watch once, then configure Monitor, Protect, Enforce, and Sessions

AI Watch ships as one signed package per operating system. Deploy it once, then manage its behavior from Runlayer or package configuration.

macOS and Windows are supported equally: both packages provide the same Monitor, Protect, Enforce, and Sessions behavior. Their installers receive only bootstrap credentials; behavior arrives through the same Runlayer settings sync. See [platform support](#package-and-platform-support) for supported architectures and Linux.

## Features

Project and client-config detection is always enabled after AI Watch is installed. Before the first successful settings sync, the endpoint starts in Monitor with Sessions and optional runtime discovery disabled, so no hooks are installed. One organization API key authenticates AI Watch scans, hooks, session events, and managed updates; no enrollment keys are required.

| Capability | Configuration | What it does |
| - | - | - |
| **Detect** | Always on | Discovers AI clients, shadow MCP servers, skills, and plugins from project and client configuration files |
| **Running processes** | `DetectProcesses` / `AIWATCH_DETECT_PROCESSES` | Discovers AI tooling and configured MCP servers from running processes and listening sockets |
| **Containers and WSL** | `DetectContainers` / `AIWATCH_DETECT_CONTAINERS` | Performs read-only MCP config, skill, and agent-definition discovery inside running Docker, Podman, or nerdctl containers through a Docker-CLI-compatible CLI or local Engine API socket; on Linux, also scans k3s through root-only `k3s crictl`; on Windows, also scans bounded WSL home project trees |
| **Monitor** | `Mode=monitor` / `AIWATCH_MODE=monitor` | Reports endpoint hook activity without applying scanner or governance decisions |
| **Protect** | `Mode=protect` / `AIWATCH_MODE=protect` | Applies scanner-configured Block and Mask decisions plus fail-open, allow-unless-denied MCP source governance; explicit denylist matches are blocked |
| **Enforce** | `Mode=enforce` / `AIWATCH_MODE=enforce` | Applies scanner and local policy decisions to non-MCP tools plus fail-closed, deny-by-default MCP source governance; managed MCP calls scan at the gateway |
| **Sessions** | `Sessions` / `AIWATCH_SESSIONS` | Installs the full event hook set for [Sessions](https://docs.runlayer.com/platform-sessions.md) telemetry |
| **Track MCP tool usage without content** | `MCPUsageMetadata` (Monitor mode, Sessions off) | Installs one lightweight MCP pre-call hook per supported client that reports only the client, tool name, MCP server name, and device/user identity — never request arguments, responses, session content, or transcripts |

* **Running-process and container discovery** are disabled until the synced settings enable them.
* **Monitor** is the default mode.
* **Sessions and hooks fail closed before settings sync.** A successful settings sync or an explicit legacy MDM `Sessions=true` / Protect / Enforce setting enables them.
* **Sessions coverage follows the client surface.** Installing the full hook set does not make a client emit events it does not support. Cursor's classic IDE and Agents Window load the endpoint hook config, while Cursor CLI emits a subset. Cursor Cloud Agents require the separate [repository/team hook collector](https://docs.runlayer.com/shadow-ai/cursor-cloud-agents.md); it is monitor-only and does not inherit endpoint configuration.

Hooks are installed whenever Mode is Protect/Enforce, Sessions is enabled, or **Track MCP tool usage without content** is enabled; otherwise AI Watch removes stale Runlayer hooks while preserving third-party hooks.

> [!NOTE]
>
> **Legacy fleets only:** on AI Watch builds that predate settings sync, push the native keys manually and pair them — Monitor with `Enforcement=false`, Protect and Enforce with `Enforcement=true`. A valid `Mode` value overrides the legacy `Enforcement` boolean.

On macOS and Windows, admins can change Mode, Sessions, process/container discovery, project depth, and project timeout from **Settings → AI Watch → Manage settings**. Devices fetch the complete settings snapshot during the privileged hook reconcile, which runs every 15 minutes, without an MDM policy update. The same settings page can install or remove the managed Chrome, Edge, and Firefox extensions and configure their mode and Sessions behavior without an MDM policy update. See [Browser extension](https://docs.runlayer.com/shadow-ai/browser-extension.md) for the AI Watch version each browser and platform requires. The tenant host, organization API key, and CPU/memory limits remain MDM-owned.

**Advanced scan tuning (optional).** Detect scans walk each user's home directory to a bounded depth within a per-scan time budget, and keep CPU and memory use within configurable caps. The defaults fit most fleets — override them only if scans miss deeply-nested project configs (raise depth), run out of time on very large home directories (raise timeout), or you want a smaller footprint on constrained hosts (lower the CPU / memory caps).

| Setting | Configuration | Default | Range |
| - | - | - | - |
| **Project depth** | `ProjectDepth` | `7` | `1`–`20` |
| **Project timeout** | `ProjectTimeout` | `60`s | `1`–`300`s |
| **CPU cores** | `CpuCores` / `AIWATCH_CPU_CORES` | half the logical cores | `1`–logical cores |
| **Max CPU percent** | `MaxCpuPercent` / `AIWATCH_MAX_CPU_PERCENT` | `50` | `5`–`100` |
| **Memory limit (MB)** | `MemoryLimitMb` / `AIWATCH_MEMORY_LIMIT_MB` | `1024` | `512`–`8192` |

All are integers. Project depth and timeout are delivered by the Runlayer settings sync on macOS and Windows; native MDM values remain a legacy fallback. CPU and memory caps remain MDM-owned (`<integer>` on macOS, matching `AIWATCH_*` MSI properties on Windows). Omit them to keep the defaults. Values outside the range are clamped; non-integer or non-positive values are ignored. The CPU / memory caps are best-effort: the scan is throttled to stay within the configured CPU budget and aborts if it exceeds the memory ceiling.

## Package and platform support

> [accordion] Is the package custom-built per organization?
>
> No. The signed `.pkg` / `.msi` is the same artifact for every customer — nothing tenant-specific is compiled into it. Your tenant host and organization API key are supplied separately through MDM configuration (the macOS Configuration Profile, or the Windows MSI properties / registry), not baked into the binary. That means the package can be verified once (signature, notarization) and reused unchanged across all of your configurations.

> [accordion] Is Python, the Runlayer CLI, or any other runtime a prerequisite?
>
> No. The package is fully self-contained: it installs a single `aiwatch` binary with everything it needs bundled. No separate runtime or CLI install is required. Use the package-based [Test Device guide](https://docs.runlayer.com/shadow-ai/deploy/test-device.md) for one device without MDM; the `uv tool install runlayer` path documented on [Detect](https://docs.runlayer.com/shadow-ai/detect.md#manual-installation) and [Enforce](https://docs.runlayer.com/shadow-ai/enforce.md#manual-installation-single-device) remains a per-user alternative.

> [accordion] Which operating systems and architectures are supported?
>
> | Platform | Managed deployment | Notes |
> | - | - | - |
> | macOS (Apple Silicon / arm64) | Signed + notarized `.pkg` | macOS 14 (Sonoma) or newer; released artifact `aiwatch-<version>-macos-arm64.pkg` |
> | Windows (x64) | Signed `.msi` wrapped for Intune | Windows 10 1809+ / 11, 64-bit |
> | Linux (x86\_64) | `.deb` / `.rpm` / container (**Detect only**) | Ubuntu 22.04+, Debian 12+, RHEL/Rocky/Alma 9+, Amazon Linux 2023, current Fedora — see [Linux](https://docs.runlayer.com/shadow-ai/deploy/linux.md) or [Container](https://docs.runlayer.com/shadow-ai/deploy/container.md) |
> | Linux, legacy distros (x86\_64) | `glibc2.17`-tagged `.deb` / `.rpm` (**Detect only**) | RHEL/CentOS 7+, Amazon Linux 2, Ubuntu 14.04+, Debian 8+ — see [Legacy distributions](https://docs.runlayer.com/shadow-ai/deploy/linux.md#legacy-distributions-glibc-217) |
>
> macOS and Windows have feature parity — Detect, Monitor/Protect/Enforce, and Sessions are available on both through synced Runlayer settings (see [Features](#features)). Linux is **Detect only**: deploy as native `.deb` / `.rpm` packages (cron-scheduled scans) or as a container image — see [Linux (Detect only)](https://docs.runlayer.com/shadow-ai/deploy/linux.md) or [Container](https://docs.runlayer.com/shadow-ai/deploy/container.md). The signed MDM package ships for Apple Silicon Macs and 64-bit Windows. For Intel Macs or other architectures, use the cross-platform `uv tool install runlayer` CLI path, or contact your Runlayer account team. AI Watch runs on managed-device hardware; it is not installed inside the AI assistant's containers.

> [accordion] What outbound network access does AI Watch need?
>
> Outbound **HTTPS (443) to your Runlayer tenant host only** — the same hostname configured in your MDM profile (for example `runlayer.dev.company.com` or `*.runlayer.com`). Scans, hook decisions, session events, and update checks on every supported platform all use that one endpoint, and no inbound ports are opened. If your Runlayer instance is self-hosted (including air-gapped networks), AI Watch only needs to reach that internal tenant host — no public-internet egress is required. Behind a TLS-inspection proxy, exempt the tenant hostname or install the corporate root CA in the OS trust store — see [Troubleshooting](https://docs.runlayer.com/shadow-ai/troubleshooting.md).

## Package configuration

Use **Settings → MDM configuration** to create an AI Watch deployment. The wizard picks your MDM, mints a single organization API key, and puts the tenant host and key into the downloaded artifacts; behavior settings live in Runlayer and reach devices through the settings sync. Every artifact — including the signed installer, at the version selected by your Client Updates policy — downloads directly from the wizard; re-open it later via **View deployment setup** on the deployment card.

After deployment, select **Manage settings** on the deployment card to change `Mode`, `Sessions`, `DetectProcesses`, `DetectContainers`, `ProjectDepth`, or `ProjectTimeout`. macOS and Windows packages fetch these settings on their settings sync, which runs every 15 minutes. If a fetch fails or returns invalid data, AI Watch keeps the last valid snapshot; without one it uses any explicit native policy fallback. Generated macOS profiles and Windows MSI commands carry no capability values, so bootstrap-only devices remain Monitor + Sessions off. To scope different settings to a team, group, user or single device on the same deployment, use [Policy rules](https://docs.runlayer.com/shadow-ai/enforce/policy-rules.md).

The tenant host, organization API key, identity overrides, optional `GrokHome`, and CPU/memory limits remain MDM-owned. Re-deploy the profile or MSI/registry values to change them. `GrokHome` is required only when Grok CLI uses a custom directory; set it to a path within the console user's home because root/SYSTEM jobs cannot read shell-defined environment variables. On macOS and Windows devices running a supported AI Watch version, browser installation, browser mode, and browser Sessions are managed from Runlayer under **Manage settings → Browser extension**. Enabling or disabling Chrome, Edge, and Firefox does not require an MDM profile change, MSI change, or package reinstall. See [Browser extension](https://docs.runlayer.com/shadow-ai/browser-extension.md) for the version requirements, rollout steps, supported pages, and mode behavior. The managed updater installs the version selected by your Client Updates policy on its own schedule; to hold a version, pin it in Client Updates.

## Enable browser extensions on an existing deployment

1. Under **Settings → AI Watch**, confirm the target devices run AI Watch `0.29.6` or newer for Chrome and Firefox on macOS, or `0.30.13` or newer for Edge and for Windows devices. Use **Settings → Client updates** to move them to a supported version when needed.
2. Under **Configurations**, select **Manage settings** for the deployment and open the **Browser extension** tab.
3. Turn on **Install browser extension**, configure browser mode and **Collect browser session data** as needed, then select **Save changes**.
4. Under **Settings → Agent session monitoring**, enable **Full session scanning APIs** and the **Browser extension** Hook client.
5. Allow up to one hour for AI Watch to reconcile the managed Chrome, Edge, and Firefox policies (the bootstrap daemon on macOS, the `AIWatchHooks` task on Windows), then restart the browsers.

Do not edit or re-deploy the tenant's existing `com.runlayer.aiwatch.mobileconfig` or MSI install command for this change. AI Watch uses the existing tenant host and organization API key to fetch the browser setting. Users do not need to sign in to the browser. Chrome and Edge install the extension only on managed devices; see [Browser requirements](https://docs.runlayer.com/shadow-ai/browser-extension.md#browser-requirements). Follow [Verify a browser deployment](https://docs.runlayer.com/shadow-ai/browser-extension.md#verify-a-deployment) to confirm installation, enforcement, and Sessions.

## macOS artifacts

The macOS package is a signed and notarized `.pkg` plus a single MDM Configuration Profile, both downloaded from the **Settings → MDM configuration** wizard (the profile comes pre-filled):

| File | Purpose |
| - | - |
| `aiwatch-<version>-macos-arm64.pkg` | Installs the `aiwatch` binary, scan LaunchAgent, hook bootstrap, and hourly root update daemon |
| `com.runlayer.aiwatch.mobileconfig` | One profile with three payloads: bootstrap tenant config (host + organization API key), Full Disk Access / TCC grants, and macOS 13+ Login Items pre-approval |

Deploy the Configuration Profile before the `.pkg` so tenant config and TCC grants are present before the first scan tick.

If you need multiple tenant configurations (different host or key), deploy one copy of `com.runlayer.aiwatch.mobileconfig` per group. The `.pkg` is universal; the PPPC and Login Items payloads are identical across copies, only the tenant-config values differ.

Fleets deployed before the profile consolidation ran three separate profiles (`com.runlayer.aiwatch.config.mobileconfig`, `com.runlayer.aiwatch.pppc.mobileconfig`, `com.runlayer.aiwatch.loginitems.mobileconfig`). The merged profile does not supersede them automatically — remove the legacy profiles when scoping the merged one.

> [card] [Jamf Pro](https://docs.runlayer.com/shadow-ai/deploy/jamf-pro.md)
>
> Upload Configuration Profiles and the `.pkg` via Policy.

> [card] [Workspace ONE](https://docs.runlayer.com/shadow-ai/deploy/workspace-one.md)
>
> Use Custom Attributes for tenant host and organization API key.

> [card] [Iru / Kandji](https://docs.runlayer.com/shadow-ai/deploy/kandji.md)
>
> Edit the tenant profile and deploy through Blueprints.

> [card] [JumpCloud](https://docs.runlayer.com/shadow-ai/deploy/jumpcloud.md#macos)
>
> Deploy the profile as an MDM Custom Configuration Profile policy and the `.pkg` through the Private Repo.

> [card] [SimpleMDM](https://docs.runlayer.com/shadow-ai/deploy/simplemdm.md)
>
> Upload profiles and package through device groups.

> [card] [Mosyle](https://docs.runlayer.com/shadow-ai/deploy/mosyle.md)
>
> Deploy profiles and package through Mosyle device groups.

> [card] [Intune (macOS)](https://docs.runlayer.com/shadow-ai/deploy/intune-macos.md)
>
> Upload Configuration Profiles and the `.pkg` as a macOS app.

> [card] [Other macOS MDM](https://docs.runlayer.com/shadow-ai/deploy/other-mdm.md)
>
> Use any MDM with Custom App and Custom Profile support.

> [!NOTE]
>
> Migrating from the legacy script-based macOS Detect rollout? Delete the legacy MDM script and PPPC profile first, deploy the `.pkg` (`0.31.14` or newer retires the old agent on install), then follow [Legacy macOS Detect Cleanup](https://docs.runlayer.com/shadow-ai/deploy/macos-cleanup-script-deployment.md) for key revocation and user-space tidy-up.

## Windows artifacts

The Windows package is a signed MSI wrapped for Intune, downloaded from the **Settings → MDM configuration** wizard. The MSI writes tenant config to `HKLM\Software\Runlayer\AIWatch` **and** registers device-local Scheduled Tasks that run scans (all real user profiles) and assert hooks (SYSTEM) on a recurring schedule — no Intune Remediations required.

| File | Purpose |
| - | - |
| `aiwatch-<version>-win-x64.intunewin` | App package for Intune upload (installs `aiwatch.exe` + tenant registry, registers the Scheduled Tasks, and installs the `RunlayerAIWatch` service) |
| `custom-detection/detect-install.ps1` | Recommended Intune custom detection script (reports installed only when `aiwatch.exe` at the packaged version or newer and the required `AIWatchScan` and `AIWatchUpdate` tasks exist) |
| `scripts/bootstrap.ps1` | Optional manual user-context one-shot (SCCM / GPO logon script) |

> [card] [Intune](https://docs.runlayer.com/shadow-ai/deploy/intune.md)
>
> Deploy the MSI with host and organization API key — scans and hooks schedule themselves on the device, and Mode and Sessions are managed in Runlayer.

> [card] [JumpCloud](https://docs.runlayer.com/shadow-ai/deploy/jumpcloud.md#windows)
>
> Upload the signed MSI to the Private Repo and set the host and organization API key as Command Line Options.

## Linux artifacts (Detect only)

The Linux deployment bundle (`aiwatch-<version>-linux-x86_64.zip`) contains a `.deb` and an `.rpm` (both named `runlayer-aiwatch`), `SHA256SUMS`, and the config templates. The package installs the `aiwatch` binary plus a cron entry that scans all users every 15 minutes. Linux is Detect-only — the device's Protect, Enforce, and Sessions features show **Disabled** in the dashboard by design.

> [card] [Linux](https://docs.runlayer.com/shadow-ai/deploy/linux.md)
>
> Install the `.deb` / `.rpm` via configuration management and configure the two files under `/etc/runlayer/aiwatch/`.

> [card] [SaltStack](https://docs.runlayer.com/shadow-ai/deploy/salt.md)
>
> Roll out and continuously assert the Detect-only scanner from a Salt master — package from `salt://`, config from pillar.

> [card] [Container](https://docs.runlayer.com/shadow-ai/deploy/container.md)
>
> Run the scanner as a container over bind-mounted host homes — standalone `docker run` or a Kubernetes DaemonSet / CronJob.

## Manual and custom workflows

For individual test devices and custom workflows:

> [card] [Test Device](https://docs.runlayer.com/shadow-ai/deploy/test-device.md)
>
> Install AI Watch on one macOS, Windows, or Linux device without an MDM.

> [card] [Run Detect manually](https://docs.runlayer.com/shadow-ai/detect.md#manual-installation)
>
> Install the Runlayer CLI and run `runlayer scan`.

> [card] [Install Enforce manually](https://docs.runlayer.com/shadow-ai/enforce.md#manual-installation-single-device)
>
> Install client hooks with `runlayer setup hooks`.

> [card] [User and Identity Mapping](https://docs.runlayer.com/shadow-ai/identity-mapping.md)
>
> Understand how device usernames map to Runlayer users.

> [card] [Remove AI Watch](https://docs.runlayer.com/shadow-ai/deploy/remove.md)
>
> Remove package-based and legacy script-based deployments.

For custom macOS or Windows fleet integrations outside a supported MDM, use the same package configuration model: install AI Watch once, provide host and organization API key, leave Detect running, and manage `Mode`, `Sessions`, and optional process and container & WSL discovery from **Settings → AI Watch → Manage settings**.

## Related Resources

> [card] [Detect](https://docs.runlayer.com/shadow-ai/detect.md)
>
> What scans read and how discovery works

> [card] [Endpoint modes](https://docs.runlayer.com/shadow-ai/enforce.md)
>
> Monitor, Protect, and Enforce configuration

> [card] [FAQ](https://docs.runlayer.com/shadow-ai/faq.md)
>
> Pre-deployment, platform, and network questions

> [card] [Troubleshooting](https://docs.runlayer.com/shadow-ai/troubleshooting.md)
>
> Common issues and solutions


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.