Blog

Self-hosted AI agents and data residency: what still leaves on every step

Anuraag Dubey · 14 November 2026 · 7 minute read

Anthropic's self-hosted Claude Managed Agents beta moves the agent server, its Postgres session store, the sandboxes and the credentials into your cloud. The model still runs at the endpoint you choose, and each model call carries the conversation so far, tool results included. Your residency answer is set by that inference route, its region and its retention terms.

What does self-hosted Claude Managed Agents run in your cloud?

Anthropic opened self-hosted Claude Managed Agents as a private beta on 12 November 2026, with access through your Anthropic account team. In Anthropic's announcement, you operate the Managed Agents server, its database and the workers that run shell and file tools, and session history lives in your database. Credentials can sit in your own secrets manager, and the record of each agent step exports over OpenTelemetry. Help Net Security adds that the proxy which attaches those credentials covers MCP tools and supported API calls only, so anything else the agent reaches needs its own review.

Developers Digest, in its coverage of the docs, names the parts: cma-server, which serves the API and runs the agent loop, PostgreSQL 16 or later, the workers, a console and a cma-server-admin CLI, with production installs through Helm charts. As with any beta, the APIs and deployment requirements can change before general availability. Pricing and the names of beta customers have not been disclosed, according to AI Weekly.

For a security questionnaire this is a real change. The store of record for agent sessions becomes a database you operate, under your own encryption and backup policy.

Which part of a self-hosted agent still leaves your network?

The model call leaves. "Claude itself still runs outside the customer's network," Help Net Security writes: prompts go out and completions come back. You choose where they go. Anthropic lists Anthropic directly, Amazon Bedrock, Google's Agent Platform, Microsoft Foundry or your own gateway, and Developers Digest reports these as the values of an inference.provider setting (anthropic by default, then bedrock, vertex, foundry and gateway).

Tool calls leave your network too, to the hosts on your allowlist, and each carries what that tool needs. The model call is the one route that carries the whole conversation, every time.

What data goes to the model on each step of an agent run?

For each model call, the conversation so far goes to the configured inference provider, tool inputs and tool results included, according to Developers Digest and ai-tldr. Calls to the default provider also carry session, agent and environment IDs. Take an illustrative claims-review agent inside an insurance administration product, with three steps.

First it reads the policy record, with the claimant and the policy terms. The model call that chose that tool carried the system prompt and the task, and the record comes back as a tool result written to Postgres. Next it calls a pricing API. The model call that asks for the price now carries the system prompt, the task and the whole policy record. Last it drafts a decision, and this call carries all of that plus the pricing result. The draft comes back as the reply.

By the final call, the model endpoint has received every field the agent read. The session table sits in your Postgres, and its content has also travelled to the inference route, one call at a time.

What is stored, what is sent, on each step

An illustrative three-step run: what your cloud keeps, and what each model call carries across the boundary.

Stored and sent on each agent stepIn an illustrative three-step run, the session store stays in your cloud while each model call carries the full conversation so far across the boundary to the chosen endpoint. Postgres starts with the system prompt and task. Step 1, read policy record: Postgres adds the policy record; the model call carries the system prompt and task. Step 2, call pricing API: Postgres adds the pricing result; the model call carries the system prompt, task and policy record. Step 3, draft decision: Postgres adds the decision draft; the model call carries the system prompt, task, policy record and pricing result. By step 3, Postgres holds everything the model calls have carried, plus the draft that came back. The same content is also written to the trace sink, logs and backups. Your cloud Model endpoint you choose Step Postgres session history also: trace sink, logs, backups What the call carries 1 Read policy record claimant, policy terms System prompt · Task Policy record Model call 1 System prompt · Task 2 Call pricing API quote for the claim System prompt · Task Policy record Pricing result Model call 2 System prompt · Task Policy record 3 Draft decision returned as the reply System prompt · Task Policy record Pricing result Decision draft Model call 3 System prompt · Task Policy record Pricing result Stored and sent on each agent stepIn an illustrative three-step run, the session store stays in your cloud while each model call carries the full conversation so far across the boundary to the chosen endpoint. Postgres starts with the system prompt and task. Step 1, read policy record: Postgres adds the policy record; the model call carries the system prompt and task. Step 2, call pricing API: Postgres adds the pricing result; the model call carries the system prompt, task and policy record. Step 3, draft decision: Postgres adds the decision draft; the model call carries the system prompt, task, policy record and pricing result. By step 3, Postgres holds everything the model calls have carried, plus the draft that came back. The same content is also written to the trace sink, logs and backups. 1 Read policy record Your cloud· Postgres session history System prompt · Task Policy record Model endpoint you choose Model call 1 carries System prompt · Task 2 Call pricing API Your cloud· Postgres session history System prompt · Task Policy record Pricing result Model endpoint you choose Model call 2 carries System prompt · Task Policy record 3 Draft decision Your cloud· Postgres session history System prompt · Task Policy record Pricing result Decision draft Model endpoint you choose Model call 3 carries System prompt · Task Policy record Pricing result Also stored: trace sink, logs, backups.
Illustrative run. Mechanism as reported by Help Net Security and Developers Digest, 12 Nov 2026.

