Skip to main content
The Enterprise Admin Console can administer settings for Claude Code in the terminal and in VS Code. Each developer signs in to your organization from Claude Code, and Claude Code applies your settings as managed settings and sends model requests to the provider on your Connection page. You can use this to stop deploying managed-settings.json. You move most of those settings into the console and remove the file from developers’ computers. Developers then get your settings when they sign in.

How console settings reach Claude Code

While a developer is signed in to your organization from Claude Code, Claude Code does the following on the developer’s computer:
  • It sends its model requests to your connection, which is the provider or gateway on your Connection page
  • It follows your console settings, and the developer’s own settings files can’t override them
Signing 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. While 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.

Which settings take priority

Claude Code can get settings from three places, from lowest to highest priority:
  1. The developer’s own settings files.
  2. Your console settings. They arrive when the developer signs in to your organization.
  3. The computer’s managed settings. These are Claude Code settings that you deploy to the developer’s computer: a managed-settings.json file, an MDM profile on macOS, or a registry policy on Windows. The configuration profile that you deploy for Claude Desktop doesn’t count. A registry policy under HKCU doesn’t count either. A sign-in replaces that policy’s settings, except its retention period (cleanupPeriodDays).
Each developer’s computer has either:
  • No Claude Code managed settings: a developer signs in, and your settings apply
  • Claude Code managed settings: the computer ignores your console completely. Even one setting counts, such as a proxy variable.
To make a computer with managed settings follow your console, do one of these:
  • Remove its Claude Code managed settings: first move the settings into the console, and then remove all of them. After that, you deploy no Claude Code settings to the computer.
  • Keep them, and name your organization in them: do this if you need a setting that the console can’t set, or if you want to require the sign-in

Before you start

Ensure that:
  • You’re an Owner or Primary Owner of the organization
  • You saved the Connection page under Organization settings > Desktop 3P
  • Your developers are members of your organization, like your Claude Desktop users
  • 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.
  • Developers on Claude Code’s stable 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.
  • 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), each developer must be able to sign in to the gateway or proxy. With any other cloud provider connection, each developer needs cloud credentials.
  • 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. A script that works in Claude Desktop can fail in the terminal.
  • The developer’s terminal can reach api.anthropic.com, platform.claude.com, and your OpenTelemetry collector, if you set one
  • 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.
  • 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
Then follow these steps in order:
  1. Review the settings you already saved.
  2. If you use a gateway, or an Amazon Bedrock proxy that uses Identity provider sign-in (OIDC), prepare your gateway.
  3. If developers’ computers have Claude Code managed settings, move them into the console.
  4. 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.
  5. If developers’ computers have Claude Code managed settings, remove them from the pilot developers’ computers. If you need to keep some, keep managed settings beside the console instead.
  6. On the same day, send the pilot developers the sign-in instructions.
  7. Check that your settings apply. Then turn on sign-in for everyone else, repeat step 5 on their computers, and send them the instructions.
  8. If you want to, require the sign-in with a small managed settings file.

Review the settings you already saved

Claude 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. These fields can change what developers can do, or what you collect from them:
  • 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. Claude Code doesn’t ask developers first, so tell them. To exclude terminals, add "env": {"CLAUDE_CODE_ENABLE_TELEMETRY": "0"} to your JSON on the Claude Code page. This also stops export to a collector that the computer’s managed settings name.
  • 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.
  • 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.
  • 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
  • Block nonessential telemetry, on the Telemetry & updates page: if this is on, Claude Code turns off its automatic updates
  • Model list, on the Connection page: developers can pick only the models on your list
  • 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.
For the full list of fields that Claude Code follows, see Console settings that Claude Code follows.

Check the base URL of a cloud provider

If 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. Check these points:
  • 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.
  • Redirects: enter the final address, because Claude Code doesn’t follow a redirect of a model request to another server
  • The approval prompt: each developer approves the address before an interactive terminal session uses it. Tell developers to expect the prompt.
  • Sign-in through your identity provider: if developers sign in to the address this way, prepare your gateway first
  • 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.

Add Claude Code settings as JSON

