Follow Discord
Sweep 20 Nov 2026 · 19:55Z Build v2.1.330 547 read Stable v2.1.323 Latest v2.1.330 Next v2.1.330 Feeds RSS JSON llms.txt llms-full.txt Unofficial
One capture · claude-docs

One read of Claude Documentationclaude-docs-20261119T160706Z

11 pages moved out of 296 read.

Pages moved 11 significant first
Pages read 296 in this capture
Captured 16:07 UTC
Corpus hash c6be21af33f8 corpus-hash

What this read moved

1-11 of 11

connectors/building/enterprise-managed-auth Changed · +3 / -2 lines

from line 133
133133}
134134```
135135 
136The `iss` claim is either the identity provider's issuer URL or a Claude issuer URL, whichever the workspace trusts. The ID-JAG format makes `email`, `scope`, and `aud_tenant` optional, so an identity provider can leave them out. A Claude-issued assertion always carries `email`, and can leave out `scope` and `aud_tenant`. The example's other values follow a Claude-issued assertion, and an identity provider can send `aud` as a string, leave out `nbf`, and set a different lifetime.
136The `iss` claim is either the identity provider's issuer URL or a Claude issuer URL, whichever the workspace trusts. The ID-JAG format makes `email`, `scope`, and `aud_tenant` optional, so an identity provider can leave them out. A Claude-issued assertion always carries `email`, and can leave out `scope`, `aud_tenant`, and the [sign-in claims](#claude-issued-assertions). The example's other values follow a Claude-issued assertion, and an identity provider can send `aud` as a string, leave out `nbf`, and set a different lifetime.
137137 
138138* **`sub` in identity provider-issued assertions**: `sub` is the identity provider's identifier for the user, and the ID-JAG format requires it to match the subject your product receives when that user signs in through SSO. Find the user by `iss` and `sub` together, among the members of the workspace the assertion resolved to.
139139* **`sub` and `email` in Claude-issued assertions**: `sub` is an opaque value that differs under each issuer and, unlike an identity provider's `sub`, doesn't match the subject your product receives through SSO, so [find the user by `email`](#claude-issued-assertions), not by `sub`. Storing that `sub` is optional.
from line 161
161161 
162162These points apply to Claude-issued assertions:
163163 
164* **What the assertion says**: the user is a current member of the customer's Claude organization, and `email` is the address of their Claude account, in lowercase. The assertion doesn't say that the user signed in through the customer's identity provider or used multi-factor authentication, and it carries no group claims.
164* **What the assertion says**: the user is a current member of the customer's Claude organization, and `email` is the address of their Claude account, in lowercase. It carries no group claims.
165* **Sign-in claims**: an assertion can also carry `auth_time`, `amr`, and `acr`. `auth_time` is when the identity provider authenticated the user, or otherwise when the user signed in to Claude. `amr` and `acr` appear when the user signed in through the customer's single sign-on and the identity provider sent them (`amr` can need setup in the customer's identity provider), and Claude passes them on unchanged. None of the three is guaranteed. Assertions for clients that use an OAuth token, such as Claude Code, carry none of them, and a missing `amr` doesn't mean the user skipped multi-factor authentication. Claude requires no particular value for any of them.
165166* **Discovery document**: a Claude issuer's discovery document, at `<iss>/.well-known/openid-configuration`, holds `issuer` and `jwks_uri` and has no `authorization_endpoint` or `token_endpoint`. Read `issuer` and `jwks_uri` from it yourself rather than passing it to a validator that expects a full OpenID Connect provider configuration.
166167* **Lifetime**: each assertion expires within a minute, and each sign-in and each renewal gets a new assertion with a new `jti`.
167168* **User lookup**: find the user by `email` among the members of the workspace the assertion resolved to. Compare the whole address, ignore letter case, and keep dots and plus tags as they are. If no member of the workspace has the address, reject the request, or create the user only when the address is on an email domain the workspace has verified with your service.

third-party/claude-desktop/admin-console-claude-code New page · 302 lines, new page

# Manage Claude Code in the terminal from the Enterprise Admin Console ## How console settings reach Claude Code ## Which settings take priority ## Before you start ## Review the settings you already saved ### Add Claude Code settings as JSON ## Prepare your gateway ## Move your managed settings into the console ### Where each setting goes ### Settings that the console can't set ## Turn on sign-in from Claude Code ## Remove the managed settings from the computers ## Send developers the sign-in instructions ### What developers see at sign-in ## Check that your settings apply ## When setting changes take effect ## When a sign-in ends ## Remove a developer ## Keep managed settings beside the console ## Require the sign-in with managed settings

A whole new page. There's nothing to diff it against, so here is what it says.

# Manage Claude Code in the terminal from the Enterprise Admin Console

> Stop deploying managed-settings.json. Apply Enterprise Admin Console settings to Claude Code in the terminal and in VS Code when developers sign in.

The [Enterprise Admin Console](https://claude.com/docs/third-party/claude-desktop/admin-console.md) 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

You already manage Claude Desktop from the console. You save your provider on the **Connection** page and the rest of your settings on the other **Desktop 3P** pages. When a person signs in to Claude Desktop, the app follows what you saved.

Claude Code works the same way. A developer signs in to your organization from Claude Code, and Claude Code downloads your console settings. While the developer stays signed in, Claude Code does the following on that 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](#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. 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).

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

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.329 or later, and the same version of the VS Code extension. Earlier versions ignore the console.
* 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.
* 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.
* The developer's terminal can reach `api.anthropic.com` and `platform.claude.com`
* 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](#review-the-settings-you-already-saved).
2. If you use a gateway, [prepare your gateway](#prepare-your-gateway).
3. If developers' computers have Claude Code managed settings, [move them into the console](#move-your-managed-settings-into-the-console).
4. [Turn on sign-in from Claude Code](#turn-on-sign-in-from-claude-code), for a pilot group first if you can. If you can't, choose a few developers as your pilot.
5. If developers' computers have Claude Code managed settings, [remove them](#remove-the-managed-settings-from-the-computers) from the pilot developers' computers. If you need to keep some, [keep managed settings beside the console](#keep-managed-settings-beside-the-console) instead.
6. On the same day, [send the pilot developers the sign-in instructions](#send-developers-the-sign-in-instructions).
7. [Check that your settings apply](#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](#require-the-sign-in-with-managed-settings).

## 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:

* **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 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).

For 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).

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

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:

```json theme={null}
{
  "permissions": {
    "deny": ["Read(./secrets/**)"]
  },
  "deniedModels": ["claude-opus-4-6"],
  "disableWorkflows": true
}
```

Unlike `managed-settings.json`, the JSON takes only [a fixed list of settings](https://claude.com/docs/third-party/claude-desktop/admin-console-claude-code-reference.md#settings-that-claude-code-applies), and Claude Code ignores the rest. No setting in the JSON can grant a permission, run a command, sign in, or choose a provider or a model. The console doesn't check the JSON against that list. You see what Claude Code ignored when you [check that your settings apply](#check-that-your-settings-apply).

The JSON doesn't apply to the Code tab in Claude Desktop. The Code tab follows the fields on the **Desktop 3P** pages.

## Prepare your gateway

Skip this section if your **Connection** uses a direct cloud provider rather than a gateway.

**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`, Claude Code in the terminal can't use your gateway until you [allow browser sign-in](https://claude.com/docs/third-party/claude-desktop/entra-broker.md#allow-browser-sign-in-where-your-gateway-uses-the-entra-broker). Follow those steps now, but leave the last one, **Turn on both switches**, until you [turn on sign-in from Claude Code](#turn-on-sign-in-from-claude-code).

