self-hosted-data-and-access changedmanaged-agents/self-hosted-data-and-access
Nearest release: v2.1.330, published under an hour before this site recorded the change. Shown because the two are within 24 hours of each other. Nothing here says the release caused the edit.
Recorded here
Lines+16added
Lines−16removed
From line
44
where the diff opens
First seen
12 Nov 2026
this site's first read of the page
Recorded edits4to this page, all time
The whole hunk
from line 44, old and new numbered
/
from line 44
4444
4545When the Claude API is the inference provider, each model call also carries up to three headers. They hold IDs that your server generated:
4646
47| Header | What it holds |
48| ----------------------------------------- | ------------------------------------------ |
49| `anthropic-managed-agents-session-id` | The ID of the session that the call serves |
50| `anthropic-managed-agents-agent-id` | The ID of that session’s agent |
51| `anthropic-managed-agents-environment-id` | The ID of that session’s environment |
47| Header | What it holds |
48| ----- | ----- |
49| `anthropic-managed-agents-session-id` | The ID of the session that the call serves |
50| `anthropic-managed-agents-agent-id` | The ID of that session’s agent |
51| `anthropic-managed-agents-environment-id` | The ID of that session’s environment |
5252
5353An ID holds no name and no content, but it does encode the time when your server created it. With these headers, Anthropic can attribute usage to a session, an agent, or an environment. No setting turns them off. If `ANTHROPIC_BASE_URL` names a proxy or a gateway, the headers go there. Under any other inference provider, the server never sends them.
5454
from line 104
104104
105105The server accepts API requests on one address and port. The server opens two more listeners, each only if you turn it on.
106106
107| Listener | On by default | Default address | What it asks for |
108| -------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------- |
109| API requests | Yes | `127.0.0.1:8400`, which only the same machine can reach. To change the address and port, set `server.addr`. | See [Credentials that the server accepts](https://platform.claude.com/docs/en/managed-agents/self-hosted-data-and-access#credentials-that-the-server-accepts). |
110| The [console on your server](https://platform.claude.com/docs/en/managed-agents/self-hosted/console), a webpage | Yes. To stop serving it, see [Turn off the console](https://platform.claude.com/docs/en/managed-agents/self-hosted/console#turn-off-the-console). | The same address and port as API requests | Nothing to load the page, for anyone who can reach it. To do anything in the console, a person signs in through your identity provider. |
111| The Prometheus metrics endpoint | No | `localhost:9464`, which only the same machine can reach | No credential |
112| The server’s listener for the [egress gateway](https://platform.claude.com/docs/en/managed-agents/self-hosted/agent-identity#environment-variable-credentials) | No | Port 8410 on every interface | The gateway’s key |
107| Listener | On by default | Default address | What it asks for |
108| ----- | ----- | ----- | ----- |
109| API requests | Yes | `127.0.0.1:8400`, which only the same machine can reach. To change the address and port, set `server.addr`. | See [Credentials that the server accepts](https://platform.claude.com/docs/en/managed-agents/self-hosted-data-and-access#credentials-that-the-server-accepts). |
110| The [console on your server](https://platform.claude.com/docs/en/managed-agents/self-hosted/console), a webpage | Yes. To stop serving it, see [Turn off the console](https://platform.claude.com/docs/en/managed-agents/self-hosted/console#turn-off-the-console). | The same address and port as API requests | Nothing to load the page, for anyone who can reach it. To do anything in the console, a person signs in through your identity provider. |
111| The Prometheus metrics endpoint | No | `localhost:9464`, which only the same machine can reach | No credential |
112| The server’s listener for the [egress gateway](https://platform.claude.com/docs/en/managed-agents/self-hosted/agent-identity#environment-variable-credentials) | No | Port 8410 on every interface | The gateway’s key |
113113
114114More detail on the last two listeners:
115115
from line 122
122122
123123Each deployment serves one tenant at one trust level. Environments in one deployment don’t keep trust levels apart. The server API key reaches every environment. Every caller with a role can run sessions in every environment, with whatever network and files that environment’s workers can reach.
124124
125| To keep apart | Do this |
126| ----------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
127| Tenants | Give each tenant its own deployment, with its own database, server API key, and workers. |
128| Workloads at different trust levels | Give each trust level its own deployment, set up as for a tenant. Examples are trusted and untrusted code, or workers that reach systems that only some callers may use. |
129| Callers in a deployment | Turn on [single sign-on](https://platform.claude.com/docs/en/managed-agents/self-hosted/configure#single-sign-on), map groups to the `developer` or `user` role, and keep the server API key for administrators. [What each role can do](https://platform.claude.com/docs/en/managed-agents/self-hosted/configure#what-each-role-can-do) shows what those callers see. |
125| To keep apart | Do this |
126| ----- | ----- |
127| Tenants | Give each tenant its own deployment, with its own database, server API key, and workers. |
128| Workloads at different trust levels | Give each trust level its own deployment, set up as for a tenant. Examples are trusted and untrusted code, or workers that reach systems that only some callers may use. |
129| Callers in a deployment | Turn on [single sign-on](https://platform.claude.com/docs/en/managed-agents/self-hosted/configure#single-sign-on), map groups to the `developer` or `user` role, and keep the server API key for administrators. [What each role can do](https://platform.claude.com/docs/en/managed-agents/self-hosted/configure#what-each-role-can-do) shows what those callers see. |
130130
131131### Secret managers, single sign-on, and model gateways
132132
No line in this hunk matches that.