The 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. Go 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:
Unlike managed-settings.json, the JSON takes only a fixed list of settings, and Claude Code ignores the rest. Apart from hooks and statusLine, 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. A 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. The JSON doesn’t apply to Code sessions in Claude Desktop. Those sessions follow the fields on the Desktop 3P pages.

Add hooks and a status line as JSON

The JSON on the Claude Code page, at Organization settings > Products > Claude Code, can also set 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. This example runs a program before Claude uses its Write, Edit, or NotebookEdit tool, and blocks the change if the program fails:
After 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 these points:
  • 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.
  • Know which computers accept your organization’s commands: a computer applies the two settings only if it accepts your organization’s 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.
  • Check the Gateway-managed Claude Code switch: if Gateway-managed Claude Code 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.
  • 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.
  • Write each hook with args and a full path: Claude Code then starts the program directly, without a shell
  • 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.
  • 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.
  • 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.
  • 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. 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.

Prepare your gateway

Follow 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.
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.
1

Register the redirect URI

If 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.
  • Microsoft Entra ID: under Mobile and desktop applications, add http://127.0.0.1/gateway-sign-in/callback
  • A provider that also matches the port, such as Okta: add http://127.0.0.1:53180/gateway-sign-in/callback, with your Redirect port in place of 53180
  • A Redirect host of localhost: use localhost in place of 127.0.0.1
2

Check the sign-in flow

If your sign-in flow is broker:
  • With a gateway: Claude Code in the terminal can’t use your gateway until you allow browser sign-in. Follow those steps now, but leave the last one, Turn on both switches, until you turn on sign-in from Claude Code.
  • 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.

Move your managed settings into the console

Skip this section if developers’ computers have no Claude Code managed settings. Move the settings into the console now. You remove them from the computers later, after you turn on sign-in.

Where each setting goes

Go through your managed-settings.json, MDM profile, or registry policy, and put each setting where the console keeps it:
  • Provider, region, project or resource, base URL, and custom request headers: check that the Connection page has them
  • availableModels: use the Model list on the Connection page. Put your default model first.
  • 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.
  • Restrictions: copy them into the JSON on the Claude Code page. Examples are permissions.deny, permissions.ask, deniedModels, deniedMcpServers, and sandbox.filesystem.denyRead. For the rest, see Settings that Claude Code applies. The JSON applies to every developer. For settings that differ by team, use a group’s policy.
  • Hooks and statusLine: copy them into the JSON too. See Add hooks and a status line as JSON.
  • 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.
  • 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, 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.
The fields on the Desktop 3P pages also apply to Claude Desktop, so check that each value also works in Claude Desktop. If an entry under sandbox or in disabledMcpjsonServers starts with //, remove one slash, because Claude Code ignores such an entry. Leave // in deny and ask rules.

Settings that the console can’t set

Check your managed settings for these before you remove them. Developers set these themselves from now on:
  • Proxy and certificate variables: ask developers to set HTTPS_PROXY or NODE_EXTRA_CA_CERTS in their shell or in their own settings file
  • 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.
  • 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
These need managed settings on the computer. If you can’t do without one, keep managed settings beside the console:
  • 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.
  • The plugins and MCP servers that you install for developers: the console can’t install them in the terminal
  • 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.
  • strictKnownMarketplaces, allowManagedPermissionRulesOnly, sandbox.filesystem.allowManagedReadPathsOnly, and Auto mode’s deny rules (autoMode): Claude Code ignores these in the JSON
After 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.

Turn on sign-in from Claude Code

Turn on the Allow sign-in from Claude Code in terminals and IDEs switch, for a pilot group first if you can:
  • 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.
  • For everyone: go to Organization settings > Products > Claude Code, turn on the switch, and click Save changes
  • 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 instead. It turns on both switches, for a group or for everyone.
The 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.

Remove the managed settings from the computers

Skip this section if developers’ computers have no Claude Code managed settings. Remove the managed-settings.json file and any drop-in files, the MDM profile, or the registry policy for Claude Code from the pilot developers’ computers. Leave the Claude Desktop configuration profile in place.
  • Remove all of it: if one setting stays behind, the computer still ignores your console. A developer who signs in there sees a message: Signed in to the organization and The organization's settings won't apply on this computer, because the computer's own managed settings take priority. Their own Claude login or API key can also stop working, until you finish the removal or they run claude auth logout.
  • Send the sign-in instructions straight away: until a developer signs in, neither the old file nor your console settings apply on that computer