## 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, 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](#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.
* **`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).

The fields on the **Desktop 3P** pages also apply to Claude Desktop, so check that each value works there too.

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. 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, and `statusLine`**: 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](#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 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).
* **Hooks, and the plugins and MCP servers that you install for developers**: the console can't install them in the terminal
* **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.
* **`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).
* **`strictKnownMarketplaces`, `allowManagedPermissionRulesOnly`, and Auto mode's deny rules (`autoMode`)**: Claude Code ignores these in the JSON
* **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.

In the Code tab in Claude Desktop, the file's rules stop applying too, 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 sign-in flow is `broker`**: take the last step of [Allow browser sign-in where your gateway uses the Entra broker](https://claude.com/docs/third-party/claude-desktop/entra-broker.md#allow-browser-sign-in-where-your-gateway-uses-the-entra-broker) instead. It turns on both switches, for a group or for everyone.

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
* How to set a proxy or a certificate, if your managed settings used to set one
* The sign-in steps, and what the sign-in changes

You can start from this text:

```text wrap theme={null}
We now manage Claude Code from our admin console. Please sign in on each computer you use.

1. Install or update the claude command to 2.1.329 or later. If you use the VS Code extension, update it too.
2. <How to get credentials for our provider. How to set our proxy or certificate, if you need one.>
3. In your terminal, run: claude auth login
4. 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.
5. Check that the terminal prints "Signed in to the organization". If it also says that the settings won't apply on this computer, send us that message. If it prints "Login successful." instead, you picked another account, so run the command again.
6. Close any open Claude Code sessions. Then run: claude
7. <If our gateway has its own sign-in:> In Claude Code, run /login and follow the steps.

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

The sign-in lasts about a month. When you see "no usable organization sign-in", run claude auth login again.
```

### What developers see at sign-in

Developers may also see these, or ask you about them:

