Integrations
Claude Desktop companionNew
Protect ordinary Claude Desktop chats on Windows and macOS with a small AgentID app installed by one command.
Claude does not run plugins in ordinary Claude Desktop chats. The AgentID companion protects them from the computer itself. Current versions: Windows 0.5.8, macOS 0.4.0.
How it works
- When you press Return or the Send button in Claude's prompt box, the companion holds the prompt.
- It sends the prompt to AgentID Guard. A line Checking by AgentID... appears above Claude's message box.
- A masked prompt is submitted with placeholders; a blocked prompt is not sent and the line shows the policy reason. Problems (AgentID unreachable, timeout, revoked installation, rate limit, outage) are shown in the same line with the exact cause.
- Claude's whole reply, every paragraph in order, is logged to the activity log, including long multi-step tasks (followed for up to 20 minutes; a continued reply is logged as a further step).
- When the reply contains masked values, the original values come back on this device only: a reply you copy from Claude (its Copy button or Ctrl+C / Cmd+C) has the original values in the clipboard, and on macOS the originals are also shown inline in Claude. There is no separate reply window.
| Windows | macOS | |
|---|---|---|
| Prompts (masked or blocked before sending) | Yes | Yes |
| Replies logged | Yes, with the tool steps shown in the chat (web search, web fetch, connectors; only their visible label, because these tools run on Anthropic's servers) | Yes, as text; tool calls and files are not captured |
| Original values restored | In the clipboard when a reply is copied | Inline in Claude and in the clipboard |
| Attachments | Files added with Add files or photos | Files dropped on Claude's window, pasted with Cmd+V or chosen with Upload or add files |
In Shadow Mode the Windows companion sends the prompt as typed and checks it in the background, so Claude is not held up. On macOS the prompt is not changed either.
Cowork and Claude Code are protected by the AgentID plugin. Install both for full coverage of the Claude app.
Before you start
- An AI system with the Claude Desktop target; see Register an AI system. The companion uses no API key: the install command from the system's Integration tab carries a setup code.
- Claude Desktop installed on the computer.
- Windows: the companion installs for the current Windows user, without administrator rights, and uses Windows PowerShell 5.1. Where Smart App Control or an App Control policy restricts PowerShell scripts, see Limits.
- macOS: the user must allow Accessibility for the companion once.
- The computer must reach your AgentID host over HTTPS.
Install on a computer
Copy the install command
On the system's Integration tab, under 2 · Install on each computer, select Windows and click Copy install command.
Run it in PowerShell
Open PowerShell (Start → type PowerShell), paste the command and press Enter.
Restart Claude Desktop
Restart Claude Desktop. The companion starts automatically with Windows from now on.
If you downloaded the Claude Desktop chat companion (Windows) ZIP when you registered the system instead, unpack it and run Install-AgentID.cmd with the setup code from the Integration tab.
Copy the install command
On the system's Integration tab, under 2 · Install on each computer, select macOS and click Copy install command.
Run it in Terminal
Open Terminal, paste the command and press Enter. It installs AgentID Claude in ~/Applications and starts it for your user.
Allow Accessibility
In the window that opens, turn on AgentID Claude under Accessibility. Protection starts right away.
The command activates the computer with a setup code that is passed through the environment, never on the command line. The device credential is stored in Windows DPAPI for the current user or in the macOS Keychain.
Check that it works
- In an ordinary Claude Desktop chat, send a prompt with a made-up name and e-mail address.
- The line Checking by AgentID... appears above Claude's message box. With masking on, the prompt is submitted with placeholders such as
<PERSON_NAME_1>. - The prompt and Claude's reply appear in the system's activity log.
- The computer is listed under Connected devices on the Integration tab, with its version and last heartbeat.
If nothing happens, restart Claude Desktop, and on macOS check that AgentID Claude is switched on under Accessibility.
Remove
- On the Integration tab click copy remove command under the install command and run it the same way as the install command.
- Under Connected devices, Revoke the device's credential. A revoked installation can no longer reach AgentID.
For a managed rollout use the uninstall command from DEPLOY.txt; see Managed devices.
Deploy to the whole organization
On the Integration tab choose Whole organization. One activation is valid for a year and can be revoked; every device and user still gets its own credential.
| Platform | Package | How to deploy |
|---|---|---|
| Windows | Windows package | Intune Win32 app, ConfigMgr or GPO with install behaviour User. The install and uninstall commands are in DEPLOY.txt; use Detect-AgentIDClaudeDesktop.ps1 as the detection rule. |
| macOS | macOS script | Run with Jamf, Kandji or Intune as root. It installs for the user signed in at the console, who allows Accessibility once. |
Attachments
| Platform | Protected |
|---|---|
| Windows | Files added with Claude's Add files or photos: AgentID attaches a masked copy. Files dragged into the window are not protected. |
| macOS | Files dropped on Claude's window, pasted with Cmd+V, or chosen with Upload or add files in Claude's + menu (which opens AgentID's file chooser instead of Claude's). |
On macOS (0.4.0), documents (PDF, DOC, DOCX, DOCM, XLSX, XLSM, PPTX, PPTM), text files (such as TXT, CSV, MD, JSON, XML, HTML, YAML) and images (PNG, JPEG, WebP, GIF, BMP, TIFF) up to 16 MB are checked by AgentID before Claude gets them. AgentID decides per file:
- nothing to mask: the file is attached unchanged;
- masked: the file is attached masked in its own format (an Office file without its macros, an image with the values covered, a text file in its own layout); a PDF with a text layer, or a file that cannot be rewritten, is attached as a masked text copy (
<name>.masked.mdor.masked.txt). A value in the file name is masked too; - blocked by policy: the file is not attached.
The same person keeps the same placeholder across the prompts and files of a chat. Other file types and files over 16 MB go to Claude unchanged with fail open and are refused with fail closed. Files AgentID cannot read and failed checks follow the failure mode too: fail open attaches the original and says so, fail closed does not attach it. A masked file that cannot be fetched or verified is never replaced by the original. In Shadow Mode the file is recorded and the original is attached. While one batch of files is being checked, further files are not attached; add them again afterwards.
Limits on macOS:
- Files added another way (the + menu item reached with the keyboard, Edit > Paste) are not checked.
- Files that Claude produces are not restored: their placeholders stay in the downloaded file.
- Verified in AgentID's test environment with input driven by a script, not yet by hand. Not verified yet: a drop by hand, a file blocked by policy, and fail closed for files.
- In that test, the check of a 3 MB text file timed out on the server, so with fail open it was attached unmasked. Larger files may not be checked in time until this is fixed.
- macOS may ask once to let AgentID Claude read Desktop, Documents or Downloads; the check waits until you answer.
Failure behaviour
Both companions follow the system's failure mode (fail open or fail closed) as set in the dashboard. They check the current setting with a heartbeat about once a minute and keep the last known one across restarts, so a change in the dashboard reaches installed computers without reinstalling. A system is fail-open unless you chose otherwise: if AgentID is unreachable, prompts continue unchanged. With Strict Security (Fail-Closed), the prompt is not sent.
Limits
- The companion reads Claude Desktop's accessibility interface. A Claude Desktop update can stop prompt or answer detection until the companion is updated; with fail-closed the prompt is then not sent.
- On Windows, Smart App Control or an App Control policy can restrict PowerShell. The installer then explains that a signed build is required; removal still works.
- On Windows the companion also masks ordinary Cowork prompts before submitting them, so the plugin's own prompt check sees placeholders only.