What should your data residency answer say?

Your customer is asking where their data goes, and the exact answer is the route the model calls take: who serves the model, where, and what they keep. Anthropic's 12 November announcement says zero data retention covers these requests "in the same way as any other Messages API call." AlphaSignal states the general rule: prompts and model responses "remain subject to the networking, retention, and compliance terms of that route."

Self-hosting the harness moves where session data is stored. The model route decides where it goes.

Many vertical SaaS teams have already picked a route for their hosted AI features, with a provider, a region and a contract their customers have seen. If the agent calls the model through that same route, your residency answer can reuse the wording customers already accepted. If it calls a different one, the answer needs a second line, and the customer will ask why.

If you answer the security questionnaire

Name the inference route, its region and its retention terms in the residency answer. Then list every place session content is written in your cloud, including the trace sink and backups, with an owner and a retention period for each. The server, database and firewall rules are yours to patch under this model.

Where else does agent session data land in your cloud?

Agent session data lands in more places than one database. Each step is logged with its tool call and result and exported over OpenTelemetry, so the trace sink holds the same content as the session table. Application logs that capture tool results hold it again, and backups of either hold it a third time. If your traces are shared across customers, the tenant isolation questions apply to this sink too.

Under this model the server, the database and the firewall rules are yours to run, patch and configure, Help Net Security and AI Weekly report, and ai-tldr says the docs advise running workers in disposable containers or VMs. Older copies count as well. NEAR AI disclosed on 9 November 2026 that the chat history and logs of 18 agents on an older deployment, outside its confidential computing environment, had been taken, and that two customers' API keys had turned up in logs, as The Hacker News and The Block report.

How do you map an agent workflow for a security questionnaire?

Two columns per step settle most of this conversation: what is stored and where, and what is sent and to whom. Here is the illustrative run, filled in. Copy the columns, fill one row per step for one workflow you ship, and send the table to your CISO.

Residency worksheet for one agent workflow

Illustrative. Copy the columns for one workflow you ship.

StepWhat the step addsStored whereWhat the model call carries
1Policy record (claimant, policy terms), read by a toolPostgres session history; trace sinkSystem prompt and task, to the inference route (provider, region, retention terms)
2Pricing API resultPostgres session history; trace sinkSame route, now with the policy record
3Decision draft, written from both resultsPostgres session history; trace sinkSame route, now with the policy record and pricing result
Your workflow: fill one row per step

On every row: application logs that capture tool results, and backups of Postgres and the trace sink, hold each step too.

Then take the regulated fields one at a time and ask whether each needs to reach a model at all. Many do not: an ID can stand in for a name, and a computed band often does the job of a raw figure. Where a step needs the field and the field has to stay inside your boundary, that step belongs on a model you serve there, next to the session store. Serving a model yourself has its own cost and latency arithmetic, which we worked through in self-hosted LLM versus API.

When a customer asks where their data goes, what does your answer name today?

Anonymous. One vote per browser.

Where SynOS fits

SynOS installs in your cloud and keeps customer data, traces, training data and model weights inside that boundary. Because it trains domain-specific open-weight models there, you can choose to run the steps that touch regulated fields on a model served inside the same boundary as the session store, and route the other steps as you do today.

Questions about self-hosted AI agents and data residency

Does self-hosted Claude Managed Agents keep my data in my environment?

Session history and the workers that run tools stay in your environment and, if you choose, your credentials stay in your own secrets manager, according to Anthropic's announcement of 12 November 2026. Model calls go to the endpoint you choose, and each one carries the conversation so far, tool inputs and results included.

Does zero data retention cover self-hosted agent calls?

Anthropic says zero data retention applies to these requests in the same way as any other Messages API call. Confirm it in your own agreement, and say in your residency answer which route the calls take and what it keeps.

Can I route model calls through my own gateway?

Yes. A customer gateway is one of the listed routes, alongside Anthropic, Amazon Bedrock, Google's Agent Platform and Microsoft Foundry. Whatever sits behind the gateway decides where the data goes.

What should a data residency answer for an AI agent include?

Name the inference route, its region and its retention terms. Then list every place session content is written in your cloud, including the trace sink, application logs and backups, with an owner and a retention period for each.

Sources

Keep the regulated steps inside your boundary.

Bring one workflow and we will map what it stores and what it sends, step by step.