Docs/Shadow Ai/Deployment

Deploying Agents & Extensions

Shadow AI collects signals from clients you deploy to your workforce's machines:

ClientPlatformsDiscovers
Browser extensionChrome, Edge, Firefox 140 or laterWeb AI tools in the Tool Registry
Desktop agentmacOS 13 or later; Windows 10 22H2 or later and Windows 11Desktop AI apps, command-line AI tools, files used in AI apps, MCP servers (macOS), AI network traffic (macOS)
Coding-agent telemetryAny OSClaude Code, GitHub Copilot CLI and OpenAI Codex CLI usage through OpenTelemetry

Safari is not supported. All clients attribute activity to the same users and devices. You can deploy any combination.

ℹ

All of the steps below live under Settings > Deployment & Keys. That page generates the download links, enrollment scripts and MDM payloads for your project, filled in with your credentials. This page explains the concepts and the rollout path.

ℹ

The clients observe and report. They also apply your access policy: released browser extensions (0.1.23 or later) show a warning banner. Blocking and asking for a reason need the next browser extension release (after 0.1.30) on Chrome, Edge and Firefox, and macOS agent 0.1.34 or later on Macs. The Windows agent does not enforce the policy.

Prerequisites

  • Access to Settings > Deployment & Keys in the project. Viewing, rotating and revoking keys requires write access to Discover AI settings, which project owners have.
  • For fleet rollout: admin access to your MDM (Jamf, Intune, Kandji), Group Policy, or browser management console.

Step 1: Choose an authentication method

The Authentication method card on Deployment & Keys offers two options:

MethodHow it works
API keysEvery device uses the project's shared key pair. Simple, but a single device cannot be revoked on its own.
Device certificates (mTLS)Each device gets its own certificate during enrollment. Any single device can be revoked.

API keys are the default. Device certificate authentication is supported and is turned on per project with this setting. When it is on, each device registers with a fleet credential from the enrollment script or MDM profile and then authenticates with its own certificate.

With Device certificates (mTLS) selected:

  • The project keys are refused for device data, including the OpenTelemetry endpoints and the ingestion API. Coding tools that send through the desktop agent's relay keep working. See Project keys in device certificate mode.
  • Require hardware-backed keys appears on the card. Turn it on to refuse new enrollments from devices that report a software key instead of a TPM or Secure Enclave. See Hardware-backed keys.
  • The fleet enrollment script carries no project keys, so update the agents before you push it. See Fleet enrollment credentials.

Project keys

With API keys, every client authenticates with a public key (pk-ap-...) and a secret key (sk-ap-...). There is one key pair per project, shared by all platforms. Manage it under Deployment & Keys > Keys & credentials:

  • Graceful rotation: issues a new pair. The old pair keeps working for 7 days so devices can re-enroll without disruption.
  • Immediate rotation: issues a new pair and revokes the old one at once. Every device gets 401 until it re-enrolls.
  • Revoke all credentials: disables every key. No data comes in until you issue new keys.
⚠

Treat the secret key like a password. Deliver it through your MDM's managed payloads, not shared documents or tickets.


Step 2: Enroll devices

The enrollment script (one for macOS, one for Windows) prepares a device so the desktop agent and browser extensions connect on their own, with no user sign-in. Download it from Deployment & Keys > Enroll devices, pre-filled for your project.

The script:

  • Records the device identity (hardware ID, serial number, hostname, OS version) and user identity (username, full name, email, and directory attributes where available) in managed settings that the agent and each browser read.
  • Writes your project credentials into the managed settings that the desktop agent and the Chrome, Edge and Firefox extensions read.
  • Applies your collector settings (see below).
  • Configures coding-agent telemetry for Claude Code, GitHub Copilot CLI and Codex CLI when it finds them.
  • Can be re-run safely. A matching unenroll script is available.
⚠

The browser extension needs the enrollment script. The extension uploads events only when the device identity has been written by the enrollment script. Without it, a self-serve install can sign in but does not send usage events.

Download the script and run it once: in Terminal on macOS, or in PowerShell as administrator on Windows. Then install the clients.

Collector settings

In the Enroll devices step you can switch off individual desktop agent collectors for the project. Examples: Time spent in AI apps, Files used in AI apps, Prompt counts, Clipboard (macOS), Network activity (macOS), Coding tool usage data, and the per-app log readers for Claude Code, Cursor, GitHub Copilot CLI, VS Code Copilot Chat, Codex CLI, Gemini CLI, the Claude desktop app and Aider. The process monitor that detects AI tools cannot be switched off.

