Answers · AI evidence
Anthropic now lets us run Claude Managed Agents ourselves. Our security review wants to know: where do the session transcripts live, what still goes to Anthropic, how long is history kept, and can we treat that history as an audit trail of what the agents did?
Last updated
TL;DR: With self-hosted Claude Managed Agents (launched November 12, 2026; access through your Anthropic account team) you run the server (cma-server), its PostgreSQL 16+ database and the sandboxes, so agents, sessions and session history are stored in your database, not at Anthropic. Without a database configured, the server keeps everything in memory and a restart erases it. What still leaves your network is each model call: the conversation so far, including prompts, tool inputs and tool results, goes to the inference provider you choose (the Claude API unless you point it at Amazon Bedrock, Claude Models on Google Cloud, Microsoft Foundry or your own gateway). Calls to the Claude API also carry session, agent and environment ID headers that can't be switched off, plus a User-Agent naming the server version. Anthropic has no remote access to the server or its log. History stays until you delete it; the server never deletes sessions for age, and a delete doesn't reach backups, exported logs or traces, or memory stores. It's your record, in a database your admins can change, so on its own it isn't independent evidence.
What should I check, step by step?
1. Configure PostgreSQL 16 or later before running real sessions: without a database the server holds agents, sessions and history in memory, and a restart erases them.
- Decide where model calls go: the Claude API, Amazon Bedrock, Claude Models on Google Cloud, Microsoft Foundry or your own gateway. Each call carries the conversation so far, so that provider's data agreement covers it.
- Tell your security team the three Claude API headers (anthropic-managed-agents-session-id, -agent-id, -environment-id) can't be turned off; they carry IDs, not content, but the IDs encode creation time.
- Set a retention policy yourself: sessions and history stay until you delete them, archived or not, and a delete doesn't reach database backups, exported logs and traces, or memory stores.
- Point the server's OpenTelemetry variables at your collector if you want traces and metrics; the server writes its log to standard error and keeps no log files of its own.
- Keep the environment key out of agent sandboxes and run one deployment per tenant or trust level: an environment key can read events and post tool results in every session in its environment.
Who stores Claude Managed Agents session history when you self-host?
Anthropic's documentation splits Managed Agents into sandboxes (where an agent's tools run commands and work on files) and the service (the API, the agent loop, and storage for agents, sessions and session history). With cloud sandboxes Anthropic hosts both. With self-hosted sandboxes you host the sandboxes and Anthropic still runs the service. With self-hosted Managed Agents you host both, and the model runs at Anthropic or at a provider you choose.
- The server stores agents, sessions and each session's history in your PostgreSQL 16 or later database. It never runs an agent's shell or file tools; workers do that in your sandboxes. The release notes date the launch to November 12, 2026, and Anthropic's announcement describes it as a private beta.
What does self-hosted Claude Managed Agents send outside your network?
The server connects only to a listed set of destinations: your inference provider, its database, the MCP servers and Git hosts you allow, an OpenTelemetry collector, identity providers, a secret manager or key service if configured, and any other service you configure. It connects to Anthropic only when the Claude API is the inference provider. Anthropic issues none of the credentials the server accepts and has no remote access to the server or its log.
- Each model call carries the conversation so far, including prompts, tool inputs and tool results. On calls to the Claude API the server adds up to three headers holding the session, agent and environment IDs your server generated; Anthropic can use them to attribute usage, and no setting removes them. Every Claude API request also carries a User-Agent naming the server software and version, calls to the Claude API, Foundry and compatible gateways can carry the fixed label cma-server in metadata.user_id, and the server checks its credential with the Claude API every 60 seconds without running inference.
- Workers are separate: a worker has whatever network access its container or VM allows, and every command the agent runs through it has the same access.
How long does self-hosted Claude Managed Agents keep session history?
Sessions and their history stay in your database until you delete them; the server doesn't delete a session because of its age, archived or not. Archiving stops new events and keeps the history. Deleting through the API removes the session and its history from your database, though the server keeps the session's ID, and the server can refuse to delete a running session.
- A delete doesn't reach copies elsewhere: database backups, exported logs and traces, or what the agent wrote to a memory store. On Kubernetes the session's /workspace volume can remain. The log, traces and metrics are kept as long as your own pipeline keeps them.
- On zero data retention: Anthropic lists Managed Agents as not covered by ZDR because the hosted service stores transcripts until you delete them. When you self-host, you store them, and model calls to the Claude API fall under your organization's ZDR arrangement like other Messages API calls.
Is self-hosted Claude Managed Agents session history an audit trail?
It's a complete working record of each session, kept by you. That's useful for review and incident work, and Anthropic's announcement notes the record of each step can be exported over OpenTelemetry. But it lives in a database that your own administrators can edit or prune, and the self-hosting pages don't describe signing or hash-chaining of the history. For an auditor or a counterparty, the question is whether anyone outside your team could tell if a row changed.
- If that matters, add something you can't quietly rewrite: export session events to append-only or write-once storage, or hash each closed session's event export and record that hash somewhere independent at the time. Keep roles tight too: the docs say each deployment serves one tenant at one trust level, the server API key reaches every environment, and code an agent runs can call the server with any credential its sandbox holds.
How do I ask Rightshold about this (free, no key)?
Add the MCP server https://www.rightshold.com/mcp to Claude, Cursor, ChatGPT, Grok or VS Code, then ask: “We closed a self-hosted Managed Agents session that changed production config. Record a receipt with the session id, the agent id, the time window and the SHA-256 of the exported session event list.”
{
"tool": "record_action",
"arguments": {
"action_type": "ai_session.history_exported",
"outcome": "success",
"occurred_at": "2026-11-22T15:00:00Z",
"client_event_id": "cma-export:<session id>",
"summary": "Self-hosted Claude Managed Agents session <session id> (agent <agent id>, environment <environment id>), 2026-11-22T13:05Z to 14:20Z, status idle then archived; full event list exported from our PostgreSQL store; inference provider Claude API; changed production config in repo infra/<path>",
"action_sha256": "<sha256 of the exported session events JSON>"
}
}- Needs an API key. Send ids, the hash and a summary; keep the session history in your own database and storage.
- Use one client_event_id per exported session, so a retry doesn't create a second entry.
- If the database row is later edited or deleted, the saved export plus this receipt still shows what the history said when you closed the session.
- A receipt records what you submitted and when. Rightshold doesn't read session history and doesn't confirm what an agent did.
Rightshold isn't affiliated with Anthropic. Details are from Anthropic's documentation pages 'Self-hosted Claude Managed Agents', 'Data and access in self-hosted Claude Managed Agents' and 'Session operations', the Claude Platform release notes (November 12, 2026) and Anthropic's announcement article, all read November 22, 2026. The product is in private beta and can change; check the current docs and your release's operator guide before relying on these details.
What are the sources?
- Claude Docs: Self-hosted Claude Managed Agents
- Claude Docs: Data and access in self-hosted Claude Managed Agents
- Claude Docs: Session operations
- Claude Platform release notes (November 12, 2026)
- Claude: Operate Claude Managed Agents inside your security perimeter
Related
- What do Claude Compliance API session transcripts show?
- Make an AI agent's audit log append-only so even an admin can't silently delete entries
- Keep an agent's risk approval record outside its editable session
- Logging every AI agent tool call for audit
Not legal advice. JSON · Markdown · All answers
Get a free API key in one call
No card and no email needed. 100 free credits; the license and policy checks stay free without a key.
curl -s -X POST https://www.rightshold.com/v1/accounts/signup -H "Content-Type: application/json" -d '{"accept_terms":true}'
export RIGHTSHOLD_API_KEY=rs_... # the api_key from the reply (shown once)
curl -s https://www.rightshold.com/v1/licenses/check -H "Authorization: Bearer $RIGHTSHOLD_API_KEY" \
-H "Content-Type: application/json" -d '{"license":"MIT","intended_use":{"commercial_use":true}}'