Send developers the sign-in instructions

Send each developer a message with these items.
  • The name of the organization to select in the browser
  • How to get credentials for your provider, or how to sign in to your gateway or Amazon Bedrock proxy
  • How to set a proxy or a certificate, if your managed settings used to set one
  • What your OpenTelemetry collector gets from their sessions, if you set one
  • The sign-in steps, and what the sign-in changes
You can start from this text:

What developers see at sign-in

Developers may also see these, or ask you about them:
  • 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.
  • 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.
  • Could not load AWS credentials, or the same for Google Cloud or Azure: the developer has no working credentials for your cloud provider
  • 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.
  • 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
  • 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.

Check that your settings apply

Ask one developer to start claude and run /status in Claude Code. Check these rows:
  • Setting sources: the row includes Enterprise managed settings (remote). That’s Claude Code’s name for your console settings.
  • API provider, if you use a cloud provider: the row names your provider and ends with (chosen by your organization)
  • Bedrock base URL, or the same row for another cloud provider, if you set a base URL: the row shows your address
  • 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
  • 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
  • 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
  • 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 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, Managed settings that conflict with the console, or, if it names hooks, Settings that run commands.
The 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.

Check your hooks on every computer

/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.
Each 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.. 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 in the Claude Code docs. Use the events to answer these questions for the period that you check:
  • 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
  • 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.
  • 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.
The events have these limits:
  • 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. 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.
  • 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.
  • hook_execution_complete counts every hook for the event together: this includes the developer’s own hooks, unless you set allowManagedHooksOnly
  • 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
To 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.

When setting changes take effect

Claude 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. While a developer is signed in, Claude Code doesn’t start if it can’t reach Anthropic to download your settings.

When a sign-in ends

A 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:
  • 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.
  • 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
  • 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.
After 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. Plan for these cases:
  • 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.
  • 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.
Versions before 2.1.336 refuse at most one start, and can then start without your connection.

Remove a developer

When a developer leaves, do these steps in order:
1

Remove their access to your provider or gateway

Removing 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.
2

Ask them to sign out

The developer runs claude auth logout in their terminal. The command signs the developer out and deletes the stored copy of your settings. If they can’t run the command, go on to the next step.
3

Remove them from the organization

Anthropic 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.

Keep managed settings beside the console

Keep 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 instead.
1

Check what changes

While 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. Fix the conflicts that it lists, and move the settings that stop applying into the console.
2

Ask developers to remove their Anthropic API keys

Claude 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 instead.
3

Add forceLoginOrgUUID

After you 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, and deploy them to the pilot developers’ computers first:
If forceLoginOrgUUID already holds another organization’s ID, list both: "forceLoginOrgUUID": ["other-id", "your-id"].

Name your organization on computers that need an API key

With 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. After you 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:
Then change these settings beside it:
  • forceLoginOrgUUID: remove it. While it’s set, Claude Code ignores allowedAdminConsoleOrgUUIDs.
  • forceLoginMethod: remove it, whatever its value. While it’s set, Claude Code doesn’t start a session that has an Anthropic API key.
  • 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.
Claude Code then handles API keys and sign-ins this way:
  • 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
  • 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
  • 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.
  • 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.
The computer’s managed settings and your console settings combine as described in 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).

Require the sign-in with managed settings

The 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.
Don’t set enforceAnthropicSignIn or requiredMinimumVersion on a computer that also runs Claude Desktop on your provider.
  • 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.
  • 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.
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.
To 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:
  • forceLoginOrgUUID: makes the computer follow your console and refuse other organizations, as described in 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.
  • 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.
  • requiredMinimumVersion: blocks earlier versions, including the ones that ignore enforceAnthropicSignIn. Developers on Claude Code’s stable release channel can’t start Claude Code until that channel reaches this version. Move them to latest before you deploy this key.
If 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. To 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. For other ways around your settings, see Security considerations.