Integrations
Claude Cowork and Claude Code
Protect prompts, tool calls, tool results, files and answers in Claude Cowork and Claude Code with the AgentID Security plugin.
The AgentID Security plugin (version 0.9.18) runs inside Claude on macOS, Windows and Linux. A plugin on a Claude account reaches Cowork and Code (the Desktop Code tab and Claude Code signed in with that account). Claude does not run plugins in ordinary chats; for those, install the Claude Desktop companion.
What it protects
| Moment | What the plugin does |
|---|---|
| Prompt submit | Checks a prompt that looks sensitive. Claude cannot rewrite a submitted prompt, so by default a prompt that contains data AgentID would mask is held back: Claude shows a notice and you get the protected version to send instead. A system can instead send such prompts as written and record them (see Prompts with sensitive data). Policy blocks stop the prompt. |
| Before a tool call | Inspects the tool call. Only calls that send data to a third party (web tools, MCP actions other than reads) are rewritten with placeholders; opaque connector identifiers can be kept (see Connector identifiers), secrets never are. Shell commands (Bash, PowerShell and similar) and local or internal tools are inspected and logged but never rewritten, because masking a command or path breaks it. An organization policy can still block any call. Supported documents (PDF, DOCX, XLSX, XLSM, PPTX, MD, TXT, CSV) are replaced with private masked text copies before a tool reads them. |
| After a tool call | Masks sensitive tool results before Claude sees them. Opaque connector identifiers can be kept (see Connector identifiers); secrets never are. |
| End of a response | Withdraws a response that breaks policy in the same turn. |
| Display and file writes | Shows the originals on screen, writes them into files Claude creates or edits, and masks them again when a tool reads such a file. Claude and the audit log keep the placeholders. |
Originals live only in an encrypted per-session vault on the device (AES-256-GCM, kept for 7 days).
Connector identifiers
A connector (MCP server) can return an identifier, such as a document id or a paging cursor, and expect it back unchanged in the next call. If AgentID masks it, the connector cannot find its own object. So, after AgentID masked a tool call or a tool result that it allowed, the plugin keeps the original value only when all of these hold:
- the field name is an identifier field (
id,file_id,document_ids,cursor,next_page_token,etagand similar), not a credential field (password,api_key,token,access_tokenand similar); - AgentID replaced the whole value with an identity-id placeholder;
- the value is one opaque string: 8 to 512 letters, digits or
. _ ~ : / + = -, no spaces, and not shaped like a known key or token; - the same value appears nowhere else in the call or result.
A value AgentID masked as a secret, password or credential is never kept, whatever the field is called. A connector identifier that AgentID took for a secret therefore stays masked, and the call asks for approval. Names, e-mail addresses and other personal data stay masked. A policy block is not affected.
Each kept identifier is recorded: the activity log gets an entry for the tool step with the number of values sent unmasked, their placeholder type and field names (not the values), and the id of the masked record. If that entry cannot be sent, the identifier stays masked.
Each step is recorded in the activity log: the prompt, each tool call and its result (including failed tools and subagents), and the response.
Requirements
- An AI system with the Claude Desktop target. See Register an AI system.
- Claude Code and the Desktop Code tab run plugin hooks on your computer and need Node.js 18 or later. Cowork provides Node.js in its sandbox. Without Node.js the plugin tells you once per session that protection is not active.
- Admin rights on the AI system, to download the plugin from its Integration tab. The plugin uses no API key.
- For Cowork: network egress to your AgentID host allowed in Claude's capabilities settings.
- For the whole organization: an owner of the Claude organization, who uploads the plugin.
Set up for yourself
Download the plugin
Open the system's Integration tab, choose For me, and click Download Claude plugin. The ZIP is already connected to your AI system.
Add it to Claude
In Claude open Settings → Plugins → Add and choose the downloaded ZIP. This is needed once per Claude account; the plugin follows the account to every computer.
Allow the AgentID host in Cowork
In Settings → Capabilities, keep network egress enabled and add app.getagentid.com to the additional allowed domains. Start a new Cowork task: a running task does not receive the updated network rules.
Try it
Start a Cowork task or Claude Code session and send a prompt with a test name and e-mail address. It appears in the system's activity log.
A generic plugin package (for example one downloaded when you registered the system) is not connected to a system. It asks for a setup code when you enable it; the Integration tab offers the setup code together with the generic packages.
Set up for the whole organization
Download the organization plugin
On the Integration tab choose Whole organization and click Organization plugin. Its activation is valid for one year and can be revoked.
Upload it once
In Claude Organization settings → Plugins & skills, upload the ZIP and set it to Required. It then covers Cowork and Code for every member without employee action.
Allow the AgentID host
In Organization settings → Capabilities, allow app.getagentid.com.
Every device and user still gets its own credential for Guard; the organization plugin runs as one installation.
Check that it works
- Start a new Cowork task or Claude Code session; a running one keeps its earlier plugins and network rules.
- Send a prompt with a made-up name and e-mail address. With the default setting the prompt is held back and you get the protected version to send instead.
- Open the system's activity log: the prompt, the tool calls and the response are recorded as steps.
- On the Integration tab the installation is listed under Connected devices with its version and last heartbeat.
If tool calls are denied right after installation, the plugin is enabled but not connected to an AI system: use the ZIP from the Integration tab, or enter the setup code in the plugin's settings, and start a new session.
Update and remove
- Update: download the plugin again from the Integration tab and add or upload it again in Claude.
- Remove: remove the plugin in Claude where you added it (your plugin settings, or the organization's plugin settings for the organization plugin). Then Revoke the installation under Connected devices, and click Stop new connections for the activation package so that it cannot connect new devices.
Prompts with sensitive data
Claude cannot change a prompt after it is submitted. The system's Guardrails tab has a Claude prompts with sensitive data setting that decides what happens when AgentID would mask something in a prompt:
| Option | What happens |
|---|---|
| Hold back and offer a protected version (recommended) | The prompt is not sent. You get a copy with the sensitive values replaced by placeholders to send instead. |
| Send as written and record | Claude receives the prompt unchanged. AgentID records it in the activity log with what it found. |
Policy blocks stop a prompt with either option. Tool calls, tool results and answers are protected as described above. The plugin picks up a changed setting at the start of the next Cowork task or Claude Code session; you do not need to download a new bundle.
Failure behaviour
The plugin follows the system's failure mode and Shadow Mode as set in the system's Guardrails; a system is fail-open unless you chose fail-closed. It reads the current setting when a session starts, so a change reaches installed plugins from the next session without downloading a new bundle. The Integration tab shows the current behaviour: prompts continue (fail open) or prompts are blocked (fail closed).
- Fail-open: Claude continues when AgentID is unreachable. A prompt that AgentID cannot check in time is let through and the failure is logged.
- Fail-closed: a prompt that AgentID cannot check in time is held back. Protected document reads and calls that can carry data off the device (shell, web, MCP actions other than reads) do not run when AgentID cannot inspect them; local tools and responses continue. Without egress to the AgentID host, protected file reads and egress tools are blocked.
- Shadow Mode: nothing is held back, rewritten or blocked; every step is still logged.
An explicit AgentID policy block is always enforced, independent of the failure mode.
Managing devices
The Integration tab lists Connected devices with version, last heartbeat and health. Admins can:
- Revoke a single installation; it stops reaching AgentID Guard immediately, other devices keep working,
- Stop new connections for an activation package; existing installations keep working.
Each personal installation creates its own credential, stored with private permissions on the device (Windows DPAPI, macOS Keychain, or an owner-only file elsewhere). A ZIP never contains an API key, only a revocable activation: seven days and a limited number of seats for the personal plugin, one year for the organization plugin.
Limits
-
For a server-side control that covers a whole Claude organization with allow or deny verdicts, see the Claude inference hook.
-
The plugin can protect a document only when Claude exposes a local file path to a tool call.
-
Files dragged into a Claude chat are not covered by the plugin. On Windows, the companion protects files added with Add files or photos.