localhost in Claude Cowork monitoring settings. Cowork exports
from Anthropic’s VM, so localhost points at the Cowork environment, not your
developer machine. To test with a real Cowork session against a local Runlayer
stack, expose your local app through a reachable HTTPS tunnel and use that
tunnel URL as the OTLP endpoint.
Requirements
- Claude Team or Enterprise with Cowork monitoring access
- Claude desktop app version 1.1.4173 or later
- A Runlayer organization API key with the OTLP Telemetry permission
- Full session scanning enabled for Claude Cowork in Runlayer
Create the Runlayer API key
1
Open Organization API keys
In Runlayer, go to Settings → Organization API keys.
2
Create a scoped key
Click Create Organization API Key, give it a name such as
Claude Cowork OTLP, and select OTLP Telemetry. It must be the key’s
only permission; Runlayer clears any other selection when you pick it.3
Copy the key
Copy the generated
rl_org_... value. Cowork uses this key in the OTLP
header, and Runlayer rejects user API keys or org keys without the
OTLP Telemetry permission.Cowork settings already configured with an existing Shadow AI Scan
organization key (hand-created or from a configuration in Settings → MDM
configuration) keep working; no re-keying is required. Use OTLP
Telemetry for new setups so the key cannot use the AI Watch scan and hook
endpoints.
Rotate the key
1
Create the replacement
In Settings → Organization API keys, create a new key with only the
OTLP Telemetry permission and copy the
rl_org_... value.2
Update Cowork
In Claude admin settings, replace the OTLP headers value with
Authorization=Bearer <new key>.3
Revoke the old key
Back in Organization API keys, revoke the previous key. Exports still
using it start receiving 401 responses immediately.
Enable Cowork in Runlayer
1
Open Full session scanning
In Runlayer, go to Settings → Agent session monitoring.
2
Enable the API
Turn on Full session scanning APIs.
3
Enable Claude Cowork
Under Hook clients, turn on Claude Cowork, then save the settings.
Configure Claude Cowork
In Claude admin settings, open Cowork monitoring settings and set:
If your organization restricts Cowork network egress, allowlist your Runlayer
tenant hostname, such as
<your-tenant>.runlayer.com. Cowork exports telemetry
from its VM, so blocked egress prevents events from reaching Runlayer.
After saving the Cowork monitoring settings, start a new Cowork session. Cowork
loads monitoring settings when a session starts, so already-running sessions do
not pick up the new OTLP destination.
Content capture
Claude Desktop decides on each device whether Cowork events carry content. By default, current versions send metadata only: tool names, timings, token counts, API errors, and whether each tool call succeeded. Prompt text, tool inputs, and the error text of failed tools arrive as the literal<REDACTED>,
and Runlayer marks the session Redacted by source. Runlayer’s own redaction
looks different: it shows ***REDACTED***.
To send content, set Claude Desktop’s otlpContentCapture managed key on each
device to ["userPrompts","toolDetails"]. Runlayer then receives user prompts,
tool inputs such as shell commands, file paths, and URLs, and the error text of
failed tools. Claude Desktop also sends model responses whenever it captures
user prompts, but Runlayer doesn’t record them yet, so they don’t appear in
Sessions. To keep a device metadata-only on every Claude Desktop version, set
the key to [] instead.
Before you deploy the key, note what it doesn’t control:
- Every event carries
workspace.host_paths, the folders the user connected to the task, and, on first-party deployments,user.email. The key doesn’t control either one, so both reach Runlayer even when it’s[], and Runlayer stores them with the session. - With capture on, Runlayer doesn’t scrub credentials from captured prompts or tool inputs, so a secret typed into a prompt or passed in a command or tool argument is stored with the session.
- macOS
- Windows
Save this profile as Claude Desktop reads managed arrays as a string, so the value stays a
com.runlayer.claude-desktop-monitoring.mobileconfig
and deploy it with your MDM. The same file ships in the AI Watch macOS
bundle (aiwatch-<version>-macos-arm64.zip). It sets only this key, and
it has no tenant values to fill in:<string> that contains the JSON array.AI Watch sets the key for you
When Claude Cowork is on under Hook clients, AI Watch writesotlpContentCapture with the value above on macOS and Windows devices. It
checks again every 15 minutes. It never writes over your own Claude Desktop
policy; instead the device reports its status on the Devices tab:
Claude Desktop may ask users to restart after the key changes.
Shared devices
The key is machine-wide, so it applies to every user on the device. AI Watch checks every user’s Claude Desktop configuration, not only the person signed in, so the outcome doesn’t change when someone else signs in. When another user’s configuration keeps the device from getting the key, the device status says so without naming them. On Windows, a user’s own Claude Desktop policy underHKCU can be read only
while they’re signed in. So while any user with a profile on the device is
signed out, AI Watch keeps a key it already wrote and writes nothing new. If
that leaves a shared device Drifted, set the key in your own HKLM policy for
it.
To stop AI Watch from writing the key, turn off Claude Cowork content
capture in the AI Watch settings for the deployment. Turning it off, or
turning off Claude Cowork under Hook clients, removes the key AI Watch
wrote. Uninstalling AI Watch removes it too.
Verify in Runlayer
- Start a new Cowork session and submit a prompt.
- Open Sessions in Runlayer.
- Filter by client Claude Cowork.
Troubleshooting
No Cowork sessions appear
No Cowork sessions appear
- Confirm Full session scanning APIs is on.
- Confirm Claude Cowork is enabled under Hook clients.
- Confirm the Cowork OTLP endpoint includes
/api/v1/hooks/cowork/otlp/v1/logs. - Confirm the OTLP header uses an organization API key with OTLP Telemetry.
- Start a new Cowork session after changing monitoring settings.
- If Cowork egress allowlisting is enabled, allowlist your Runlayer tenant hostname.
Runlayer returns 403
Runlayer returns 403
Use an organization API key whose only permission is OTLP Telemetry
(or any existing Shadow AI Scan organization key, hand-created or from
an MDM configuration). Personal user API keys, org keys without either
role, and OTLP Telemetry keys that carry other permissions are rejected for
Cowork OTLP ingestion.
Messages show Redacted by source
Messages show Redacted by source
Claude Desktop removed the content before it reached Runlayer. Set the
otlpContentCapture key on the device, as in
Content capture, then:- Fully quit and reopen Claude Desktop, then start a new Cowork session.
- If the device already has a Claude Desktop profile or registry policy,
confirm the key is in that policy. On Windows, confirm it is in the hive
Claude Desktop reads:
HKLMwhenever any machine policy exists. - Expect earlier sessions to stay redacted. Runlayer cannot recover content that Claude Desktop never sent.
<REDACTED> in its place. A prompt or tool argument that is exactly that
text also shows Redacted by source, even with capture on.If messages show ***REDACTED*** instead, Runlayer withheld the content
from you. Check your session content access in Runlayer.JSON or protobuf
JSON or protobuf
Use
http/protobuf for normal deployments. Use http/json when you need to
inspect payloads while testing. Runlayer accepts both protocols on the same
endpoint.