How Claude Code in the terminal applies your console settings changedthird-party/claude-desktop/admin-console-claude-code-reference
Nearest release: v2.1.336, published 2 hours before upstream edited the page. Shown because the two are within 24 hours of each other. Nothing here says the release caused the edit.
Upstream edited this page at 3 Dec 2026 21:00 UTC, give or take a minute or two: the time comes from Anthropic’s own sitemap rather than from a commit. This site recorded the change at 3 Dec 2026 21:07 UTC.
Upstream edited
Recorded here
Lines+57added
Lines−21removed
From line
41
where the diff opens
First seen
19 Nov 2026
this site's first read of the page
Recorded edits9to this page, all time
### Settings that run commands
The whole hunk
from line 41, old and new numbered
/
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
No line in this hunk matches that.