One read of Claude Documentationclaude-docs-20261203T210705Z
4 pages moved out of 299 read.
Pages moved
4
significant first
Pages read
299
in this capture
Captured
21:07 UTC
Corpus hash
209e46f44c6c
corpus-hash
What this read moved
1-4 of 4third-party/claude-desktop/admin-console-claude-code Changed · +180 / -38 lines
### Check the base URL of a cloud provider ### Add hooks and a status line as JSON ### Check your hooks on every computer ### Name your organization on computers that need an API key
from line 17
1717
1818Signing in is each developer's choice. If a developer doesn't sign in, or signs in with other credentials, your settings aren't applied. The console can't require the sign-in. A small managed settings file on the developer's computer can, but that file also stops Claude Desktop from working on that computer. See [Require the sign-in with managed settings](#require-the-sign-in-with-managed-settings).
1919
20While a terminal uses your connection, model requests and their content go from the developer's terminal to your provider or gateway. If you set an OpenTelemetry collector, the terminal also sends it telemetry, with the content that you selected. Claude Code contacts Anthropic for the sign-in, for your settings, and for a few other things, such as its own telemetry. For details, see [Where data goes](https://claude.com/docs/third-party/claude-desktop/admin-console-claude-code-reference.md#where-data-goes).
20While a terminal uses your connection, model requests and their content go from the developer's terminal to your provider or gateway, or to your provider's base URL if you set one. If you set an OpenTelemetry collector, the terminal also sends it telemetry, with the content that you selected. Claude Code contacts Anthropic for the sign-in, for your settings, and for a few other things, such as its own telemetry. For details, see [Where data goes](https://claude.com/docs/third-party/claude-desktop/admin-console-claude-code-reference.md#where-data-goes).
2121
2222## Which settings take priority
2323
from line 44
4444* You're an Owner or Primary Owner of the organization
4545* You saved the **Connection** page under **Organization settings > Desktop 3P**
4646* Your developers are members of your organization, like your Claude Desktop users
47* Your developers have Claude Code 2.1.331 or later, and the same version of the VS Code extension. Earlier versions ignore the console or follow only part of it.
47* Your developers have Claude Code 2.1.336 or later, and the same version of the VS Code extension. Earlier versions ignore the console or follow only part of it.
4848* Developers on Claude Code's [`stable` release channel](https://code.claude.com/docs/en/setup#configure-release-channel) switch to `latest`, unless `stable` has reached that version. `stable` is about a week behind `latest`. Homebrew's `claude-code` cask and the apt, dnf, and apk install commands in Claude Code's docs use `stable`.
49* Your developers have access to your provider. The sign-in tells Claude Code where to send requests, but it doesn't give the developer access. With a cloud provider, each developer needs cloud credentials. With a gateway, each developer must be able to sign in to it.
49* Your developers have access to your provider. The sign-in tells Claude Code where to send requests, but it doesn't give the developer access. With a gateway, or an [Amazon Bedrock proxy that uses **Identity provider sign-in (OIDC)**](https://claude.com/docs/third-party/claude-desktop/bedrock.md#sign-in-with-your-identity-provider), each developer must be able to sign in to the gateway or proxy. With any other cloud provider connection, each developer needs cloud credentials.
5050* If you use a **Helper script** on the **Connection** page or an **OTLP headers helper script** on the **Telemetry & updates** page, you [installed it for Claude Code in the terminal](https://claude.com/docs/third-party/claude-desktop/credential-helper.md#install-the-helper-for-claude-code-in-the-terminal). A script that works in Claude Desktop can fail in the terminal.
5151* The developer's terminal can reach `api.anthropic.com`, `platform.claude.com`, and your OpenTelemetry collector, if you set one
52* If you use Amazon Bedrock in AWS GovCloud with no **Bedrock base URL**, the developer's terminal can reach the FIPS endpoints, `bedrock-runtime-fips.<region>.amazonaws.com` and `bedrock-fips.<region>.amazonaws.com`. Claude Desktop uses the same endpoints. Versions before 2.1.336 use `bedrock-runtime.<region>.amazonaws.com` and `bedrock.<region>.amazonaws.com`, so allow both sets of hosts while developers update.
5253* The developer's browser can reach `claude.com`, `claude.ai`, `platform.claude.com`, `hcaptcha.com`, `*.hcaptcha.com`, and, if your organization uses single sign-on, `sso.claude.com`
5354
5455Then follow these steps in order:
5556
56571. [Review the settings you already saved](#review-the-settings-you-already-saved).
572. If you use a gateway, [prepare your gateway](#prepare-your-gateway).
582. If you use a gateway, or an Amazon Bedrock proxy that uses **Identity provider sign-in (OIDC)**, [prepare your gateway](#prepare-your-gateway).
58593. If developers' computers have Claude Code managed settings, [move them into the console](#move-your-managed-settings-into-the-console).
59604. [Turn on sign-in from Claude Code](#turn-on-sign-in-from-claude-code), for a pilot group first if you can. If you can't, choose a few developers as your pilot.
60615. If developers' computers have Claude Code managed settings, [remove them](#remove-the-managed-settings-from-the-computers) from the pilot developers' computers. If you need to keep some, [keep managed settings beside the console](#keep-managed-settings-beside-the-console) instead.
from line 75
7475* **Allowed plugin MCP servers**, on the **Connectors** page: if you filled this in, Claude Code ignores the MCP servers that developers or their projects set up themselves
7576* **Block nonessential telemetry**, on the **Telemetry & updates** page: if this is on, Claude Code turns off its automatic updates
7677* **Model list**, on the **Connection** page: developers can pick only the models on your list
77* **Bedrock base URL**, or the same field for another cloud provider, on the **Connection** page: if you filled this in, Claude Code in the terminal uses the provider set on the computer instead of your connection, and it doesn't start without one. In that case, you can't stop deploying managed settings, so [keep them beside the console](#keep-managed-settings-beside-the-console).
78* **Bedrock base URL**, or the same field for another cloud provider, on the **Connection** page: if you filled this in, Claude Code sends model requests to that address. See [Check the base URL of a cloud provider](#check-the-base-url-of-a-cloud-provider).
7879
7980For the full list of fields that Claude Code follows, see [Console settings that Claude Code follows](https://claude.com/docs/third-party/claude-desktop/admin-console-claude-code-reference.md#console-settings-that-claude-code-follows).
8081
82### Check the base URL of a cloud provider
83
84If you filled in **Bedrock base URL**, or the same field for another cloud provider, Claude Code sends model requests to that address, as Claude Desktop does. Versions before 2.1.336 use the provider set on the computer, and don't start if the computer sets none.
85
86Check these points:
87
88* **Who runs the address**: whoever runs it receives developers' prompts and what signs each request. That's a token from your **Helper script** or identity provider, a Google Cloud or Azure token, or an AWS signature and session token. It can come from a developer's own cloud sign-in.
89* **Redirects**: enter the final address, because Claude Code doesn't follow a redirect of a model request to another server
90* **The approval prompt**: each developer [approves the address](#what-developers-see-at-sign-in) before an interactive terminal session uses it. Tell developers to expect the prompt.
91* **Sign-in through your identity provider**: if developers sign in to the address this way, [prepare your gateway](#prepare-your-gateway) first
92* **Managed settings on developers' computers**: a cloud credential or custom request headers in the managed settings can stop Claude Code from using your connection. See [Managed settings that conflict with the console](https://claude.com/docs/third-party/claude-desktop/admin-console-claude-code-reference.md#managed-settings-that-conflict-with-the-console).
93
8194### Add Claude Code settings as JSON
8295
83The **Claude Code** page takes JSON in the same format as `managed-settings.json`. Use it for restrictions that have no console field, such as deny rules or a list of blocked models.
96The **Claude Code** page takes JSON in the same format as `managed-settings.json`. Use it for restrictions that have no console field, such as deny rules or a list of blocked models. You can also [add hooks and a status line](#add-hooks-and-a-status-line-as-json).
8497
8598Go to **Organization settings > Products > Claude Code**, enter the settings as a JSON object, and click **Save changes**. This example denies reads of the `secrets` folder in the current directory, blocks one model, and turns off workflows:
8699
from line 107
94107}
95108```
96109
97Unlike `managed-settings.json`, the JSON takes only [a fixed list of settings](https://claude.com/docs/third-party/claude-desktop/admin-console-claude-code-reference.md#settings-that-claude-code-applies), and Claude Code ignores the rest. No setting in the JSON can grant a permission, run a command, sign in, or choose a provider or a model. The console doesn't check the JSON against that list. You see what Claude Code ignored when you [check that your settings apply](#check-that-your-settings-apply).
110Unlike `managed-settings.json`, the JSON takes only [a fixed list of settings](https://claude.com/docs/third-party/claude-desktop/admin-console-claude-code-reference.md#settings-that-claude-code-applies), and Claude Code ignores the rest. Apart from [`hooks` and `statusLine`](#add-hooks-and-a-status-line-as-json), no setting in the JSON can run a command or grant a permission. Allow rules and the default permission mode in the JSON don't apply. No setting in the JSON can sign in, choose a provider, or choose a model.
98111
112A warning under the editor names the settings that Claude Code ignores. To see what a developer's version of Claude Code ignored, [check that your settings apply](#check-that-your-settings-apply).
113
99114The JSON doesn't apply to Code sessions in Claude Desktop. Those sessions follow the fields on the **Desktop 3P** pages.
100115
116### Add hooks and a status line as JSON
117
118The JSON on the **Claude Code** page, at **Organization settings > Products > Claude Code**, can also set [`hooks`](https://code.claude.com/docs/en/hooks) and `statusLine`. Both settings run commands on the developer's computer. Claude Code applies them as managed settings and doesn't ask the developer first.
119
120This example runs a program before Claude uses its Write, Edit, or NotebookEdit tool, and blocks the change if the program fails:
121
122```json theme={null}
123{
124 "hooks": {
125 "PreToolUse": [
126 {
127 "matcher": "Write|Edit|NotebookEdit",
128 "hooks": [
129 {
130 "type": "command",
131 "command": "/usr/local/bin/license-scan",
132 "args": ["--stdin"],
133 "onFailure": "block"
134 }
135 ]
136 }
137 ]
138 }
139}
140```
141
142After a developer starts Claude Code again, the **Managed settings (remote)** row of `/status` in Claude Code names which of the two settings Claude Code took from your JSON. It names `hooks` even if Claude Code couldn't read them, and the settings error at the start says so. To see every computer, [check your hooks on every computer](#check-your-hooks-on-every-computer).
143
144Check these points:
145
146* **Check what you already saved**: values that you saved for these two settings apply as soon as a developer has Claude Code 2.1.336 or later. Check the JSON on the **Claude Code** page and in each group's policy.
147* **Know which computers accept your organization's commands**: a computer applies the two settings only if it [accepts your organization's commands](https://claude.com/docs/third-party/claude-desktop/admin-console-claude-code-reference.md#settings-that-run-commands). A computer with no managed settings accepts them, unless another organization's commands ran in the developer's user account in the last 30 days. If your JSON sets `hooks`, Claude Code doesn't use your connection on a computer that doesn't accept them, and doesn't start there unless the developer or the computer sets a provider.
148* **Check the Gateway-managed Claude Code switch**: if [**Gateway-managed Claude Code**](https://claude.com/docs/third-party/claude-desktop/admin-console-claude-code-reference.md#credentials-and-gateways) is on with **Interactive sign-in** and no identity provider, the gateway's own settings apply after a developer runs `/login` in Claude Code. Neither setting then applies, on any computer.
149* **Know that a hook can approve a tool call**: if your hook answers `allow`, Claude Code runs the call without asking the developer, unless a deny or ask rule matches the call. `sandbox.enabled` in your JSON doesn't turn the sandbox on. A Bash command that your hook approves runs outside the sandbox, unless **Allowed egress hosts** lists hosts, with no `*` entry, or the computer's managed settings turn the sandbox on. For the limits of the sandbox, see [Settings that run commands](https://claude.com/docs/third-party/claude-desktop/admin-console-claude-code-reference.md#settings-that-run-commands).
150* **Write each hook with `args` and a full path**: Claude Code then starts the program directly, without a shell
151* **Install the program yourself**: the console delivers the setting but doesn't install the program. If the program is missing and `onFailure` is `block`, Claude Code blocks each tool call that the hook matches.
152* **Plan for each operating system**: a hook in the organization-wide JSON applies on macOS, Linux, and Windows alike. If the program's path differs by operating system, and your organization has a parent organization, set the hook in the policy of a group whose developers all use that system. The policy's JSON is in its **Claude Code** section, under **Organization settings > People > Permission policies**.
153* **Try your hooks in one group's policy first, if your organization has a parent organization**: if a `PreToolUse` hook has a value that Claude Code can't read, Claude Code loads none of your hooks. Claude Code shows the developer a settings error at each start, and the developer can continue without your hooks. A misspelled name inside a hook, such as `onfailure`, or a misspelled matcher gives no warning, so test a change that your hook must block.
154* **Know how a developer can work without your hooks**: a developer who signs out, or who starts `claude` with `--bare`, uses Claude Code without your hooks. To stop both, [require the sign-in with managed settings](#require-the-sign-in-with-managed-settings). Claude Code then refuses `claude --bare`, and refuses a session on a cloud provider or a gateway for a developer who isn't signed in. For other ways around your settings, see [Security considerations](https://claude.com/docs/third-party/claude-desktop/admin-console-claude-code-reference.md#security-considerations).
155
101156## Prepare your gateway
102157
103Skip this section if your **Connection** page uses a direct cloud provider rather than a gateway.
158Follow these steps if your **Connection** page uses a gateway, or an Amazon Bedrock proxy with **Identity provider sign-in (OIDC)** as the **Credential kind**. An Amazon Bedrock proxy is a server that you enter as the **Bedrock base URL**, other than Amazon Bedrock's own endpoints. With **Identity provider sign-in (OIDC)**, developers sign in to the proxy with `/login` in Claude Code, and they need no AWS credentials. For any other cloud provider connection, skip this section.
104159
160> [!WARNING]
161>
162> If Claude Desktop signs in to an Amazon Bedrock proxy through your identity provider, and the sign-in flow isn't `broker`, register the terminal's redirect URI before developers use Claude Code 2.1.336 or later. Until you register it, developers who are signed in to your organization can't sign in to the proxy. Claude Code then refuses each prompt with a message that begins `You are not signed in to your organization's gateway`. After you register the URI, developers run `/login` in Claude Code.
163
105164**1. Register the redirect URI**
106165
107166If developers sign in through your identity provider, add the terminal's redirect URI to the application that you registered there for Claude Desktop's single sign-on. The URI that you registered for Claude Desktop doesn't work for the terminal. Keep both.
from line 171
112171
113172**2. Check the sign-in flow**
114173
115If your sign-in flow is `broker`, Claude Code in the terminal can't use your gateway until you [allow browser sign-in](https://claude.com/docs/third-party/claude-desktop/entra-broker.md#allow-browser-sign-in-where-your-gateway-uses-the-entra-broker). Follow those steps now, but leave the last one, **Turn on both switches**, until you [turn on sign-in from Claude Code](#turn-on-sign-in-from-claude-code).
174If your sign-in flow is `broker`:
116175
176* **With a gateway**: Claude Code in the terminal can't use your gateway until you [allow browser sign-in](https://claude.com/docs/third-party/claude-desktop/entra-broker.md#allow-browser-sign-in-where-your-gateway-uses-the-entra-broker). Follow those steps now, but leave the last one, **Turn on both switches**, until you [turn on sign-in from Claude Code](#turn-on-sign-in-from-claude-code).
177* **With an Amazon Bedrock proxy**: Claude Code in the terminal can't use the proxy. It uses the provider set on the computer, so each developer needs a provider and credentials there.
178
117179## Move your managed settings into the console
118180
119181Skip this section if developers' computers have no Claude Code managed settings.
from line 186
124186
125187Go through your `managed-settings.json`, MDM profile, or registry policy, and put each setting where the console keeps it:
126188
127* **Provider, region, project or resource, and custom request headers**: check that the **Connection** page has them
189* **Provider, region, project or resource, base URL, and custom request headers**: check that the **Connection** page has them
128190* **`availableModels`**: use the **Model list** on the **Connection** page. Put your default `model` first.
129191* **The sandbox and the hosts it allows**: use **Allowed egress hosts** on the **Capabilities** page. The sandbox settings in the JSON work only if this field lists hosts, with no `*` entry.
130192* **Restrictions**: copy them into the [JSON on the **Claude Code** page](#add-claude-code-settings-as-json). Examples are `permissions.deny`, `permissions.ask`, `deniedModels`, `deniedMcpServers`, and `sandbox.filesystem.denyRead`. For the rest, see [Settings that Claude Code applies](https://claude.com/docs/third-party/claude-desktop/admin-console-claude-code-reference.md#settings-that-claude-code-applies). The JSON applies to every developer. For settings that differ by team, use a group's policy.
193* **Hooks and `statusLine`**: copy them into the JSON too. See [Add hooks and a status line as JSON](#add-hooks-and-a-status-line-as-json).
131194* **`apiKeyHelper`**: use the **Helper script** on the **Connection** page. It takes the path to a program, not a shell command. You still need to [install that program on each computer](https://claude.com/docs/third-party/claude-desktop/credential-helper.md#install-the-helper-for-claude-code-in-the-terminal).
132* **OpenTelemetry export (`CLAUDE_CODE_ENABLE_TELEMETRY` and the `OTEL_` variables)**: use **OTLP endpoint** and the other OTLP fields on the **Telemetry & updates** page. If you [keep managed settings beside the console](#keep-managed-settings-beside-the-console), leave these variables in them until each computer has Claude Code 2.1.331. Earlier versions export only where these variables say.
195* **OpenTelemetry export (`CLAUDE_CODE_ENABLE_TELEMETRY` and the `OTEL_` variables)**: use **OTLP endpoint** and the other OTLP fields on the **Telemetry & updates** page. If you [keep managed settings beside the console](#keep-managed-settings-beside-the-console), leave these variables in them until each computer has Claude Code 2.1.331, or 2.1.336 if the computer uses `allowedAdminConsoleOrgUUIDs`. Earlier versions export only where these variables say.
133196
134197The fields on the **Desktop 3P** pages also apply to Claude Desktop, so check that each value also works in Claude Desktop.
135198
from line 205
142205Developers set these themselves from now on:
143206
144207* **Proxy and certificate variables**: ask developers to set `HTTPS_PROXY` or `NODE_EXTRA_CA_CERTS` in their shell or in their own settings file
145* **Cloud credentials in `env`**: each developer needs their own. The **Connection** page can name an AWS profile, a credentials file, or a helper script, but these must already be on the computer.
146* **Allow rules (`permissions.allow`), the default permission mode, added directories, `statusLine`, `skillOverrides`, `claudeMdExcludes`, and `autoMemoryEnabled`**: the developer's own settings decide these, even if you keep managed settings
208* **Cloud credentials in `env`**: each developer needs their own, unless they sign in to an Amazon Bedrock proxy through your identity provider. The **Connection** page can name an AWS profile, a credentials file, or a helper script, but these must already be on the computer.
209* **Allow rules (`permissions.allow`), the default permission mode, added directories, `skillOverrides`, `claudeMdExcludes`, and `autoMemoryEnabled`**: the developer's own settings decide these, even if you keep managed settings
147210
148211These need managed settings on the computer. If you can't do without one, [keep managed settings beside the console](#keep-managed-settings-beside-the-console):
149212
150* **Requiring the sign-in**: a managed settings file applies to every session on the computer. Console settings apply only while the developer is signed in, and a sign-in lasts about a month. Without a file, a developer can sign in to another organization, or not sign in at all. See [Require the sign-in with managed settings](#require-the-sign-in-with-managed-settings).
151* **Hooks, and the plugins and MCP servers that you install for developers**: the console can't install them in the terminal
213* **Requiring the sign-in**: a managed settings file applies to every session on the computer. Console settings apply only while the developer is signed in, and a sign-in lasts up to about a month. Without a file, a developer can sign in to another organization, or not sign in at all. See [Require the sign-in with managed settings](#require-the-sign-in-with-managed-settings).
214* **The plugins and MCP servers that you install for developers**: the console can't install them in the terminal
152215* **`requiredMinimumVersion`, `cleanupPeriodDays`, `allowedProviders`, and the managed `CLAUDE.md` text**: the console has no place for these. Claude Code also ignores anything else that isn't on [the JSON's list](https://claude.com/docs/third-party/claude-desktop/admin-console-claude-code-reference.md#settings-that-claude-code-applies).
153216* **`strictKnownMarketplaces`, `allowManagedPermissionRulesOnly`, `sandbox.filesystem.allowManagedReadPathsOnly`, and Auto mode's deny rules (`autoMode`)**: Claude Code ignores these in the JSON
154* **A private address for your provider, such as a VPC endpoint**: your connection overrides it, even if you keep managed settings, so requests go to the provider's default address. To keep the private address, follow **A private endpoint** under [Managed settings that conflict with the console](https://claude.com/docs/third-party/claude-desktop/admin-console-claude-code-reference.md#managed-settings-that-conflict-with-the-console).
155217
156218After you remove the managed settings from a computer, their rules also stop applying in Code sessions in Claude Desktop, unless a field on the **Desktop 3P** pages sets them.
157219
from line 223
161223
162224* **For a pilot group, if your organization has a parent organization**: go to **Organization settings > People > Permission policies**, and open the group's policy. In the **Claude Code** section, turn on the switch, and click **Save changes**.
163225* **For everyone**: go to **Organization settings > Products > Claude Code**, turn on the switch, and click **Save changes**
164* **If your sign-in flow is `broker`**: take the last step of [Allow browser sign-in where your gateway uses the Entra broker](https://claude.com/docs/third-party/claude-desktop/entra-broker.md#allow-browser-sign-in-where-your-gateway-uses-the-entra-broker) instead. It turns on both switches, for a group or for everyone.
226* **If your gateway's sign-in flow is `broker`**: take the last step of [Allow browser sign-in where your gateway uses the Entra broker](https://claude.com/docs/third-party/claude-desktop/entra-broker.md#allow-browser-sign-in-where-your-gateway-uses-the-entra-broker) instead. It turns on both switches, for a group or for everyone.
165227
166228The switch is off by default, and it doesn't affect Claude Desktop. While it's off, a developer who tries to sign in sees a message: `You chose an organization that is managed in Anthropic's Enterprise Admin Console`, and Claude Code doesn't save the sign-in. If you turn the switch off later, Claude Code won't start for signed-in developers, and it shows why.
167229
from line 241
179241Send each developer a message with these items.
180242
181243* The name of the organization to select in the browser
182* How to get credentials for your provider, or how to sign in to your gateway
244* How to get credentials for your provider, or how to sign in to your gateway or Amazon Bedrock proxy
183245* How to set a proxy or a certificate, if your managed settings used to set one
184246* What your OpenTelemetry collector gets from their sessions, if you set one
185247* The sign-in steps, and what the sign-in changes
from line 251
189251```text wrap theme={null}
190252We now manage Claude Code from our admin console. Please sign in on each computer you use.
191253
1921. Install or update the claude command to 2.1.331 or later. If the update stops at an earlier version, switch to the latest release channel (https://code.claude.com/docs/en/setup#configure-release-channel). If you use the VS Code extension, update it too.
2541. Install or update the claude command to 2.1.336 or later. If the update stops at an earlier version, switch to the latest release channel (https://code.claude.com/docs/en/setup#configure-release-channel). If you use the VS Code extension, update it too.
1932552. <How to get credentials for our provider. How to set our proxy or certificate, if you need one.>
1942563. In your terminal, run: claude auth login
1952574. The browser may ask you to sign in with your email. Select <organization name> and click Authorize. If the browser shows a code, paste it into the terminal.
1962585. Check that the terminal prints "Signed in to the organization". If it also says that the settings won't apply on this computer, send us that message. If it prints "Login successful." instead, you picked another account, so run the command again.
1976. Close any open Claude Code sessions. Then run: claude
1987. <If our gateway has its own sign-in:> In Claude Code, run /login and follow the steps.
2596. Close any open Claude Code sessions. Then run: claude <If we use a gateway or set a base URL:> Claude Code asks you to approve our address. Select: Yes, I trust these settings
2607. <If our gateway or Amazon Bedrock proxy has its own sign-in:> In Claude Code, run /login and follow the steps. <If that sign-in goes through our identity provider:> If you use VS Code, run this in a terminal instead: claude auth login --organization-gateway
199261
200262While you're signed in, every Claude Code session on this computer uses our provider and settings, in any project, in the terminal and in VS Code. Remote Control, cloud sessions, voice mode, and connectors from your claude.ai account aren't available.
201263
202<If we set an OpenTelemetry collector:> Claude Code also sends telemetry about your sessions to us. It includes your computer user name and usage figures such as token counts. <If End-user attribution is on:> It also includes your sign-in name or email. <If we capture content:> It also includes your prompts, Claude's responses, and tool inputs and outputs. We choose what it includes. To see where it goes and what it includes, run /status in Claude Code and read the Telemetry row.
264<If we set an OpenTelemetry collector:> Claude Code also sends telemetry about your sessions to us. It includes your computer user name and usage figures such as token counts. <If End-user attribution is on:> It also includes your sign-in name or email. <If we collect computer names:> It also includes your computer's name and ID. <If we capture content:> It also includes your prompts, Claude's responses, and tool inputs and outputs. We choose what it includes. To see where it goes and what it includes, run /status in Claude Code and read the Telemetry row.
203265
204The sign-in lasts about a month. When you see "no usable organization sign-in", run claude auth login again.
266The sign-in lasts up to about a month. When Claude Code says that your organization sign-in has ended, run claude auth login again.
205267```
206268
207269### What developers see at sign-in
from line 270
208270
209271Developers may also see these, or ask you about them:
210272
211* **Managed settings require approval**: Claude Code asks the developer to approve some of your settings before it uses them, such as your gateway's address. If they decline, Claude Code exits and asks again at the next start.
273* **Managed settings require approval**: in an interactive terminal session, Claude Code asks the developer to approve some of your settings before it uses them, such as your gateway's address or your provider's base URL. To approve, the developer selects **Yes, I trust these settings**. If they decline, Claude Code exits and asks again at the next start. `claude -p` and the VS Code extension don't ask, and they use the settings immediately.
212274* **Select login method**: the developer selects **Your organization** if it's listed, and otherwise **Claude account with subscription**. Then they select your organization in the browser again.
213275* **`Could not load AWS credentials`, or the same for Google Cloud or Azure**: the developer has no working credentials for your cloud provider
214* **A gateway that has its own sign-in**: the developer signs in a second time, with `/login` in Claude Code. Until they do, Claude Code refuses each prompt and tells them what to do.
276* **A gateway or Amazon Bedrock proxy that has its own sign-in**: the developer signs in a second time, with `/login` in Claude Code. Until they do, Claude Code refuses each prompt and tells them what to do. If the sign-in goes through your identity provider, developers who use VS Code run `claude auth login --organization-gateway` in a terminal instead. With an Amazon Bedrock proxy, developers who use VS Code then start the conversation again.
277* **The VS Code panel stays on its sign-in screen, with a gateway**: the developer updates the VS Code extension to 2.1.336 or later
215278* **How to get their own account back**: the developer runs `claude auth login` and selects their own account. To sign out of everything, they run `claude auth logout`. Developers who use VS Code run these commands in a terminal.
216279
217280## Check that your settings apply
from line 283
220283
221284* **Setting sources**: the row includes `Enterprise managed settings (remote)`. That's Claude Code's name for your console settings.
222285* **API provider**, if you use a cloud provider: the row names your provider and ends with `(chosen by your organization)`
286* **Bedrock base URL**, or the same row for another cloud provider, if you set a base URL: the row shows your address
223287* **Anthropic base URL**, if you use a gateway: the row shows your gateway's address, and no row says that your connection `isn't used`
288* **Gateway sign-in**, if developers sign in through your identity provider: the row shows the developer's sign-in name and your identity provider's host
224289* **Telemetry**, if you filled in **OTLP endpoint**: the row shows your collector's host with `(set by your organization)` and the content that Claude Code sends
225* **Managed settings (remote)**: this row appears only if Claude Code has something to tell you. It gives the cause of any problem, and it names the settings in your JSON that Claude Code ignored.
290* **Managed settings (remote)**: this row appears only if Claude Code has something to tell you. It gives the cause of any problem, and it names the settings in your JSON that Claude Code ignored. It also names which [settings that run commands](https://claude.com/docs/third-party/claude-desktop/admin-console-claude-code-reference.md#settings-that-run-commands) Claude Code took from your JSON. If it says that your connection `isn't used`, it names the cause. See [A gateway or base URL that Claude Code can't use](https://claude.com/docs/third-party/claude-desktop/admin-console-claude-code-reference.md#credentials-and-gateways), [Managed settings that conflict with the console](https://claude.com/docs/third-party/claude-desktop/admin-console-claude-code-reference.md#managed-settings-that-conflict-with-the-console), or, if it names `hooks`, [Settings that run commands](https://claude.com/docs/third-party/claude-desktop/admin-console-claude-code-reference.md#settings-that-run-commands).
226291
227292The console doesn't list the developers who signed in from Claude Code, and the **Desktop usage** page doesn't show sessions in the terminal or in VS Code.
228293
294### Check your hooks on every computer
295
296`/status` in Claude Code shows one computer. To see every computer that sends telemetry, use your own OpenTelemetry collector. Fill in **OTLP endpoint** on the **Telemetry & updates** page. Then add this `env` entry to your JSON on the **Claude Code** page, beside your `hooks`, so that the data includes the computer's name. Claude Code doesn't send the name to Anthropic.
297
298```json theme={null}
299{
300 "env": {
301 "OTEL_RESOURCE_INCLUDE_HOST": "1"
302 }
303}
304```
305
306Each session then sends these log events to your collector. A record's body is the event's name, such as `claude_code.hook_registered`. Its `event.name` attribute is the same name without `claude_code.`.
307
308| Event | What it shows | Attributes to use |
309| :- | :- | :- |
310| `claude_code.managed_settings_resolved` | Claude Code received your console settings | `managed_settings.trigger` is `startup`, and `managed_settings.sources` includes `remote` |
311| `claude_code.hook_registered`, one for each hook | Claude Code loaded a managed hook | `hook_source` is `policySettings`, with `hook_event` and `hook_type` |
312| `claude_code.hook_execution_complete` | Claude Code ran the hooks for an event | `hook_event`, `hook_name`, `num_success`, `num_blocking`, `num_non_blocking_error` |
313
314`hook_name` holds the event and the tool, such as `PreToolUse:Write`. Each record also has `session.id`, `process.owner`, and, unless **End-user attribution** is off, `enduser.id`. The resource of each record has `host.name`, and the Claude Code version as `service.version`. For the full list of attributes, see [Monitoring](https://code.claude.com/docs/en/monitoring-usage) in the Claude Code docs.
315
316Use the events to answer these questions for the period that you check:
317
318* **Which computers have the hook**: list the `host.name` values of the `hook_registered` events whose `hook_source` is `policySettings` and whose `hook_event` is your hook's event
319* **Which sessions started without the hook**: find each `session.id` that has a `managed_settings_resolved` event whose `managed_settings.trigger` is `startup`, but no `hook_registered` event for your hook. Group these sessions by `service.version`, because Claude Code versions before 2.1.336 ignore your hooks. These versions also leave out `host.name`, so use `enduser.id` or `process.owner` for them. On 2.1.336 or later, one cause is a computer that doesn't [accept your organization's commands](https://claude.com/docs/third-party/claude-desktop/admin-console-claude-code-reference.md#settings-that-run-commands).
320* **Whether the hook ran and blocked**: for each `host.name`, total each of `num_success`, `num_blocking`, and `num_non_blocking_error` of the `hook_execution_complete` events whose `hook_event` is your hook's event. The counts arrive as text, so convert them to numbers first.
321
322The events have these limits:
323
324* **A session that sends nothing doesn't appear**: this covers a developer who is signed out, and the sessions under **Which sessions send** in [Where data goes](https://claude.com/docs/third-party/claude-desktop/admin-console-claude-code-reference.md#where-data-goes). A signed-out developer's sessions run without your hooks, even on a computer that's on your list. Compare the computers in your collector with your organization's own list of computers.
325* **The events don't tell your hook from the computer's own**: `hook_registered` gives only the hook's event and type, not its program. A hook from the computer's managed settings also shows `policySettings`.
326* **`hook_execution_complete` counts every hook for the event together**: this includes the developer's own hooks, unless you set `allowManagedHooksOnly`
327* **`num_blocking` also counts a hook that didn't run**: with `onFailure` set to `block`, a missing program or a timeout blocks the tool call
328
329To stop Claude Code versions that ignore your hooks from starting, set `requiredMinimumVersion` in the computer's managed settings. For the steps, see [Require the sign-in with managed settings](#require-the-sign-in-with-managed-settings).
330
229331## When setting changes take effect
230332
231333Claude Code downloads your current settings every time it starts. An open session checks again every hour and applies most changes without a restart. A change to your connection, your **Model list**, or your OpenTelemetry export applies the next time the developer starts Claude Code.
from line 336
234336
235337## When a sign-in ends
236338
237A sign-in lasts about a month. When it ends, Claude Code may stop with the message `no usable organization sign-in`. If the developer runs `claude` again without signing in, it can start with their own Claude login or API key. Their requests then go to the Anthropic API, without your settings.
339A sign-in lasts up to about a month. After the sign-in ends, Claude Code doesn't start. It prints a message that says that the organization sign-in has ended, and exits. The same thing happens at each later start until the developer takes one of these steps:
238340
341* **Sign in to your organization again**: the developer runs `claude auth login` in their terminal and selects your organization. In VS Code, the developer clicks **Sign in again** in the chat tab and selects your organization. If VS Code doesn't show **Sign in again**, the developer uses the terminal.
342* **Use their own account**: the developer runs `claude auth login` in their terminal and selects their own account, if the computer's managed settings allow that account
343* **Sign out**: the developer runs `claude auth logout` in their terminal. This command signs the developer out of all accounts and removes the developer's saved MCP server logins and plugin secrets.
344
345After the developer uses their own account or signs out, your console settings don't apply to Claude Code on that computer. On a computer whose managed settings set `enforceAnthropicSignIn`, the message names only the first step.
346
347Plan for these cases:
348
349* **Computers with another provider**: after the sign-in ends, Claude Code doesn't switch to the developer's own cloud provider account, or to a provider or key in managed settings that name your organization. Claude Code doesn't start on these computers either.
350* **Scheduled jobs and CI jobs**: a job that runs under a developer's sign-in can't start Claude Code after the sign-in ends. The job gets the same message and exit code 1. To keep such a job running, run `claude auth login` again in the job's account about every three weeks. Or run `claude auth logout` in that account, and run the job without the sign-in, with a provider and managed settings on its computer.
351
352Versions before 2.1.336 refuse at most one start, and can then start without your connection.
353
239354## Remove a developer
240355
241356When a developer leaves, do these steps in order:
from line 357
242357
243358**1. Remove their access to your provider or gateway**
244359
245Removing them from the organization doesn't change that access. If they sign in to your gateway through an identity provider, revoke their sessions there.
360Removing them from the organization doesn't change that access. If they sign in to your gateway or Amazon Bedrock proxy through an identity provider, revoke their sessions there.
246361
247362**2. Ask them to sign out**
248363
from line 365
250365
251366**3. Remove them from the organization**
252367
253Anthropic then revokes the developer's sign-in, and later sessions don't use your connection. A session that's already open can keep using your connection until the developer exits it.
368Anthropic then revokes the developer's sign-in, and later sessions don't use your connection. If the developer didn't sign out, Claude Code then doesn't start on their computer until they run `claude auth logout` or sign in to their own account. A session that's already open can keep using your connection until the developer exits it.
254369
255370## Keep managed settings beside the console
256371
257Keep the computer's managed settings only if you need something that the console can't set. Add your organization's ID to them as `forceLoginOrgUUID`. The computer then follows your console too, and refuses other organizations.
372Keep the computer's managed settings only if you need something that the console can't set. Add your organization's ID to them as `forceLoginOrgUUID`. The computer then follows your console too, and refuses other organizations. If developers need an Anthropic API key, [name your organization on computers that need an API key](#name-your-organization-on-computers-that-need-an-api-key) instead.
258373
259374**1. Check what changes**
260375
from line 377
262377
263378**2. Ask developers to remove their Anthropic API keys**
264379
265Claude Code doesn't start a session that has `ANTHROPIC_API_KEY`, `ANTHROPIC_AUTH_TOKEN`, or `apiKeyHelper` on a computer that sets `forceLoginOrgUUID`. If your managed settings set `apiKeyHelper`, remove it from them too. A gateway on your **Connection** page doesn't need those keys. If a developer needs a key for a different gateway, leave `forceLoginOrgUUID` off that computer.
380Claude Code doesn't start a session that has `ANTHROPIC_API_KEY`, `ANTHROPIC_AUTH_TOKEN`, or `apiKeyHelper` on a computer that sets `forceLoginOrgUUID`. If your managed settings set `apiKeyHelper`, remove it from them too. A gateway on your **Connection** page doesn't need those keys. If developers still need one of them, skip the next step, and [name your organization on computers that need an API key](#name-your-organization-on-computers-that-need-an-api-key) instead.
266381
267382**3. Add forceLoginOrgUUID**
268383
from line 391
276391
277392If `forceLoginOrgUUID` already holds another organization's ID, list both: `"forceLoginOrgUUID": ["other-id", "your-id"]`.
278393
394### Name your organization on computers that need an API key
395
396With `forceLoginOrgUUID`, Claude Code doesn't start a session that has `ANTHROPIC_API_KEY`, `ANTHROPIC_AUTH_TOKEN`, or `apiKeyHelper`. If developers need one of these, name your organization in `allowedAdminConsoleOrgUUIDs` instead. `allowedAdminConsoleOrgUUIDs` requires Claude Code 2.1.336 or later. Earlier versions ignore it, so the computer ignores your console.
397
398After you [turn on sign-in from Claude Code](#turn-on-sign-in-from-claude-code), go to **Organization settings > Organization and access**, and copy the **Organization ID**, not the **Parent organization ID**. Add it to the managed settings:
399
400```json theme={null}
401{
402 "allowedAdminConsoleOrgUUIDs": ["xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"]
403}
404```
405
406Then change these settings beside it:
407
408* **`forceLoginOrgUUID`**: remove it. While it's set, Claude Code ignores `allowedAdminConsoleOrgUUIDs`.
409* **`forceLoginMethod`**: remove it, whatever its value. While it's set, Claude Code doesn't start a session that has an Anthropic API key.
410* **`parentSettingsBehavior`**: on a computer that also runs Claude Desktop on your provider, set it to `"merge"`. Without it, Claude Code ignores the settings that Claude Desktop passes to its sessions, including the sandbox for Code sessions.
411
412Claude Code then handles API keys and sign-ins this way:
413
414* **While a developer has never signed in, or has run `claude auth logout`**: Claude Code uses `ANTHROPIC_API_KEY`, `ANTHROPIC_AUTH_TOKEN`, or `apiKeyHelper`, unless the managed settings also set `enforceAnthropicSignIn`
415* **After a sign-in ends**: Claude Code doesn't start, even with a key, until the developer takes one of the steps in [When a sign-in ends](#when-a-sign-in-ends)
416* **While a developer is signed in**: the computer follows your console. While Claude Code uses your connection, requests go there, and Claude Code doesn't use the key. If Claude Code doesn't use your connection, a key for the Anthropic API stays unused, but a key beside an address that's set on the computer still works. Your hooks and MCP servers still get `ANTHROPIC_API_KEY` and `ANTHROPIC_AUTH_TOKEN`.
417* **Other organizations**: Claude Code refuses a sign-in to another organization that's managed in the console. `allowedAdminConsoleOrgUUIDs` doesn't limit claude.ai or Claude Console logins. While a developer isn't signed in to your organization, such a login to a Team or Enterprise organization can apply that organization's managed settings in place of the computer's hooks and deny rules.
418
419The computer's managed settings and your console settings combine as described in [Managed settings beside the console](https://claude.com/docs/third-party/claude-desktop/admin-console-claude-code-reference.md#managed-settings-beside-the-console). To confirm the setup, ask a developer on one of these computers to sign in and run `/status` in Claude Code. The **Setting sources** row includes `Enterprise managed settings (remote)`.
420
279421## Require the sign-in with managed settings
280422
281423The console alone can't require the sign-in. The console settings that Claude Code applies at sign-in are a client-side control, not a security boundary. If a developer signs out or never signs in, they can keep using Claude Code with their own provider, Claude login, or API key, and none of your settings apply.
from line 437
295437{
296438 "forceLoginOrgUUID": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
297439 "enforceAnthropicSignIn": true,
298 "requiredMinimumVersion": "2.1.331"
440 "requiredMinimumVersion": "2.1.336"
299441}
300442```
301443
302* **`forceLoginOrgUUID`**: makes the computer follow your console and refuse other organizations, as described in [Keep managed settings beside the console](#keep-managed-settings-beside-the-console). By itself, it doesn't require the sign-in. A developer who isn't signed in can still start a session on a cloud provider. Ask developers to remove their Anthropic API keys first, because Claude Code doesn't start a session that has one.
444* **`forceLoginOrgUUID`**: makes the computer follow your console and refuse other organizations, as described in [Keep managed settings beside the console](#keep-managed-settings-beside-the-console). By itself, it doesn't require the sign-in. A developer who never signed in, or who signed out with `claude auth logout`, can still start a session on a cloud provider. Ask developers to remove their Anthropic API keys first, because Claude Code doesn't start a session that has one. On a computer that uses `allowedAdminConsoleOrgUUIDs`, keep that setting in place of `forceLoginOrgUUID`.
303445* **`enforceAnthropicSignIn`**: a session on a cloud provider or a gateway starts only if the developer is signed in to your organization. Write `true` without quotation marks, or Claude Code doesn't start.
304446* **`requiredMinimumVersion`**: blocks earlier versions, including the ones that ignore `enforceAnthropicSignIn`. Developers on Claude Code's [`stable` release channel](https://code.claude.com/docs/en/setup#configure-release-channel) can't start Claude Code until that channel reaches this version. Move them to `latest` before you deploy this key.
305447
306448If you set a retention period under `HKCU` on Windows, add it to this file as `cleanupPeriodDays`. Claude Code ignores `HKCU` once the computer has managed settings.
307449
308To test the requirement, ask a developer who isn't signed in to run `claude`. Claude Code prints a message, `This computer's managed settings require a sign-in to Anthropic`, and exits. If Claude Code starts instead, check that its version is 2.1.331 or later, and that developers' accounts can read the file.
450To test the requirement, ask a developer who has never signed in, or who has run `claude auth logout`, to run `claude`. Claude Code prints a message, `This computer's managed settings require a sign-in to Anthropic`, and exits. If Claude Code starts instead, check that its version is 2.1.336 or later, and that developers' accounts can read the file.
309451
310452For other ways around your settings, see [Security considerations](https://claude.com/docs/third-party/claude-desktop/admin-console-claude-code-reference.md#security-considerations).
311453
third-party/claude-desktop/admin-console-claude-code-reference Changed · +57 / -21 lines
### Settings that run commands
from line 41
4141
4242## Claude Code settings as JSON
4343
44The JSON on the **Claude Code** page has the same format as `managed-settings.json`, but Claude Code applies only a fixed list of its settings. No setting in the JSON can grant a permission, run a command, sign in, or choose a provider or a model. To enter the JSON, see [Add Claude Code settings as JSON](https://claude.com/docs/third-party/claude-desktop/admin-console-claude-code.md#add-claude-code-settings-as-json).
44The JSON on the **Claude Code** page has the same format as `managed-settings.json`, but Claude Code applies only a fixed list of its settings. Apart from `hooks` and `statusLine`, which [run commands](#settings-that-run-commands), no setting in the JSON can run a command or grant a permission. Allow rules and the default permission mode in the JSON don't apply. No setting in the JSON can sign in, choose a provider, or choose a model. To enter the JSON, see [Add Claude Code settings as JSON](https://claude.com/docs/third-party/claude-desktop/admin-console-claude-code.md#add-claude-code-settings-as-json).
4545
4646### Settings that Claude Code applies
4747
from line 50
5050| Settings | Applied when the value is |
5151| - | - |
5252| `permissions.deny`, `permissions.ask` | A list of rules |
53| `hooks`, `statusLine` | Any value that `managed-settings.json` takes, on a [computer that accepts your organization's commands](#settings-that-run-commands) |
5354| `permissions.disableBypassPermissionsMode`, `permissions.disableAutoMode` | `"disable"` |
5455| `permissions.blockReadsOutsideWorkingDirectories` | `true` |
5556| `deniedModels`, `maxEffortLevel` | A list of models, or an effort level |
5657| `deniedMcpServers`, `disabledMcpjsonServers`, `allowedMcpServers`, `allowManagedMcpServersOnly` | A list, or `true` for `allowManagedMcpServersOnly`, which applies only with an `allowedMcpServers` list |
5758| `blockedMarketplaces` | A list of marketplace sources. An entry that gives only a name blocks nothing. |
58| `allowManagedHooksOnly` | `true` |
59| `allowManagedHooksOnly`, `disableAllHooks` | `true` |
5960| Switches such as `disableWorkflows`, `disableBundledSkills`, `disableSkillShellExecution`, and `disableClaudeAiConnectors` | `true` |
6061| `sandbox.filesystem.denyRead`, `sandbox.filesystem.denyWrite`, `sandbox.network.deniedDomains`, `sandbox.allowUnsandboxedCommands`, `sandbox.autoAllowBashIfSandboxed` | A list, or `false` for the last two |
6162| Variables in `env` that turn off a feature or telemetry to Anthropic, such as `DISABLE_TELEMETRY` and `CLAUDE_CODE_DISABLE_BACKGROUND_TASKS` | `1` or `true` |
6263| `CLAUDE_CODE_ENABLE_TELEMETRY` and the `OTEL_LOG_` variables in `env`, which can only turn OpenTelemetry or some of its logging off | `0` or `false` |
64| `OTEL_RESOURCE_INCLUDE_HOST` in `env`, which adds [the computer's name](#where-data-goes) to OpenTelemetry data | `1` or `true`, `0` or `false` |
6365| Timeouts and size limits in `env`, such as `BASH_MAX_TIMEOUT_MS` | A whole number |
6466| `companyAnnouncements` | A list of text |
6567
66Claude Code ignores every setting that isn't on its list, such as `permissions.allow`, `model`, `hooks`, `forceLoginOrgUUID`, `requiredMinimumVersion`, and `cleanupPeriodDays`. It also ignores a switch that loosens a limit, such as `disableWorkflows: false`.
68Claude Code ignores every setting that isn't on its list, such as `permissions.allow`, `permissions.defaultMode`, `model`, `forceLoginOrgUUID`, `requiredMinimumVersion`, and `cleanupPeriodDays`. It also ignores a switch that loosens a limit, such as `disableWorkflows: false`.
6769
6870Some settings have conditions:
6971
from line 76
7476* **A deny setting that isn't a list**, such as `"deniedModels": 5`: it denies nothing
7577* **A setting that a group's policy also sets**: in the JSON, lists such as `permissions.deny` add together, so a policy can't remove an organization-wide deny rule. A single value, or the whole `allowedMcpServers` list, comes from the highest-ranked policy that sets it. A console field in a policy replaces the organization-wide value.
7678
79### Settings that run commands
80
81`hooks` and `statusLine` run commands on the developer's computer. Claude Code applies the two settings as managed settings and doesn't ask the developer first. To enter them, see [Add hooks and a status line as JSON](https://claude.com/docs/third-party/claude-desktop/admin-console-claude-code.md#add-hooks-and-a-status-line-as-json).
82
83The two settings require Claude Code 2.1.336 or later. Earlier versions ignore them and still use your connection.
84
85A computer applies the two settings only if it accepts your organization's commands:
86
87* **A computer with no managed settings, or whose managed settings don't name your organization in `forceLoginOrgUUID`**: the computer accepts your organization's commands in a user account if no other organization's commands ran in that account in the last 30 days. `allowedAdminConsoleOrgUUIDs` doesn't change this.
88* **A computer whose managed settings name your organization in `forceLoginOrgUUID`**: the computer accepts your organization's commands
89* **A computer that doesn't accept your organization's commands**: neither setting applies. `/status` in Claude Code says that Claude Code `runs commands only from the organization whose commands ran here first`. If your JSON sets `hooks`, Claude Code also doesn't use your connection at the next start. In that case, Claude Code doesn't start unless the developer or the computer sets a provider, and its message gives the same cause.
90
91A computer also applies the **Helper script**, **AWS profile name**, **AWS config directory**, **GCP credentials file path**, and **OTLP headers helper script** fields only if it accepts your organization's commands.
92
93If your company moves developers to a new organization, their computers can keep accepting the earlier organization's commands for up to 30 days. To make a computer accept the new organization sooner, do one of these. The change applies the next time Claude Code starts.
94
95* **Name the new organization in `forceLoginOrgUUID`**: add it to the computer's managed settings, as described in [Keep managed settings beside the console](https://claude.com/docs/third-party/claude-desktop/admin-console-claude-code.md#keep-managed-settings-beside-the-console). On a computer that also runs Claude Desktop on your provider, put `"parentSettingsBehavior": "merge"` next to it.
96* **Delete the file `~/.claude/state/hybrid-organization-lock.json`**: delete it in the developer's user account on the computer
97
98The two settings combine with other settings this way:
99
100* **The computer's managed settings**: the computer's hooks and your hooks both run. The computer's status line doesn't apply, even if you set none.
101* **The developer's own settings**: the developer's hooks also run, unless you set `allowManagedHooksOnly`. The developer's `disableAllHooks` doesn't stop your hooks. Your status line shows in place of the developer's status line. Your status line shows in the terminal. The VS Code panel has no status line.
102* **The sandbox**: a hook can approve a tool call. Claude Code then runs the call without asking the developer, unless a deny or ask rule matches the call. `sandbox.enabled` in your JSON doesn't turn the sandbox on. Unless something else turns the sandbox on, a Bash command that your hook approves runs outside it. To turn the sandbox on, list hosts in **Allowed egress hosts**, with no `*` entry, or use the computer's managed settings. On native Windows, or where the sandbox can't start, a Bash command that your hook approves runs outside the sandbox, whichever setting turns it on. A command that the developer excludes from the sandbox also runs outside it.
103* **A group's policy**: hooks in a policy add to the organization-wide ones. `disableAllHooks` set to `true` in a policy turns off your hooks and status line for that group. It also turns off the developers' own hooks and status lines. The computer's hooks still run.
104* **[Gateway-managed Claude Code](#credentials-and-gateways)**: if the switch is on with **Interactive sign-in** and no identity provider, the gateway's own settings apply after a developer runs `/login` in Claude Code. Neither setting then applies, on any computer.
105
77106## Credentials and gateways
78107
79108While a terminal uses your connection, the developer's own Claude login or API key doesn't go to the gateway. Check these settings before developers sign in:
80109
81110* **Helper scripts**: Claude Code checks the **Helper script** on your **Connection** page and the **OTLP headers helper script** on your **Telemetry & updates** page before it runs them. To install them, see [Install the helper for Claude Code in the terminal](https://claude.com/docs/third-party/claude-desktop/credential-helper.md#install-the-helper-for-claude-code-in-the-terminal).
82* **A gateway that Claude Code can't use**: Claude Code in the terminal doesn't use your gateway if, for example, the **Helper script** is missing from the computer, or the sign-in flow is `broker` and you haven't [allowed browser sign-in](https://claude.com/docs/third-party/claude-desktop/entra-broker.md#allow-browser-sign-in-where-your-gateway-uses-the-entra-broker). `/status` in Claude Code names the setting. The session then uses the provider and the credentials that are set on the computer. These can be the developer's own Claude login or API key, even when `ANTHROPIC_BASE_URL` on the computer is your gateway's address. If nothing on the computer sets a provider, Claude Code doesn't start. In that case, it doesn't send prompts to the Anthropic API with the developer's own login or key.
111* **A gateway or base URL that Claude Code can't use**: Claude Code in the terminal doesn't use your connection if, for example, the **Helper script** is missing from the computer, or your gateway's sign-in flow is `broker` and you haven't [allowed browser sign-in](https://claude.com/docs/third-party/claude-desktop/entra-broker.md#allow-browser-sign-in-where-your-gateway-uses-the-entra-broker). `/status` in Claude Code names the setting. The session then uses the provider and the credentials that are set on the computer. These can be the developer's own Claude login or API key, even when `ANTHROPIC_BASE_URL` on the computer is your gateway's address. If nothing on the computer sets a provider, Claude Code doesn't start. In that case, it doesn't send prompts to the Anthropic API with the developer's own login or key.
83112* **Gateway-managed Claude Code**: if the console doesn't show this switch, it's off. With an identity provider, the switch changes nothing in a terminal. If the switch is on with **Interactive sign-in** and no identity provider, a provider that the developer or the computer set stays in use until the developer runs `/login` in Claude Code. After that, the session follows the gateway's own settings, and none of your console settings apply. In that setup, on a computer whose `forceLoginOrgUUID` lists your organization, Claude Code doesn't sign in to the gateway. It refuses prompts there unless the developer or the computer set a provider or `ANTHROPIC_BASE_URL`.
84113
85114## Managed settings beside the console
from line 117
88117
89118* **Many settings persist**: these include cloud credentials, proxy variables in `env`, model names, hooks, required versions, managed MCP servers, and plugins
90119* **Your connection replaces these `env` values**: the cloud provider, region, project, resource, provider base URL, and custom request headers. If you have a **Model list**, it replaces `availableModels`.
120* **Addresses for your hooks, MCP servers, and credential helpers**: these programs don't get your gateway's address. They also don't get a base URL that isn't your cloud provider's own service address. They get the address that the managed settings or the developer set, or no address. Versions before 2.1.336 give these programs your gateway's address.
121 * **If a program needs your address**: set the address in the managed `env`, for example as `ANTHROPIC_BASE_URL` for a gateway
122 * **If a program starts `claude` with `--bare` or with another configuration directory**: that `claude` sends its requests to the address that the managed settings, the project's settings, or the developer set, or else to the Anthropic API or the cloud provider's default address. With `enforceAnthropicSignIn`, Claude Code refuses that `claude`.
91123* **Your collector replaces the computer's**: if you filled in **OTLP endpoint**, OpenTelemetry data goes only to your collector. Your OTLP fields replace the computer's OpenTelemetry address, protocol, resource attributes, and content settings. `CLAUDE_CODE_ENABLE_TELEMETRY` set to `0` on the computer doesn't turn off the export. To turn it off, use the [JSON](#claude-code-settings-as-json). `OTEL_LOG_ASSISTANT_RESPONSES` set to `0` on the computer still applies, with the limits under [Content capture](https://claude.com/docs/third-party/claude-desktop/telemetry.md#content-capture).
92124* **Certificates for your collector**: exports to your collector don't use `OTEL_EXPORTER_OTLP_CERTIFICATE`, `OTEL_EXPORTER_OTLP_CLIENT_CERTIFICATE`, or `OTEL_EXPORTER_OTLP_CLIENT_KEY`, even over gRPC. Use `NODE_EXTRA_CA_CERTS` for a private CA, and `CLAUDE_CODE_CLIENT_CERT` and `CLAUDE_CODE_CLIENT_KEY` for a [client certificate](https://code.claude.com/docs/en/network-config#mtls-authentication).
93* **These stop applying, and you can enter them in the console**: `companyAnnouncements` and `allowedMcpServers` if you set it without `allowManagedMcpServersOnly`
94* **These stop applying, and the console can't set them**: `permissions.allow`, the default permission mode, added directories, `statusLine`, `skillOverrides`, `claudeMdExcludes`, `autoMemoryEnabled`, and display preferences. The developer's own settings decide these. A skill that you turned off with `skillOverrides` is available again.
125* **These stop applying, and you can enter them in the console**: `companyAnnouncements`, `allowedMcpServers` if you set it without `allowManagedMcpServersOnly`, and [`statusLine`](#settings-that-run-commands)
126* **These stop applying, and the console can't set them**: `permissions.allow`, the default permission mode, added directories, `skillOverrides`, `claudeMdExcludes`, `autoMemoryEnabled`, and display preferences. The developer's own settings decide these. A skill that you turned off with `skillOverrides` is available again.
95127* **Your proxy for sandboxed commands stops applying**: Claude Code ignores `sandbox.network.httpProxyPort` and `sandbox.network.socksProxyPort` in the computer's managed settings. The console can't set them. Sandboxed commands no longer go through your proxy. To limit the hosts that sandboxed commands reach, use **Allowed egress hosts**.
96128* **These apply together with your console settings**: `permissions.deny`, `permissions.ask`, `deniedModels`, `deniedMcpServers`, `disabledMcpjsonServers`, `sandbox.network.deniedDomains`, `sandbox.filesystem.denyRead`, `sandbox.filesystem.denyWrite`, blocked marketplaces, and Auto mode's deny rules
97129* **`sandbox.filesystem.allowRead` persists**: sandboxed commands can read the paths in that list, even if your console settings deny them
from line 133
101133
102134Check the computer's managed settings for these:
103135
104* **A private endpoint**: the managed settings can give Claude Code a private address for your provider, such as `ANTHROPIC_BEDROCK_BASE_URL` for a VPC endpoint. Your connection overrides that address, and requests go to the provider's default address. To keep the private address, enter it in the provider's base URL field on the **Connection** page, such as **Bedrock base URL**. Claude Desktop then uses that address. Claude Code in the terminal stops using your connection, and uses the provider, region, address, and credentials that are set on the computer. Your restrictions still apply, but your **Model list** and custom headers don't. The base URL field applies to every developer who signs in, so Claude Code doesn't start on a computer that sets no provider.
136* **A private endpoint**: the managed settings can give Claude Code a private address for your provider, such as `ANTHROPIC_BEDROCK_BASE_URL` for a VPC endpoint. Your connection overrides that address, so if the provider's base URL field on the **Connection** page is empty, requests go to the provider's default address. To keep the private address, enter it in that field, such as **Bedrock base URL**. Claude Desktop and Claude Code then use that address.
137* **The same base URL in the managed settings**: if the managed settings set the same address as your base URL, remove `ANTHROPIC_CUSTOM_HEADERS` and `CLAUDE_CODE_SKIP_BEDROCK_AUTH`, or the same variable for your provider, from them. Otherwise, Claude Code doesn't use your connection.
138* **A cloud credential in the managed settings**: Claude Code doesn't use your connection if your base URL isn't your cloud provider's own service address and the managed settings set a cloud credential, such as `AWS_ACCESS_KEY_ID` or `GOOGLE_APPLICATION_CREDENTIALS`. A VPC endpoint counts as the provider's own service address. On Microsoft Foundry, no base URL counts as the provider's own service address. `/status` in Claude Code names the credential. To fix the problem, do one of these, and then ask developers to start Claude Code again:
139 * **Remove the credential from the managed settings**: sessions, background jobs, and programs that already have the credential can keep using it, also at your base URL. If the credential must stop working on developers' computers, also revoke it at your cloud provider.
140 * **Set your base URL in the managed settings too**: this option works only if the **Credential kind** isn't **Identity provider sign-in (OIDC)**, and if neither the managed settings nor the **Connection** page sets custom request headers. Enter the same address, for example as `ANTHROPIC_BEDROCK_BASE_URL`. On Microsoft Foundry, set `ANTHROPIC_FOUNDRY_BASE_URL` in place of `ANTHROPIC_FOUNDRY_RESOURCE`.
105141* **A Microsoft Foundry key**: if the managed settings set `ANTHROPIC_FOUNDRY_API_KEY` or `ANTHROPIC_FOUNDRY_AUTH_TOKEN`, check which of these applies, and make the change in the managed settings. Don't set both `ANTHROPIC_FOUNDRY_RESOURCE` and `ANTHROPIC_FOUNDRY_BASE_URL`, because Foundry requests then fail.
106 * **If the managed settings set `ANTHROPIC_FOUNDRY_RESOURCE`, or set neither that variable nor `ANTHROPIC_FOUNDRY_BASE_URL`**: make sure that `ANTHROPIC_FOUNDRY_RESOURCE` is set beside the Foundry key. Otherwise, Claude Code refuses each Foundry request once the computer has `forceLoginOrgUUID`, even before a sign-in. If your provider is Microsoft Foundry, use the resource on your **Connection** page. With any other resource, Claude Code refuses each Foundry request after a sign-in.
107 * **If the managed settings set `ANTHROPIC_FOUNDRY_BASE_URL` and your provider is Microsoft Foundry**: a sign-in overrides that base URL, and Claude Code then refuses each Foundry request. Replace it with `ANTHROPIC_FOUNDRY_RESOURCE`, set to the resource on your **Connection** page. To keep it as a private endpoint instead, follow **A private endpoint** in this list.
142 * **If the managed settings set `ANTHROPIC_FOUNDRY_RESOURCE`, or set neither that variable nor `ANTHROPIC_FOUNDRY_BASE_URL`**: make sure that `ANTHROPIC_FOUNDRY_RESOURCE` is set beside the Foundry key. Otherwise, outside Claude Desktop's sessions, Claude Code refuses each request to a Foundry resource once the computer has `forceLoginOrgUUID` or `allowedAdminConsoleOrgUUIDs`, even before a sign-in. If your provider is Microsoft Foundry, use the resource on your **Connection** page. With any other resource, Claude Code refuses each Foundry request after a sign-in.
143 * **If the managed settings set `ANTHROPIC_FOUNDRY_BASE_URL` and your provider is Microsoft Foundry**: a sign-in overrides that base URL, and Claude Code then refuses each Foundry request. Replace it with `ANTHROPIC_FOUNDRY_RESOURCE`, set to the resource on your **Connection** page. To keep the address instead, leave it in the managed settings, and enter the same address in **Azure AI Foundry base URL** on the **Connection** page. Don't set custom request headers in either place.
108144* **`forceLoginMethod` and `forceLoginGatewayUrl`**: remove `forceLoginGatewayUrl`, and don't set `forceLoginMethod` to `console` or `gateway`. Otherwise, Claude Code refuses the sign-in to your organization.
109* **`allowedProviders`**: add your provider to the list. For a gateway, add `customEndpoint`, and set `ANTHROPIC_BASE_URL` in the managed `env` to your **Gateway base URL**, with a lower-case host and no trailing slash.
145* **`allowedProviders`**: add your provider to the list. For a gateway, add `customEndpoint`, and set `ANTHROPIC_BASE_URL` in the managed `env` to your **Gateway base URL**, with a lower-case host and no trailing slash. If a cloud provider's base URL isn't the provider's own service address, also add `customEndpoint`, and set that exact address in the managed `env`, for example as `ANTHROPIC_BEDROCK_BASE_URL`.
110146* **Model names**: `model`, `fallbackModel`, and `modelOverrides` persist. If those model names are for a different provider than your connection, remove them.
111* **A [policy helper](https://code.claude.com/docs/en/settings-reference#policyhelper)**: the computer ignores your console, even with `forceLoginOrgUUID`
147* **A [policy helper](https://code.claude.com/docs/en/settings-reference#policyhelper)**: the computer ignores your console, even with `forceLoginOrgUUID` or `allowedAdminConsoleOrgUUIDs`
112148
113To go back, remove your organization's ID from `forceLoginOrgUUID`, or remove `forceLoginOrgUUID` if your organization's ID is the only one. Also remove `enforceAnthropicSignIn` and `parentSettingsBehavior` if you set them. Ask developers to run `claude auth logout` in their terminal, which removes the leftover sign-in and their other Claude Code logins.
149To go back, remove your organization's ID from `forceLoginOrgUUID` or `allowedAdminConsoleOrgUUIDs`, or remove the setting if your organization's ID is the only one. Also remove `enforceAnthropicSignIn` and `parentSettingsBehavior` if you set them. Ask developers to run `claude auth logout` in their terminal, which removes the leftover sign-in and their other Claude Code logins.
114150
115151## Where data goes
116152
117While a terminal uses your connection, model requests and their content go from the developer's terminal to your provider or gateway. For the sign-in and your settings, the terminal exchanges the following with Anthropic:
153While a terminal uses your connection, model requests and their content go from the developer's terminal to your provider or gateway, or to your provider's base URL if you set one. For the sign-in and your settings, the terminal exchanges the following with Anthropic:
118154
119155* **At sign-in**: after the developer approves in their browser, Claude Code receives a token that can read the developer's profile and the Claude Desktop configuration that applies to them, including your **Connection** settings. The token can't run a model.
120156* **At each download**: Claude Code sends that token to `api.anthropic.com` and receives the settings for that developer
from line 167
131167* **Metrics and logs**: Claude Code sends these, and traces if **Export traces** is on
132168* **Content**: prompts, responses, tool details, tool content, and raw API bodies go only if you select them under **Content capture**. If you select prompts, responses go too. Raw API bodies hold full requests and responses, so they include prompts, responses, and tool content even if you didn't select those.
133169* **The developer's identity**: each record includes the computer's user name as `process.owner`. Unless **End-user attribution** is off, it also includes `enduser.id`. This is the name from the developer's sign-in to your gateway or identity provider, or else their account's email address.
170* **The computer's name**: if your JSON sets `OTEL_RESOURCE_INCLUDE_HOST` to `1` in `env`, each record also includes the computer's name and ID as `host.name` and `host.id`. This requires Claude Code 2.1.336 or later. Your value replaces the value in the developer's settings and in the computer's managed settings. If you set no **OTLP endpoint**, the name goes to the collector that the developer's or the computer's settings name.
134171* **A token, if you choose to send one**: if **Collector authentication** is **Reuse the inference credential**, Claude Code sends the collector the bearer token, if there is one, from your **Helper script**, your gateway's sign-in, or your identity provider. That token can also make model requests as the developer, so use this option only for a collector that you operate. After the token expires, Claude Code sends data without a valid token until the next model request. If your collector refuses that data, it's lost.
135172* **Which sessions send**: a `claude ssh` session sends nothing to your collector. On a computer with no managed settings, neither does a session that uses a Claude login, an Anthropic API key, or a base URL of the developer's own. On a computer whose managed settings name your organization, your collector gets the session's telemetry whichever key or token signs the requests. From Claude Code 2.1.334, the exception is a session that doesn't use your connection and whose requests a Claude login, or a `CLAUDE_CODE_OAUTH_TOKEN` from one, can sign. That session sends your collector nothing, and `/status` says why.
136173
137174Claude Code keeps these on the developer's computer, among other files:
138175
139* **The sign-in, and the sign-in to your gateway**: in Claude Code's credential store. This is the Keychain on macOS, and the file `.credentials.json` in Claude Code's configuration directory on Linux, or on macOS if the Keychain refuses the write. On Windows, it's that file or Windows Credential Manager.
176* **The sign-in, and the sign-in to your gateway or [Amazon Bedrock proxy](https://claude.com/docs/third-party/claude-desktop/admin-console-claude-code.md#prepare-your-gateway)**: in Claude Code's credential store. This is the Keychain on macOS, and the file `.credentials.json` in Claude Code's configuration directory on Linux, or on macOS if the Keychain refuses the write. On Windows, it's that file or Windows Credential Manager.
140177* **The stored copy of your settings**: in Claude Code's configuration directory, `~/.claude` by default. It doesn't hold your connection or your collector's address and headers.
141* **A record of where your connection sent requests**: in `~/.claude.json`. The record holds your organization's ID and no credentials. For a cloud provider, it also holds the provider with its region, project, resource, AWS profile, and Amazon Bedrock inference profiles, which can include an AWS account ID. For a gateway, it holds the gateway's host and your identity provider's address.
178* **A record of where your connection sent requests**: in `~/.claude.json`. The record holds your organization's ID and no credentials. For a cloud provider, it also holds the provider with its region, project, resource, base URL host, AWS profile, and Amazon Bedrock inference profiles, which can include an AWS account ID. For a gateway, it holds the gateway's host. If developers sign in to your gateway or Amazon Bedrock proxy through your identity provider, it also holds your identity provider's address.
142179
143180## Security considerations
144181
145182A developer doesn't need administrator access to bypass your settings. These are some of the ways a developer can work without them, and what limits each one:
146183
147* **Signs in to another organization that's set up this way, on a computer with no managed settings**: the other organization's settings, including its OpenTelemetry collector, apply instead of your organization's settings. `forceLoginOrgUUID` in the computer's managed settings limits this.
184* **Signs in to another organization that's set up this way, on a computer with no managed settings**: the other organization's settings, including its OpenTelemetry collector, apply instead of your organization's settings. `forceLoginOrgUUID` or `allowedAdminConsoleOrgUUIDs` in the computer's managed settings limits this.
148185* **Signs in to your organization while still signed in to a Claude apps gateway, on a computer with no managed settings**: sessions stay on that gateway, and your settings don't apply. The sign-in then prints `Claude Code still uses the gateway at`. To fix it, the developer runs `claude auth logout` in their terminal and signs in to your organization again. If their own settings set `forceLoginMethod` to `gateway`, they first remove it and `forceLoginGatewayUrl`. `forceLoginOrgUUID` limits this. `/status` in Claude Code shows a session that follows a gateway's own settings as `Cloud gateway`, and the **Allow sign-in from Claude Code in terminals and IDEs** switch doesn't stop it.
149* **Signs in with their own Claude account**: Claude Code ends the organization sign-in and removes the stored copy of your settings. `forceLoginOrgUUID` limits this. On a computer that requires the sign-in, a claude.ai login still starts sessions on the Anthropic API, without your settings.
186* **Signs in with their own Claude account**: Claude Code ends the organization sign-in and removes the stored copy of your settings. `forceLoginOrgUUID` limits this, and `allowedAdminConsoleOrgUUIDs` doesn't. On a computer that requires the sign-in, a claude.ai login still starts sessions on the Anthropic API, without your settings.
150187* **Changes how Claude Code starts on their own computer**: the sign-in keys are checked on the developer's computer. Sessions can run on the Anthropic API under another login, without your settings. `allowedProviders` without `"anthropic"` in the computer's managed settings limits this, if developers don't need direct access to the Anthropic API. Otherwise, only controls outside Claude Code limit this.
151188* **Sends Claude Code's traffic through their own proxy and certificate authority**: the proxy can answer in place of Anthropic, so Claude Code can accept settings that Anthropic didn't send. Only controls outside Claude Code limit this.
152189* **Runs `claude mcp serve`, which gives another program access to Claude Code's tools**: calls from that program skip your permission rules. The sandbox from **Allowed egress hosts** still applies. Only controls outside Claude Code limit this.
from line 194
157194The sign-in keys and your own settings have limits too:
158195
159196* **`forceLoginOrgUUID`**: the check runs on the developer's computer and isn't a security boundary. It doesn't check the organization of a saved Claude Console key or an [Anthropic profile](https://code.claude.com/docs/en/authentication#anthropic-profiles-and-federation-credentials). Unless you also [require the sign-in](https://claude.com/docs/third-party/claude-desktop/admin-console-claude-code.md#require-the-sign-in-with-managed-settings), both still work on the Anthropic API, and a saved Claude Console key also works at an `ANTHROPIC_BASE_URL` that the developer sets.
160* **`enforceAnthropicSignIn`**: it applies only when Claude Code can read the managed settings that set it. If you set no `forceLoginOrgUUID`, no session starts on a cloud provider or a custom base URL.
161* **After a sign-in ends**: on a cloud provider that the developer or the computer set, most restrictions in the stored copy, though not `deniedModels`, stay in force until the developer runs `claude auth logout` in their terminal or signs in with another account
197* **`enforceAnthropicSignIn`**: it applies only when Claude Code can read the managed settings that set it. If you set neither `forceLoginOrgUUID` nor `allowedAdminConsoleOrgUUIDs`, no session starts on a cloud provider or a custom base URL.
162198* **OpenTelemetry export**: a developer can still stop it on their own computer, for example with a very short export timeout. They can also change the identity that it sends.
163* **Credential settings**: **AWS profile name**, **AWS config directory**, **GCP credentials file path**, and **Helper script** on your **Connection** page, and **OTLP headers helper script** on your **Telemetry & updates** page, can run a command on the developer's computer, in some cases without asking the developer. Give the Owner role, and any other access to the **Desktop 3P** pages, only to people you trust to run programs there.
199* **Settings that run commands**: these settings can run a command on the developer's computer, in some cases without asking the developer. They are **AWS profile name**, **AWS config directory**, **GCP credentials file path**, and **Helper script** on your **Connection** page, **OTLP headers helper script** on your **Telemetry & updates** page, and `hooks` and `statusLine` in your JSON. Give the Owner role, and any other access to the **Desktop 3P** pages, the **Claude Code** page, or groups' policies, only to people you trust to run programs on developers' computers.
164200
165201To enforce budgets and rate limits and to log each model request, use an LLM gateway.
166202
cowork/changelog Changed · +1 / -0 lines
This page is larger than the 256 KiB this site keeps, so one side of the diff below stops where the stored text does.
from line 24
2424
2525**Code**
2626
27* Added a setting, Sessions with no folder, that lets your phone or claude.ai start a Remote Control session on your computer without choosing a folder. The setting is off by default, and it isn't available in third-party deployments or where a HIPAA restriction applies.
2728* Changed what SSH hosts need: Claude Code 2.1.335 and a new SSH helper version (shown above). If you install these on your SSH hosts yourself, or serve them from your own mirror, add both before computers update. Until you do, updated computers might not start or reach SSH sessions there.
2829* Fixed some cases of losing work in a worktree when you archived or deleted its session, removed the worktree, or at the automatic cleanup.
2930* Fixed Discard, or starting a session on another branch, deleting work in a separate repository or submodule inside the folder.
from line 2167
21662167* Added installing and updating plugins from admin-configured marketplaces on devices where Cowork isn't available, from the Code tab or the Cowork tab.
21672168* Added local scheduled tasks to the Code tab, including the `/schedule` command and the Scheduled page, matching what Cowork already offered.
21682169* Added the ability to attach files in SSH Code sessions.
2169* (breaking) Changed the Usage page cost estimate to require `inferenceModelPricingEnabled`; `inferenceModelPricingMultiplier` and `inferenceModelPricing` now refine the estimate only while it is on and no longer turn it on by themselves.
2170* Changed `HTTPS_PROXY`, `HTTP_PROXY`, and `NO_PROXY` set in the `env` block of Claude Code's managed settings (`managed-settings.json` or your organiz
2170* (breaking) Changed the Usage page cost estimate to require `inferenceModelPricingEnabled`; `inferenceModelPricingMul
third-party/claude-desktop/bedrock Changed · +2 / -0 lines
from line 156
156156
157157[`inferenceIdpOidc`](https://claude.com/docs/third-party/claude-desktop/configuration#inferenceidpoidc) takes the same fields as the gateway provider's [`inferenceGatewayOidc`](https://claude.com/docs/third-party/claude-desktop/gateway#single-sign-on-configuration-keys), and you register the identity-provider application the same way; see [Set up single sign-on](https://claude.com/docs/third-party/claude-desktop/gateway.md#set-up-single-sign-on). To sign in through the [OS identity broker](https://claude.com/docs/third-party/claude-desktop/entra-broker.md) instead of the browser (Microsoft Entra ID only), set `inferenceIdpAuthFlow` to `broker`.
158158
159If you manage this configuration from the Enterprise Admin Console, and developers sign in to your organization from Claude Code in the terminal, add a second redirect URI before they use Claude Code 2.1.336 or later. Skip this if the sign-in flow is `broker`, because Claude Code in the terminal can't use the proxy then. See [Register the redirect URI for the terminal](https://claude.com/docs/third-party/claude-desktop/admin-console-claude-code.md#prepare-your-gateway).
160
159161Notes:
160162
161163* `inferenceBedrockBaseUrl` (your proxy) is required: Amazon Bedrock endpoints, including VPC endpoints, reject identity-provider tokens. Without a proxy, use [in-app AWS sign-in](#in-app-aws-sign-in).