Manage Claude Code in the terminal from the Enterprise Admin Console changedthird-party/claude-desktop/admin-console-claude-code
Nearest release: v2.1.332, published 4 hours after 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 24 Nov 2026 17:14 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 24 Nov 2026 17:37 UTC.
Upstream edited
Recorded here
Lines+22added
Lines−17removed
From line
17
where the diff opens
First seen
19 Nov 2026
this site's first read of the page
Recorded edits7to this page, all time
The whole hunk
from line 17, old and new numbered
/
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. Claude Code contacts Anthropic for the sign-in, for your settings, and for a few other things, such as 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. 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.330 or later, and the same version of the VS Code extension. Earlier versions either ignore the console or drop more of the computer's settings after a sign-in.
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.
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`.
4949* 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.
50* If your **Connection** page uses a helper script, 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.
51* The developer's terminal can reach `api.anthropic.com` and `platform.claude.com`
50* 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.
51* The developer's terminal can reach `api.anthropic.com`, `platform.claude.com`, and your OpenTelemetry collector, if you set one
5252* 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`
5353
5454Then follow these steps in order:
from line 66
6666
6767Claude Code follows some of the fields on the **Desktop 3P** pages. The values that you saved for Claude Desktop also apply in the terminal. Go to **Organization settings > Desktop 3P**, and check that each value also works for developers.
6868
69These fields can change what developers can do:
69These fields can change what developers can do, or what you collect from them:
7070
71* **OTLP endpoint**, on the **Telemetry & updates** page: if you filled this in, terminals also send OpenTelemetry data to your collector. This includes what you selected under **Content capture**, such as prompts and responses. A different collector that the computer's managed settings name [stops getting that data](https://claude.com/docs/third-party/claude-desktop/admin-console-claude-code-reference.md#managed-settings-beside-the-console). Claude Code doesn't ask developers first, so [tell them](#send-developers-the-sign-in-instructions). To exclude terminals, add `"env": {"CLAUDE_CODE_ENABLE_TELEMETRY": "0"}` to your [JSON on the **Claude Code** page](#add-claude-code-settings-as-json). This also stops export to a collector that the computer's managed settings name.
7172* **Allowed egress hosts**, on the **Capabilities** page: if you filled this in, Claude's shell commands run in a sandbox on macOS, Linux, and WSL2. A command that needs a host outside your list, such as a package install, fails. A list that has a `*` entry has no effect in the terminal.
7273* **Built-in tool policy**, on the **Capabilities** page: if you set an entry to `ask`, Claude Code asks the developer before each call that matches it. In a script that runs `claude -p`, nobody can answer, so Claude Code refuses the call.
7374* **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
7475* **Block nonessential telemetry**, on the **Telemetry & updates** page: if this is on, Claude Code turns off its automatic updates
7576* **Model list**, on the **Connection** page: developers can pick only the models on your list
76* **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. You can't stop deploying managed settings, so [keep them beside the console](#keep-managed-settings-beside-the-console).
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).
7778
7879For 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).
7980
from line 100
99100
100101## Prepare your gateway
101102
102Skip this section if your **Connection** uses a direct cloud provider rather than a gateway.
103Skip this section if your **Connection** page uses a direct cloud provider rather than a gateway.
103104
104105**1. Register the redirect URI**
105106
from line 129
128129* **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.
129130* **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.
130131* **`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.
131133
132134The fields on the **Desktop 3P** pages also apply to Claude Desktop, so check that each value works there too.
133135
from line 149
147149
148150* **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).
149151* **Hooks, and the plugins and MCP servers that you install for developers**: the console can't install them in the terminal
150* **OpenTelemetry export (`CLAUDE_CODE_ENABLE_TELEMETRY` and the `OTEL_` variables)**: the console can't turn it on in the terminal, so your collector stops getting data from Claude Code. The console's OpenTelemetry fields export from Claude Desktop only.
151152* **`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).
152153* **`strictKnownMarketplaces`, `allowManagedPermissionRulesOnly`, `sandbox.filesystem.allowManagedReadPathsOnly`, and Auto mode's deny rules (`autoMode`)**: Claude Code ignores these in the JSON
153154* **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 it, also fill in **Bedrock base URL**, or the same field for another cloud provider, on the **Connection** page. Claude Code in the terminal then uses the provider set on each computer, not your connection, so each computer must keep managed settings that set your provider and the private address.
154155
155In Code sessions in Claude Desktop, the file's rules stop applying too, unless a field on the **Desktop 3P** pages sets them.
156After 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.
156157
157158## Turn on sign-in from Claude Code
158159
from line 181
180181* The name of the organization to select in the browser
181182* How to get credentials for your provider, or how to sign in to your gateway
182183* How to set a proxy or a certificate, if your managed settings used to set one
184* What your OpenTelemetry collector gets from their sessions, if you set one
183185* The sign-in steps, and what the sign-in changes
184186
185187You can start from this text:
from line 189
187189```text wrap theme={null}
188190We now manage Claude Code from our admin console. Please sign in on each computer you use.
189191
1901. Install or update the claude command to 2.1.330 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.
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.
1911932. <How to get credentials for our provider. How to set our proxy or certificate, if you need one.>
1921943. In your terminal, run: claude auth login
1931954. 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.
from line 199
197199
198200While 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.
199201
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.
203
200204The sign-in lasts about a month. When you see "no usable organization sign-in", run claude auth login again.
201205```
202206
from line 212
208212* **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.
209213* **`Could not load AWS credentials`, or the same for Google Cloud or Azure**: the developer has no working credentials for your cloud provider
210214* **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.
211* **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`.
215* **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.
212216
213217## Check that your settings apply
214218
from line 221
217221* **Setting sources**: the row includes `Enterprise managed settings (remote)`. That's Claude Code's name for your console settings.
218222* **API provider**, if you use a cloud provider: the row names your provider and ends with `(chosen by your organization)`
219223* **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`
224* **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
220225* **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.
221226
222227The 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.
from line 228
223228
224229## When setting changes take effect
225230
226Claude 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 or your **Model list** applies the next time the developer starts Claude Code.
231Claude 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.
227232
228233While a developer is signed in, Claude Code doesn't start if it can't reach Anthropic to download your settings.
229234
from line 258
253258
254259**1. Check what changes**
255260
256While a developer is signed in, your connection replaces the computer's, restrictions from both sides add up, and some managed settings stop applying. Read [Managed settings beside the console](https://claude.com/docs/third-party/claude-desktop/admin-console-claude-code-reference.md#managed-settings-beside-the-console). Fix the conflicts that it lists, and move the settings that stop applying [into the console](#where-each-setting-goes).
261While a developer is signed in, your connection replaces the computer's connection, the computer's restrictions apply together with your console's restrictions, and some managed settings stop applying. Read [Managed settings beside the console](https://claude.com/docs/third-party/claude-desktop/admin-console-claude-code-reference.md#managed-settings-beside-the-console). Fix the conflicts that it lists, and move the settings that stop applying [into the console](#where-each-setting-goes).
257262
258263**2. Ask developers to remove their Anthropic API keys**
259264
from line 287
282287> * **`enforceAnthropicSignIn`**: Claude Code also refuses the sessions that Claude Desktop starts, even when the developer is signed in. This stops Code sessions, Cowork, Chat, and scheduled tasks.
283288> * **`requiredMinimumVersion`**: Claude Desktop runs its own copy of Claude Code, which updates only with Claude Desktop. While that copy is older than the minimum, none of Claude Desktop's sessions start.
284289>
285> On those computers, deploy `forceLoginOrgUUID` without those keys, and put `"parentSettingsBehavior": "merge"` next to it. That refuses other organizations, but it doesn't require the sign-in. Without `parentSettingsBehavior`, Claude Code ignores the settings that Claude Desktop passes to its sessions, including the sandbox for Code sessions.
290> On those computers, deploy `forceLoginOrgUUID` without those keys, and put `"parentSettingsBehavior": "merge"` next to it. The computer then refuses other organizations, but it doesn't require the sign-in. Without `parentSettingsBehavior`, Claude Code ignores the settings that Claude Desktop passes to its sessions, including the sandbox for Code sessions.
286291
287292To require the sign-in, first turn on sign-in from Claude Code. If you removed your managed settings, you then deploy one small file, the only one that you still deploy. If you kept them, you add the keys to them. These are the keys:
288293
from line 295
290295{
291296 "forceLoginOrgUUID": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
292297 "enforceAnthropicSignIn": true,
293 "requiredMinimumVersion": "2.1.330"
298 "requiredMinimumVersion": "2.1.331"
294299}
295300```
296301
from line 305
300305
301306If 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.
302307
303To test it, 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.330 or later, and that developers' accounts can read the file.
308To test it, 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.
304309
305310For other ways around your settings, see [Security considerations](https://claude.com/docs/third-party/claude-desktop/admin-console-claude-code-reference.md#security-considerations).
306311
No line in this hunk matches that.