Turn on Limit what the agent collects, select the collectors to stop and select Save. Collector settings are pushed from the console: a collector you switch off stops on each device at the desktop agent's next check-in, about every hour. There is nothing to reinstall, and you do not need to re-run the enrollment script or update the MDM profile.

AgentFollows the list at check-in
macOS agent0.1.30 or later
Windows agent0.1.21 or later

Older agents follow the list only from the enrollment script or the MDM profile, so they change only when they run a script downloaded after you save, or get the updated profile. The oldest agents ignore the setting and keep collecting.

Check the rollout. Under the collectors, a line shows where your fleet stands, refreshed every minute. For example: "12 computers have confirmed the current list, 2 got the list and will confirm at their next check-in, 1 will get it at its next check-in, 1 runs an agent too old to follow it, 3 not seen in 7 days." In Discover AI > Devices, each desktop agent's install card lists the collectors it was told to switch off, marked confirmed once the agent reports them blocked.

The enrollment script and the MDM profile also write the list into managed settings, so a newly enrolled device starts with the right collectors before its first check-in:

  • macOS: the disabledCollectors key in the ai.agenticants.agent managed preferences domain, written by the enrollment script or by the MDM profile that Deployment & Keys generates.
  • Windows: the DisabledCollectors value under HKLM\SOFTWARE\Policies\AntsAgent, written by the enrollment script.

Step 3: Install clients

Desktop agent

The desktop agent detects the desktop apps and command-line tools in the Tool Registry. It records:

  • Which AI apps and command-line tools run, and how long AI apps are in the foreground.
  • For command-line AI tools: the executable path, the command-line arguments and the working folder. Only the executable name and flag names are kept; every other argument and flag value, such as a prompt passed as an argument, is replaced by <redacted>. Agents redact before upload from macOS 0.1.30 and Windows 0.1.21, and ANTS Platform redacts command lines from older agents before storing them.
  • Prompt counts, token counts, tool-call counts and the model, read from the local session files of supported tools: Claude Code, Codex CLI, Gemini CLI, GitHub Copilot CLI, VS Code Copilot Chat, Cursor, Aider, and on macOS also Continue, the llm CLI and Zed. Prompt text is not sent.
  • Prompt counts for desktop chat apps, from the composer's send button on Windows (Claude, Microsoft Copilot, Notion) or from the length of the input text on macOS. The text itself is never read.
  • Files used in AI apps: file name, path, size and type.
  • macOS only: MCP servers configured or called in Claude Code, Claude Desktop, GitHub Copilot CLI and Gemini CLI (server name, call count, connection status), and AI network traffic (see below). The Windows agent counts MCP tool calls from the Claude desktop app's log but does not report MCP server names.
  • At each check-in, from macOS agent 0.1.33 and Windows agent 0.1.24: the chip, the installed memory, whether the device has a neural processor, and the local AI apps (such as Ollama and LM Studio) and models on the device, with a daily count of local AI requests. These appear on the AI laptops tab of Devices. They are part of the check-in and are not a collector you can switch off.

macOS: a Developer ID signed and notarized .pkg, universal for Apple Silicon and Intel. Requires macOS 13 (Ventura) or later. It installs an Endpoint Security system extension and a Network Extension.

ActionNeeds admin?
Install the .pkgYes
Day-to-day runningNo. The agent runs in the logged-in user's session; standard accounts are supported.

Self-serve install

Install

Run the enrollment script, then download AntsAgent.pkg from Deployment & Keys > Desktop agent and run the installer.

Grant permissions

Approve these in System Settings > Privacy & Security:

  • Accessibility
  • Full Disk Access
  • Endpoint Security system extension
  • Network Extension

What each permission is for, and what happens without it:

PermissionUsed forIf not granted
AccessibilitySeeing which AI app is in focus and spotting prompts in desktop AI apps.Required. Setup does not finish and the menu bar shows "Grant Accessibility".
Full Disk AccessReading session files of AI coding tools such as Cursor, Claude Code and Codex.Required. Setup does not finish.
Endpoint SecuritySeeing AI tools the moment they start.Required. Setup does not finish. If it is turned off later, detection falls back to a check every 5 seconds, which can miss very short runs.
Network ExtensionSeeing which AI hosts are contacted, counting prompts from command-line tools and, from macOS agent 0.1.34, enforcing the access policy.The agent still runs. Prompt counts from command-line tools are not recorded, and the access policy is not enforced on the Mac.