* **Managed settings require approval**: Claude Code asks the developer to approve some of your settings before it uses them, such as your gateway's address. If they decline, Claude Code exits and asks again at the next start.
* **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 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.
* **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`.

## 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)`
* **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`
* **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.

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.

## 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 or your **Model list** 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 about a month. When it ends, Claude Code may stop with the message `no usable organization sign-in`. If the developer runs `claude` again without signing in, it can start with their own Claude login or API key. Their requests then go to the Anthropic API, without your settings.

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

**1. Check what changes**

While 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).

**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 a developer needs a key for a different gateway, leave `forceLoginOrgUUID` off that computer.

**3. Add forceLoginOrgUUID**

After you [turn on sign-in from Claude Code](#turn-on-sign-in-from-claude-code), go to **Organization settings > Organization and access**, and copy the **Organization ID**, not the **Parent organization ID**. Add it to the managed settings, and deploy them to the pilot developers' computers first:

```json theme={null}
{
  "forceLoginOrgUUID": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
}
```

If `forceLoginOrgUUID` already holds another organization's ID, list both: `"forceLoginOrgUUID": ["other-id", "your-id"]`.

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

> [!WARNING]
>
> 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 the Code tab, 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. 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 Code tab's sandbox.

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:

```json theme={null}
{
  "forceLoginOrgUUID": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
  "enforceAnthropicSignIn": true,
  "requiredMinimumVersion": "2.1.329"
}
```

* **`forceLoginOrgUUID`**: makes the computer follow your console and refuse other organizations, as described in [Keep managed settings beside the console](#keep-managed-settings-beside-the-console). By itself, it doesn't require the sign-in. A developer who isn't signed in can still start a session on a cloud provider. Ask developers to remove their Anthropic API keys first, because Claude Code doesn't start a session that has one.
* **`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 versions before 2.1.329, which ignore `enforceAnthropicSignIn`

To 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.329 or later, and that developers' accounts can read the file.

Cut at 300 lines. The page has the rest.

third-party/claude-desktop/admin-console-claude-code-reference New page · 147 lines, new page

# How Claude Code in the terminal applies your console settings ## Console settings that Claude Code follows ## Claude Code settings as JSON ### Settings that Claude Code applies ## Credentials and gateways ## Managed settings beside the console ### Managed settings that conflict with the console ## Where data goes ## Security considerations

A whole new page. There's nothing to diff it against, so here is what it says.

# How Claude Code in the terminal applies your console settings

> Look up which Enterprise Admin Console settings Claude Code in the terminal applies, how it uses your connection, and where data goes.