The agent does not use Input Monitoring and never asks for it. The Endpoint Security extension only watches process starts. It cannot block or change anything. The agent opens no listening port and only makes outbound HTTPS connections.

Files and logs. The agent keeps its data and logs in the signed-in user's own folders, ~/Library/Application Support/AntsAgent/ and ~/Library/Logs/AntsAgent/. Both are private to that user. Logs are capped at 7 files of 10 MB each.

Who holds which privilege.

PartRuns asElevated?
Installer (.pkg)root, during install onlyOne time, at install
Main agentThe signed-in userNo
Accessibility and Full Disk AccessThe main agentNo. These are permissions the user grants and can revoke in System Settings.
Endpoint Security and Network Extensionroot, in the backgroundYes. These two system extensions are the only parts that run with higher privilege.

Verify

The menu bar icon turns green when connected, and the device appears under Discover AI > Devices.

MDM (Jamf, Intune, Kandji)

  • Upload AntsAgent.pkg to your MDM and assign it. It installs silently.
  • Add the keys profile from Deployment & Keys. It is a managed preferences payload for the domain ai.agenticants.agent with orgPublicKey, orgSecretKey, apiHost and, if set, disabledCollectors. With device certificates, the profile carries a fleetEnrollmentCredential instead of the keys.
  • Other managed settings in the same domain:
KeyEffect
apiHost, appHost, mtlsHostHost overrides. From macOS agent 0.1.33 they also apply on an install that has only a fleet credential and no project keys.
disabledObserversObservers to switch off. The generated profile leaves it empty.
allowUnenrollFrom macOS agent 0.1.33. On a Mac whose keys or fleet credential an administrator delivered, unenroll from the agent's menu or ants-agent-cli unenroll is off unless this is true. Set false to turn it off on any Mac. See Unenrolling a device.

From macOS agent 0.1.33, the agent reads allowUnenroll, disabledObservers, the host overrides and the fleet credential only from an MDM profile or from the root-owned file the enrollment script writes. A value a user sets with defaults write is ignored.

Upgrade note: on Macs whose keys or fleet credential came from MDM or the enrollment script, macOS agent 0.1.33 removes the users' Unenroll… menu item. To keep it, add allowUnenroll set to true to the profile.

  • Pre-approve permissions with the two configuration profiles ANTS provides for the macOS agent: a PPPC profile (Accessibility, Full Disk Access) and a system extension profile (Endpoint Security and Network Extension approval, and the content filter). With both profiles in place, users see no permission prompts.

  • No MDM or no network enrollment (air-gapped): an admin can enroll the device from the command line after installing the app. This still needs local admin rights. With macOS agent 0.1.32 or later, pass the secret key on standard input (--secret-key-stdin) or in the ANTS_SECRET_KEY environment variable, never as a command-line argument, where other processes and shell history can read it. --secret-key still works but prints a warning.

    text
    /Applications/AntsAgent.app/Contents/MacOS/ants-agent-cli provision \ --public-key <public key> --secret-key-stdin \ [--api-host <your ANTS Platform API host>] < secret-key-file

AI network traffic. The Network Extension runs as a content filter. Up to macOS agent 0.1.33 it always allows traffic. It counts connections and bytes sent and received for two kinds of host:

  • Network hosts listed in the registry for a tool (currently Cursor, Windsurf, GitHub Copilot, Claude, Gemini and Perplexity).
  • AI provider API hosts that the registry serves, such as api.openai.com, api.anthropic.com and the regional AWS Bedrock and Google Vertex AI hosts, from macOS agent 0.1.32. These flows are recorded with no tool attached and feed the Direct Provider Traffic report.

ANTS stores these per device and host. The stored record does not include which process made the connection. Traffic to other hosts is not recorded.

Access policy enforcement on the Mac. From macOS agent 0.1.34, the content filter also drops connections to the hosts of tools your access policy blocks, and the agent shows a notification. It needs:

  • The Network Extension permission and the content filter approved, for example with the system extension profile.
  • The Network activity collector on. When it is off, the agent stops handing new policies to the network extension, which keeps its last verified policy for up to 24 hours, silently.
  • Permission to show notifications, so people see why a tool does not connect.
  • An access policy signing key on your ANTS Platform deployment. The network extension enforces only a policy the platform signed. Without the key, nothing is blocked on Macs.
  • Device certificates for rules about people and devices, and for the agent to leave Chrome, Edge and Firefox to the browser extension.

Browser extension

The browser extension discovers web AI tools in the Tool Registry. It refreshes its copy of the registry about every 10 minutes. It records usage metadata: page URL and title, the AI tool, prompt submission events, model name where the request exposes it, and file uploads as file name, size and type. It does not record prompt or response text. See Data & Privacy.

ℹ

New permission for access enforcement. The next browser extension release (after 0.1.30) blocks and asks for reasons under your access policy. For this it adds the declarativeNetRequestWithHostAccess permission. Force-installed extensions get it automatically. On a self-serve install the browser asks the user to accept the new permission when the extension updates. When a new policy arrives, the extension redirects tabs already open on a tool that is now blocked or needs a reason, and unsaved text in them is lost.

Chrome: installed from the Chrome Web Store (Manifest V3). Store builds update automatically.

  • Self-serve: run the enrollment script, add the extension from the store and pin the icon. It connects on its own and the icon turns green.
  • Managed: force-install the extension and pass it your credentials with the 3rdparty extension policy. Deployment & Keys generates the payload for each channel:
    • macOS: custom settings profile for com.google.Chrome (ExtensionSettings with force_installed)
    • Linux: managed policy JSON in /etc/opt/chrome/policies/managed
    • Windows: Group Policy registry (ExtensionInstallForcelist under HKLM\SOFTWARE\Policies\Google\Chrome)
    • Intune: settings catalog

To check a managed install, open chrome://extensions, edge://extensions or about:addons. The extension should show "Installed by your administrator".

Device certificate installs. With device certificates, the extension policy carries a fleet credential and no project keys, and the extension signs in with its own device key. From browser extension 0.1.30:

  • The options page shows "Connected. This device signs in with its own device key, so no key pair is needed." and Mode reads device key. The popup's public key row reads none (device key).
  • If the platform rejects the install's credentials, the options page says so instead of showing Connected.
  • The extension follows the disabledObservers list in the managed policy on these installs too.

Disable private browsing

The extension usually does not run in private windows, so private browsing is a way around it, including around the access policy. When you generate the Chrome or Edge policy payloads under Install clients, turn on Disable private browsing to add the browser's own policy for it: IncognitoModeAvailability set to 1 for Chrome, or InPrivateModeAvailability set to 1 for Edge. It is off by default.

Extension removal

A force-installed extension cannot be removed or disabled by a managed user. When the extension is removed, for example on a device where it was installed self-serve, the browser opens an ANTS page that records the removal and raises a Browser extension removed alert. See Tamper and silence alerts.


Device status

Each device appears under Discover AI > Devices with its installed clients, agent version, owner, last check-in and health. The AI laptops tab adds the chip, whether the device is an AI laptop and its local AI apps:

HealthMeaning
HealthyChecked in recently with no problems.
Partly offlineOnline, but some browser extension installs have not checked in, for example because a browser is closed.
DegradedOnline, with an issue such as a silent desktop agent, repeated upload failures, a large retry queue, or missing macOS permissions.
OfflineNo client has checked in for more than 70 minutes. Clients check in about every hour.

See Device health for the full rules.

Settings > Discover AI shows fleet coverage: client counts, how many are online, desktop agents under MDM, macOS permission coverage, and devices that need attention.

To be alerted when a device stops reporting, the extension is removed or an agent is unenrolled, turn on tamper and silence alerts.


Coding-agent telemetry

Claude Code, GitHub Copilot CLI and OpenAI Codex CLI can send OpenTelemetry data to ANTS Platform. The enrollment script configures this automatically when it finds these tools. Content capture is off by default and is turned on per tool under Deployment & Keys > Coding-agent telemetry.

See Coding-Agent Telemetry.


Pilot

Enroll a few devices with the enrollment script and install the clients. Confirm they show Healthy under Devices.

Stage through MDM

Package the enrollment script, installers and force-install policies in your MDM. Push to one pilot device first.

Roll out

Deploy to the fleet. Watch the coverage summary under Settings > Discover AI.

Classify

Once data is flowing, classify tools under AI Tools, Registry & Policy and enrich identities with Directory Integration. Then set up the access policy, starting with rules in Test mode.

Next steps

© 2026 ANTS Platform, Inc.Docs v1.0 · Last updated June 2026