Look up which [Enterprise Admin Console](https://claude.com/docs/third-party/claude-desktop/admin-console.md) settings Claude Code applies in the terminal and in VS Code, how it handles credentials and gateways, where data goes, and what the settings can't prevent.

> [!NOTE]
>
> To set up Claude Code in the terminal, see [Manage Claude Code in the terminal from the Enterprise Admin Console](https://claude.com/docs/third-party/claude-desktop/admin-console-claude-code.md).

## Console settings that Claude Code follows

This table shows the fields under **Organization settings > Desktop 3P** that Claude Code follows:

| Page | Field | Effect in the terminal |
| - | - | - |
| **Connection** | **Inference provider**, and the fields for that provider | Sends model requests to that provider or gateway |
| **Connection** | **Model list** | `/model` in Claude Code lists your models. Developers can pick only the models on your list. |
| **Connection** | **Tier alias** and **Max effort**, on an entry in the **Model list** | Uses that model for the tier, as with `--model haiku`. Developers can't raise its effort above your level. |
| **Capabilities** | **Disabled built-in tools** | Claude can't use the [tools](https://code.claude.com/docs/en/tools-reference) you list |
| **Capabilities** | **Built-in tool policy** | Asks the developer before a call that matches an `ask` entry, and refuses it where nobody can answer, as in `claude -p`. `allow` entries have no effect. |
| **Capabilities** | **Disable bypass permissions mode** | Refuses bypass permissions mode |
| **Capabilities** | **Allow Auto mode** | When it's off, developers can't use Auto mode |
| **Capabilities** | **Allowed egress hosts** | On macOS, Linux, and WSL2, Bash commands run in the [sandbox](https://code.claude.com/docs/en/sandboxing). They can reach the hosts you list, your OpenTelemetry endpoint, and `api.anthropic.com` unless **Block nonessential telemetry** is on. A developer can exclude a command from the sandbox in their own settings. On native Windows, or where the sandbox can't start, the list doesn't limit Bash commands. A list that has a `*` entry has no effect in the terminal. |
| **Capabilities** | **Block reads outside working directories** | Claude's file tools can't read files outside the session's working directories. Claude Code asks before a Bash command that names such a path. |
| **Capabilities** | **Skip WebFetch domain check** | Skips the [domain safety check](https://code.claude.com/docs/en/data-usage#webfetch-domain-safety-check) |
| **Capabilities** | **Disable bundled skills and workflows** | Turns off the bundled skills and workflows |
| **Connectors** | **Allowed plugin MCP servers** | Connects only to remote MCP servers whose URL matches an entry, apart from built-in servers and the computer's managed servers. Ignores the servers in developers' and projects' settings. |
| **Connectors** | **Blocked plugin MCP servers** | Doesn't connect to remote MCP servers whose URL matches an entry, including ones that developers add themselves |
| **Connectors** | **MCP tool call timeout** | Sets the default time limit for an MCP tool call |
| **Connectors** | **Managed MCP servers** | Not added in the terminal. Each entry's **Tool policy** applies to a plugin's MCP server with the same name or URL. |
| **Connectors** | **Allow local MCP servers** | Not applied in the terminal. To stop the local MCP servers that developers, projects, and plugins add, enter `{"allowManagedMcpServersOnly": true, "allowedMcpServers": [{"serverUrl": "*"}]}` in the [JSON](#claude-code-settings-as-json) on the **Claude Code** page. It doesn't stop remote MCP servers. |
| **Plugins** | **Plugin marketplaces** | `/plugin` in Claude Code lists your marketplaces as `offered by your organization`. It skips some, such as ones that need a helper script. Developers can't use the plugin directory (`/plugin directory`), and plugins installed from it don't load. |
| **Plugins** | **Organization plugin settings** | On a plugin's MCP server with that **Server name**, Claude can't use a tool set to **Blocked**. Claude Code asks before it uses a tool set to **Ask each time**. If **Managed MCP servers** has an entry with the same name, Claude Code uses only that entry's **Tool policy**, even if the entry has none. Set **Blocked** and **Ask each time** there. |
| **Telemetry & updates** | **Block essential telemetry** | Sends no [error reports](https://code.claude.com/docs/en/data-usage#telemetry-services) |
| **Telemetry & updates** | **Block nonessential telemetry** | Turns off automatic updates and `/feedback` |

If you block an MCP server that the developer added and that's already running, the server keeps answering in that session.

## Claude Code settings as JSON

The 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).

### Settings that Claude Code applies

This table shows the main settings that Claude Code applies. For what each one does, see the [settings reference](https://code.claude.com/docs/en/settings-reference).

| Settings | Applied when the value is |
| - | - |
| `permissions.deny`, `permissions.ask` | A list of rules |
| `permissions.disableBypassPermissionsMode`, `permissions.disableAutoMode` | `"disable"` |
| `permissions.blockReadsOutsideWorkingDirectories` | `true` |
| `deniedModels`, `maxEffortLevel` | A list of models, or an effort level |
| `deniedMcpServers`, `disabledMcpjsonServers`, `allowedMcpServers`, `allowManagedMcpServersOnly` | A list, or `true` for `allowManagedMcpServersOnly`, which applies only with an `allowedMcpServers` list |
| `blockedMarketplaces` | A list of marketplace sources. An entry that gives only a name blocks nothing. |
| `allowManagedHooksOnly` | `true` |
| Switches such as `disableWorkflows`, `disableBundledSkills`, `disableSkillShellExecution`, and `disableClaudeAiConnectors` | `true` |
| `sandbox.filesystem.denyRead`, `sandbox.filesystem.denyWrite`, `sandbox.network.deniedDomains`, `sandbox.allowUnsandboxedCommands`, `sandbox.autoAllowBashIfSandboxed` | A list, or `false` for the last two |
| 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` |
| `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` |
| Timeouts and size limits in `env`, such as `BASH_MAX_TIMEOUT_MS` | A whole number |
| `companyAnnouncements` | A list of text |

Claude 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`.

Some settings have conditions:

* **Sandbox settings**: these apply when the sandbox is on. Your JSON can't turn it on, but **Allowed egress hosts**, the computer's managed settings, or a developer's own settings can.
* **`permissions.ask`**: if a developer sets `sandbox.autoAllowBashIfSandboxed` to `true`, a `Bash` rule with no pattern, such as `Bash` or `Bash(*)`, stops asking for sandboxed commands. To keep the rule asking, set that key to `false` in your JSON.
* **A switch or a group with a value that Claude Code can't read**, such as `"disableBypassPermissionsMode": "allow"` in `permissions`: for most of these, Claude Code applies the strictest value. In this example, bypass permissions mode stays blocked for every developer until you correct the value.
* **A deny setting that isn't a list**, such as `"deniedModels": 5`: it denies nothing
* **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.

## Credentials and gateways

While 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:

* **Helper script**: Claude Code checks the **Helper script** on your **Connection** page before it runs it. To install it, 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).
* **A gateway that Claude Code can't use**: Claude Code in the terminal doesn't use your gateway if, for example, the **Helper script** doesn't run on 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.
* **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. 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`.

## Managed settings beside the console

If you [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), this is how the two sets of settings combine while a developer is signed in:

* **Many settings persist**: these include cloud credentials, proxy variables, model names, hooks, required versions, managed MCP servers, and plugins
* **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`.
* **These stop applying, and you can enter them in the console**: `sandbox.network.deniedDomains`, `sandbox.filesystem.denyRead`, `sandbox.filesystem.denyWrite`, `disabledMcpjsonServers`, `companyAnnouncements`, and `allowedMcpServers` if you set it without `allowManagedMcpServersOnly`
* **These stop applying, and the console can't set them**: `permissions.allow`, the default permission mode, added directories, `statusLine`, and display preferences. The developer's own settings decide these.
* **These apply together with your console settings**: `permissions.deny`, `permissions.ask`, `deniedModels`, `deniedMcpServers`, blocked marketplaces, and Auto mode's deny rules
* **The stricter value applies**: switches that only restrict, such as `permissions.disableBypassPermissionsMode`, `allowManagedHooksOnly`, and `sandbox.enabled`

### Managed settings that conflict with the console

Check the computer's managed settings for these:

* **A private endpoint**: the managed settings can point Claude Code at 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.
* **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.
  * **If they set `ANTHROPIC_FOUNDRY_RESOURCE`, or neither**: 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.
  * **If they 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.
* **`forceLoginMethod` and `forceLoginGatewayUrl`**: remove `forceLoginGatewayUrl`, and don't set `forceLoginMethod` to `console` or `gateway`. Otherwise, Claude Code refuses the sign-in to your organization.
* **`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.
* **Model names**: `model`, `fallbackModel`, and `modelOverrides` persist. If those model names are for a different provider than your connection, remove them.
* **A [policy helper](https://code.claude.com/docs/en/settings-reference#policyhelper)**: the computer ignores your console, even with `forceLoginOrgUUID`

To go back, remove your organization's ID from `forceLoginOrgUUID`, or remove `forceLoginOrgUUID` if yours is the only ID. 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.

## Where data goes

While 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:

* **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.
* **At each download**: Claude Code sends that token to `api.anthropic.com` and receives the settings for that developer
* **To complete, renew, or end the sign-in**: Claude Code sends the sign-in's own tokens to `platform.claude.com`

Claude Code's own telemetry includes the following:

* **Usage metrics**: the sign-in itself sends some [usage metrics](https://code.claude.com/docs/en/data-usage#telemetry-services) to `api.anthropic.com` and to Datadog (`http-intake.logs.us5.datadoghq.com`), even with **Block nonessential telemetry** on, because Claude Code downloads that setting after the sign-in
* **Error reports**: a session under your settings sends none
* **WebFetch domain check**: a session sends each page's host name to `api.anthropic.com`, unless you turn on **Skip WebFetch domain check**

Claude Code keeps these on the developer's computer, among other files:

* **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.
* **The stored copy of your settings**: in Claude Code's configuration directory, `~/.claude` by default. It doesn't hold your connection.
* **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.

## Security considerations

A 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:

* **Signs in to another organization that's set up this way, on a computer with no managed settings**: the other organization's settings apply instead of yours. `forceLoginOrgUUID` in the computer's managed settings limits this.
* **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.
* **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.
* **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.
* **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.
* **Installs a plugin that contains a [mod](https://code.claude.com/docs/en/plugins/mods/overview), loads one with `--plugin-dir`, or has Claude write one**: the mod runs code as the developer. Your deny rules, **Disabled built-in tools**, and **Built-in tool policy** don't apply to actions of the mod itself. `allowManagedHooksOnly` set to `true` in your JSON limits this. It also stops developers' own hooks, and hooks and mods in plugins that developers add, including plugins from your **Plugin marketplaces**.
* **Runs a version before 2.1.329**: it ignores your settings and `enforceAnthropicSignIn`. `requiredMinimumVersion` in the computer's managed settings limits this. Don't set it on a computer that also runs Claude Desktop on your provider.

The sign-in keys and your own settings have limits too:

* **`forceLoginOrgUUID`**: the check runs on the developer's computer and isn't a security boundary. It doesn't check the organization of a Claude Console login 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.
* **`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.
* **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
* **Credential settings**: **AWS profile name**, **AWS config directory**, **GCP credentials file path**, and **Helper script** on your **Connection** 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.

To enforce budgets and rate limits and to log each model request, use an LLM gateway.

third-party/claude-desktop/credential-helper Changed · +11 / -0 lines

## Install the helper for Claude Code in the terminal

from line 80
8080 
8181By default, when a running session's credential is rejected, Claude Desktop re-runs the helper with `CLAUDE_HELPER_CONTEXT=mid-session-refresh` to recover without interrupting the user. If your helper can't run safely outside the `interactive` context, set `inferenceCredentialHelperSilentRefreshEnabled` to `false`. Claude Desktop then keeps the cached credential until the next session start and surfaces an expiry prompt instead of re-running the helper mid-session.
8282 
83## Install the helper for Claude Code in the terminal
84 
85If you [manage Claude Code in the terminal from the Enterprise Admin Console](https://claude.com/docs/third-party/claude-desktop/admin-console-claude-code.md), Claude Code can also run the **Helper script** on your **Connection** page. Claude Code checks the script before it runs it:
86 
87* **On macOS and Linux**: the script runs only if the developer's account can't change any of these: the script, the interpreter on its `#!` line, any file that an argument names, and every folder above those files. For example, make them all owned by root with mode `755`. Start the script with the full path of its interpreter, such as `#!/bin/bash`, not `#!/usr/bin/env`. The script doesn't run when Claude Code runs as root.
88* **On Windows**: install the script, and any file that an argument names, under `C:\Program Files`, not `C:\Program Files (x86)`. Give the full path of each file. Claude Code checks only where the files are, so keep that folder's default permissions.
89 
90Claude Code doesn't check the programs that your script starts, or code that its interpreter loads from the developer's folders.
91 
92Your **Helper script** doesn't run on a managed computer that sets its own credential for your cloud provider, such as `AWS_PROFILE`. When that happens, a cloud provider needs the developer's own credentials, and Claude Code in the terminal doesn't use your gateway. To see why, the developer runs `/status` in Claude Code.
93 

third-party/claude-desktop/entra-broker Changed · +26 / -0 lines

## Allow browser sign-in where your gateway uses the Entra broker

from line 63
6363 
6464The operating system's broker holds the credential and renews it silently from the device's primary refresh token. The app stores only a reference to the signed-in account, not a refresh token. When the broker can no longer renew silently (for example, the device falls out of compliance or the user's sessions are revoked in Entra), the app prompts the user to sign in again.
6565 
66Claude Code in the terminal doesn't use the broker. If you let it sign in to your gateway with the browser, it can store a refresh token on the computer. See [Allow browser sign-in where your gateway uses the Entra broker](#allow-browser-sign-in-where-your-gateway-uses-the-entra-broker).
67 
68## Allow browser sign-in where your gateway uses the Entra broker
69 
70If you [manage Claude Code in the terminal from the Enterprise Admin Console](https://claude.com/docs/third-party/claude-desktop/admin-console-claude-code.md), Claude Code in the terminal can't use the OS identity broker. If your gateway's sign-in flow is `broker`, Claude Code can't use your gateway, and after a developer signs in, it doesn't start unless their computer sets a provider itself. You can turn on a switch so that Claude Code signs in with the browser instead, while Claude Desktop still uses the broker. The switch changes the following:
71 
72* **Provider settings**: the next time a signed-in developer starts Claude Code, your gateway replaces their own provider settings and `apiKeyHelper`
73* **Gateway sign-in**: the developer approves the gateway's address and then signs in to the gateway, with `/login` in Claude Code. Until then, Claude Code refuses each prompt.
74* **Stored sign-in**: the browser sign-in stays on the developer's computer, with a refresh token if Entra returns one. On Linux and Windows, the sign-in is in the plain file `.credentials.json`. Some Windows computers use Windows Credential Manager instead.
75 
76**1. Add the redirect URI**
77 
78In your Entra app registration, add `http://127.0.0.1/gateway-sign-in/callback` under **Mobile and desktop applications**. If your **Redirect host** is `localhost`, add the `localhost` form. If the portal refuses the address, add it in the app manifest as a redirect URI for a public client (mobile and desktop).
79 
80**2. Check consent and Conditional Access**
81 
82If your tenant requires it, grant consent for `offline_access`. If your Conditional Access policies check the device, set up developers' browsers to identify it, as described in [Why use the broker](#why-use-the-broker). A browser can't meet a policy that requires token protection.
83 
84**3. Turn on both switches**
85 
86Go to **Organization settings > Products > Claude Code**, and turn on the **Allow sign-in from Claude Code in terminals and IDEs** switch. Then turn on the **Allow Claude Code to sign in with the browser instead of the Entra broker** switch, which appears when the first switch is on, and click **Save changes**. To test with one group first, if your organization has a parent organization, turn on both switches in the **Claude Code** section of that group's policy instead.
87 
88To store no refresh token, fill in **Scopes** without `offline_access`. If **Bearer token** is **Access token**, also turn off **Append offline\_access**. Developers then sign in again each time the token expires. **Scopes** also applies to Claude Desktop.
89 
90If you turn the browser sign-in switch off, the change applies the next time each developer starts Claude Code. It revokes nothing. The token stays on the computer until the developer runs `claude auth logout` in their terminal. To stop the stored refresh tokens from working, revoke the developers' sessions in Entra. This also ends their other Microsoft sign-ins, and Claude Desktop asks them to sign in again.
91 
6692## Troubleshoot
6793 
6894If sign-in fails with error code `AADSTS7000218`, **Allow public client flows** is set to No on the app registration. Set it to **Yes** under **Authentication**.

government/changelog Changed · +1 / -1 lines

from line 11
1111* Changed the tenant portal's **Seats** page and an organization's **Billing** page to show the most seats the organization can have on each seat tier.
1212* Changed the **Billing** page of an organization that uses another organization's billing account: only tenant administrators now see which organization owns the account.
1313* Added [**Export and import between computers**](https://claude.com/docs/government/config/settings.md#export-and-import-between-computers), a Config page setting that is off by default: it lets members [move their Claude Desktop data to another computer](https://claude.com/docs/government/desktop/import.md#move-your-data-to-another-computer) in a zip file, on [Claude Desktop 6.6395.0](https://claude.com/docs/cowork/changelog.md#v6-6395-0) or later.
14* Added [**Design in Claude Desktop**](https://claude.com/docs/government/config/settings.md#design-in-claude-desktop) and [**Slides in Claude Desktop**](https://claude.com/docs/government/config/settings.md#slides-in-claude-desktop), in beta, two Config page settings that are off by default: they let members [make designs and slide decks with Claude](https://claude.com/docs/government/desktop/design-and-slides.md), and appear once Anthropic enables them for your tenant.
14* Added [**Design in Claude Desktop**](https://claude.com/docs/government/config/settings.md#design-in-claude-desktop) and [**Slides in Claude Desktop**](https://claude.com/docs/government/config/settings.md#slides-in-claude-desktop), in beta, two Config page settings that are off by default: they let members [make designs and slide decks with Claude](https://claude.com/docs/government/desktop/design-and-slides.md).
1515* Added a confirmation after you save, create, or delete a seat tier.
1616* Improved the error shown when an action needs an Owner of the organization: it now says so and suggests asking an Owner for help.
1717* Fixed the **Config** page silently dropping a list entry that was typed but not added, or a connector header line not written as `Name: Value`; it now stops and says what to correct.

government/config/settings Changed · +2 / -2 lines

from line 19
1919| **Cowork in Claude Desktop** | Lets members give Claude longer tasks, such as research, analysis, and drafting documents, which it works through on its own in Claude Desktop. Without Cowork, members cannot continue their Cowork tasks. Claude Desktop versions earlier than 1.30096.1 can still show Cowork while it is off, but do not run its tasks. | On | Claude Desktop |
2020| **Code in Claude Desktop** | Lets members use Claude Code inside Claude Desktop to write and run code. Without Code, members cannot open their existing Code sessions. | On | Claude Desktop |
2121| **Scheduled tasks** | Lets members set up [tasks that Claude runs on a schedule](https://claude.com/docs/third-party/claude-desktop/configuration.md#scheduledtasksenabled). Turning it off also turns off scheduling in Claude Code, such as `/loop`. | On | Claude Desktop 2.110.0 or later, Claude Code |
22| **Design in Claude Desktop** (beta) | Lets members ask Claude for [a design](https://claude.com/docs/government/desktop/design-and-slides.md), such as a mockup, poster, or web page, and edit it with Claude. While it is off, members cannot start new designs. Turning it off does not delete the designs they have. The setting appears once [Anthropic enables it for your tenant](https://claude.com/docs/government/desktop/design-and-slides.md#turn-on-design-and-slides). | Off | Claude Desktop 6.6395.0 or later |
23| **Slides in Claude Desktop** (beta) | Lets members ask Claude for [a slide deck](https://claude.com/docs/government/desktop/design-and-slides.md) and edit it with Claude. While it is off, members cannot start new decks. Turning it off does not delete the decks they have. The setting appears once [Anthropic enables it for your tenant](https://claude.com/docs/government/desktop/design-and-slides.md#turn-on-design-and-slides). | Off | Claude Desktop 6.6395.0 or later |
22| **Design in Claude Desktop** (beta) | Lets members ask Claude for [a design](https://claude.com/docs/government/desktop/design-and-slides.md), such as a mockup, poster, or web page, and edit it with Claude. While it is off, members cannot start new designs. Turning it off does not delete the designs they have. | Off | Claude Desktop 6.6395.0 or later |
23| **Slides in Claude Desktop** (beta) | Lets members ask Claude for [a slide deck](https://claude.com/docs/government/desktop/design-and-slides.md) and edit it with Claude. While it is off, members cannot start new decks. Turning it off does not delete the decks they have. | Off | Claude Desktop 6.6395.0 or later |
2424| **Export and import between computers** | Lets members [export their Claude Desktop data to a zip file and import it on another computer](https://claude.com/docs/government/desktop/import.md#move-your-data-to-another-computer). The zip file [isn't encrypted](https://claude.com/docs/government/security/security-and-data-handling.md#can-users-export-their-data-to-another-device). | Off | Claude Desktop 6.6395.0 or later |
2525| **Claude Code** | Makes the [Claude Code command-line tool](https://claude.com/docs/government/deploy-claude-code/configure.md) available. | Off | Claude Code |
2626| **Claude for Microsoft 365** | Makes [Claude for Microsoft 365](https://claude.com/docs/government/deploy-microsoft-365/configure.md), the add-in for Excel, Word, and PowerPoint, available. | Off | Claude for Microsoft 365 |

government/desktop/design-and-slides Changed · +2 / -2 lines

from line 23
2323 
2424When Claude asks to create a design or deck, or to save a change to one, click **Create** or **Update**.
2525 
26To give Claude your brand's colors and type to use, [add a design system on your computer](https://claude.com/docs/third-party/claude-desktop/design-and-slides.md#add-a-design-system-on-one-computer).
27 
2628## Find a design or deck again
2729 
2830Click **Artifacts** in the sidebar, then click the design or deck to open it. Designs and decks are kept on your computer, so they are available only there. The zip file that moves your data to another computer [leaves them out](https://claude.com/docs/government/desktop/import.md#what-the-zip-file-leaves-out), so [export](#export-a-design-or-deck) the ones you want to keep first.
from line 45
4345* **Delete task**: the designs and decks made in the task stay on the **Artifacts** page.
4446 
4547## Turn on Design and Slides
46 
47If the settings are missing from your **Config** page, Anthropic hasn't enabled them for your tenant, so contact your Anthropic representative.
4848 
49491. As a tenant administrator or organization owner, go to **Settings > Config** in the admin portal.
50502. Under **Product availability**, expand [**Design in Claude Desktop**](https://claude.com/docs/government/config/settings.md#design-in-claude-desktop) or [**Slides in Claude Desktop**](https://claude.com/docs/government/config/settings.md#slides-in-claude-desktop), turn on its switch, and click **Save changes**.

government/desktop/import Changed · +1 / -1 lines

from line 75
7575 
7676In organizations that also allow [export and import between computers](#move-your-data-to-another-computer), Claude Desktop 6.6395.0 or later opens the dialog on **Choose where to import from**. The web app import is the **From the web** row. The **From another computer** row is for a [zip file](#export-and-import-the-zip-file).
7777 
78![Claude Desktop settings with Import and export selected and the Import from Claude dialog open on its Source step, headed Choose where to import from. A From the web row has a Sign in to Claude for Government Web button, and a From another computer row has a Choose file button.](https://mintcdn.com/claude-ai/L1k4TL2u-5RSfIQI/images/government/import/import-choose-source.png?fit=max\&auto=format\&n=L1k4TL2u-5RSfIQI\&q=85\&s=5f696440a766e4fb9982eefa8751f27e)
78![Claude Desktop settings with Import and export selected and the Import from Claude dialog open on its Source step, headed Choose where to import from. A From the web row has a Sign in to Claude for Government Web button, and a From another computer row has a Choose file button.](https://mintcdn.com/claude-ai/ArGP1lHk5ekvCwKg/images/government/import/import-choose-source.png?fit=max\&auto=format\&n=ArGP1lHk5ekvCwKg\&q=85\&s=3f94c4a6321bf01c895cd27d0d8c32d9)
7979 
8080The first step of the import dialog, in an organization that has both the web app import and the zip file import.
8181 

third-party/claude-desktop/admin-console Changed · +2 / -0 lines

from line 111
111111 
112112Most of these settings can also differ per group of users, on the **Permission policies** page under **People**, as described under [Per-group permission policies](#per-group-permission-policies).
113113 
114Claude Code in the terminal follows some of these settings after a developer signs in from their terminal, as described in [Manage Claude Code in the terminal from the Enterprise Admin Console](https://claude.com/docs/third-party/claude-desktop/admin-console-claude-code.md).
115 
114116### Choose how users authenticate to your provider
115117 
116118> [!TIP]

third-party/claude-desktop/gateway Changed · +4 / -0 lines

from line 53
5353 
5454A few details that matter here: use `127.0.0.1` (not `localhost`), include the `/callback` path, and add it under the **Mobile and desktop applications** platform specifically. That platform is the only one Entra allows to use any local port, which the app needs because it picks a free port at sign-in time. You do not need a client secret or any additional API permissions.
5555 
56If you manage this configuration from the Enterprise Admin Console, and developers also sign in to the gateway from Claude Code in the terminal, add a second redirect URI. See [Register the redirect URI for the terminal](https://claude.com/docs/third-party/claude-desktop/admin-console-claude-code.md#prepare-your-gateway).
57 
5658**2. Configure your gateway to validate the token**
5759 
5860Tell your gateway to accept the bearer token only if it was issued by your tenant **for this application**. In LiteLLM that looks like:
from line 102
100102| Issuer URL | `https://YOUR_ORG.okta.com` |
101103| Scopes | *leave empty for the default* |
102104| Redirect port | `53180` |
105 
106The [second redirect URI for Claude Code in the terminal](https://claude.com/docs/third-party/claude-desktop/admin-console-claude-code.md#prepare-your-gateway) uses the same port.
103107 
104108> [!NOTE]
105109>
Feedback