admin-setup.md +42 −4
53 53
54Claude Code fetches server-managed settings at startup and refreshes them hourly during the session, with no endpoint infrastructure to deploy. Delivery through the claude.ai admin console requires a Claude for Teams or Enterprise plan. Deployments on Amazon Bedrock, Google Cloud's Agent Platform, or Microsoft Foundry can get the same remote delivery by running a [Claude apps gateway](https://code.claude.com/docs/en/claude-apps-gateway), or use one of the file-based or OS-level mechanisms instead.54Claude Code fetches server-managed settings at startup and refreshes them hourly during the session, with no endpoint infrastructure to deploy. Delivery through the claude.ai admin console requires a Claude for Teams or Enterprise plan. Deployments on Amazon Bedrock, Google Cloud's Agent Platform, or Microsoft Foundry can get the same remote delivery by running a [Claude apps gateway](https://code.claude.com/docs/en/claude-apps-gateway), or use one of the file-based or OS-level mechanisms instead.
55 55
56If you set your provider or gateway at claude.ai under **Organization settings > Desktop 3P**, see [which settings take priority](https://claude.com/docs/third-party/claude-desktop/admin-console-claude-code#which-settings-take-priority) in the Enterprise Admin Console guide.
57
56If your organization mixes providers, configure [server-managed settings](https://code.claude.com/docs/en/server-managed-settings.md) for claude.ai users plus a [file-based or plist/registry fallback](https://code.claude.com/docs/en/managed-settings.md#delivery-mechanisms) so other users still receive managed policy.58If your organization mixes providers, configure [server-managed settings](https://code.claude.com/docs/en/server-managed-settings.md) for claude.ai users plus a [file-based or plist/registry fallback](https://code.claude.com/docs/en/managed-settings.md#delivery-mechanisms) so other users still receive managed policy.
57 59
58The plist and HKLM registry locations work with any provider and resist tampering because they require admin privileges to write. The Windows user registry at HKCU is writable without elevation, so treat it as a convenience default rather than an enforcement channel.60The plist and HKLM registry locations work with any provider and resist tampering because they require admin privileges to write. The Windows user registry at HKCU is writable without elevation, so treat it as a convenience default rather than an enforcement channel.
99| [Customization lockdown](https://code.claude.com/docs/en/settings-reference.md#strictpluginonlycustomization) | Block skills, agents, hooks, and MCP servers from user and project sources. Locking skills also stops the [skills your developers enable on claude.ai](https://code.claude.com/docs/en/skills.md#where-synced-skills-load) from syncing | `strictPluginOnlyCustomization` |101| [Customization lockdown](https://code.claude.com/docs/en/settings-reference.md#strictpluginonlycustomization) | Block skills, agents, hooks, and MCP servers from user and project sources. Locking skills also stops the [skills your developers enable on claude.ai](https://code.claude.com/docs/en/skills.md#where-synced-skills-load) from syncing | `strictPluginOnlyCustomization` |
100| [Disable claude.ai sync](https://code.claude.com/docs/en/settings-reference.md#syncclaudeaiskills) | Stop Claude Code from loading the [skills](https://code.claude.com/docs/en/skills.md#how-synced-skills-behave) and [plugins](https://code.claude.com/docs/en/plugins/loading.md#synced-plugins) your developers enable on claude.ai. If you turn off Skills for your organization on claude.ai, Claude Code stops syncing both, and on v2.1.273 or later it also removes the ones it already synced. To stop either one without turning Skills off, set its key to `false` in managed settings | `syncClaudeAiSkills`, `syncClaudeAiPlugins` |102| [Disable claude.ai sync](https://code.claude.com/docs/en/settings-reference.md#syncclaudeaiskills) | Stop Claude Code from loading the [skills](https://code.claude.com/docs/en/skills.md#how-synced-skills-behave) and [plugins](https://code.claude.com/docs/en/plugins/loading.md#synced-plugins) your developers enable on claude.ai. If you turn off Skills for your organization on claude.ai, Claude Code stops syncing both, and on v2.1.273 or later it also removes the ones it already synced. To stop either one without turning Skills off, set its key to `false` in managed settings | `syncClaudeAiSkills`, `syncClaudeAiPlugins` |
101| [Hook restrictions](https://code.claude.com/docs/en/settings-reference.md#allowmanagedhooksonly) | Restrict which hooks run and restrict HTTP hook URLs; see [what runs under `allowManagedHooksOnly`](https://code.claude.com/docs/en/settings-reference#what-runs-under-allowmanagedhooksonly) for the full effect list | `allowManagedHooksOnly`, `allowedHttpHookUrls` |103| [Hook restrictions](https://code.claude.com/docs/en/settings-reference.md#allowmanagedhooksonly) | Restrict which hooks run and restrict HTTP hook URLs; see [what runs under `allowManagedHooksOnly`](https://code.claude.com/docs/en/settings-reference#what-runs-under-allowmanagedhooksonly) for the full effect list | `allowManagedHooksOnly`, `allowedHttpHookUrls` |
102104| [Login enforcement](https://code.claude.com/docs/en/settings-reference.md#forceloginmethod) | Restrict login to a specific method or Anthropic organization. The method restriction applies across the VS Code extension, Agent SDK, `claude setup-token`, and `/install-github-app`, and the terminal's interactive login screen, reached by `/login` or first-run onboarding, pre-selects the method without enforcing it; Claude Code verifies the organization for claude.ai account logins in the terminal, VS Code extension, and Agent SDK, and doesn't check it for Claude Console logins or for [gateway](https://code.claude.com/docs/en/claude-apps-gateway) sign-in. Before v2.1.212, only terminal logins applied either key. When set, sessions authenticated by `ANTHROPIC_API_KEY`, `ANTHROPIC_AUTH_TOKEN`, or `apiKeyHelper` are blocked at startup; cloud provider sessions aren't affected unless one of those credentials, or an API key saved by an earlier Claude Console login, is also present | `forceLoginMethod`, `forceLoginOrgUUID` || [Login method enforcement](https://code.claude.com/docs/en/settings-reference.md#forceloginmethod) | Restrict login to a specific method. The restriction applies across the VS Code extension, Agent SDK, `claude setup-token`, and `/install-github-app`. Don't rely on a `claudeai` or `console` value to block other logins at the terminal's interactive login screen, reached by `/login` or first-run onboarding. Before v2.1.212, only terminal logins applied this key or `forceLoginOrgUUID` | `forceLoginMethod` |
105| [Login organization enforcement](https://code.claude.com/docs/en/settings-reference.md#forceloginorguuid) | Restrict claude.ai logins to your organization in the terminal, VS Code extension, and Agent SDK. Don't rely on this key to restrict the organization for Claude Console logins. Claude Code doesn't check it for [gateway](https://code.claude.com/docs/en/claude-apps-gateway) sign-in | `forceLoginOrgUUID` |
106| [Credentials the login keys block](https://code.claude.com/docs/en/authentication.md#restrict-login-to-your-organization) | With either key set, sessions authenticated by `ANTHROPIC_API_KEY`, `ANTHROPIC_AUTH_TOKEN`, or `apiKeyHelper` are blocked at startup. Cloud provider sessions aren't affected unless one of those credentials, or an API key saved by an earlier Claude Console login, is also present | `forceLoginMethod`, `forceLoginOrgUUID` |
103| [Provider restrictions](https://code.claude.com/docs/en/settings-reference.md#allowedproviders) | Limit which API providers a machine may use. A session on a provider that isn't listed is refused at startup, at login, and when it next contacts the API. Requires Claude Code v2.1.285 or later | `allowedProviders` |107| [Provider restrictions](https://code.claude.com/docs/en/settings-reference.md#allowedproviders) | Limit which API providers a machine may use. A session on a provider that isn't listed is refused at startup, at login, and when it next contacts the API. Requires Claude Code v2.1.285 or later | `allowedProviders` |
104| [Disable agent view](https://code.claude.com/docs/en/agent-view.md#how-background-sessions-are-hosted) | Turn off `claude agents`, `--bg`, `/background`, and the on-demand supervisor | `disableAgentView` |108| [Disable agent view](https://code.claude.com/docs/en/agent-view.md#how-background-sessions-are-hosted) | Turn off `claude agents`, `--bg`, `/background`, and the on-demand supervisor | `disableAgentView` |
105| [Configure the corporate launcher](https://code.claude.com/docs/en/corporate-launcher.md) | Prefix the [background-agent supervisor](https://code.claude.com/docs/en/agent-view.md#how-background-sessions-are-hosted), its workers, and the [other covered background processes](https://code.claude.com/docs/en/corporate-launcher.md#what-the-launcher-covers) with a required corporate launcher instead of turning agent view off | `processWrapper` |109| [Configure the corporate launcher](https://code.claude.com/docs/en/corporate-launcher.md) | Prefix the [background-agent supervisor](https://code.claude.com/docs/en/agent-view.md#how-background-sessions-are-hosted), its workers, and the [other covered background processes](https://code.claude.com/docs/en/corporate-launcher.md#what-the-launcher-covers) with a required corporate launcher instead of turning agent view off | `processWrapper` |
131 135
132On Team and Enterprise plans, the GitHub section of [**Organization settings > Git providers**](https://claude.ai/admin-settings/source-control) lists the GitHub organizations and personal accounts linked to your Claude organization through the [Claude GitHub App](https://github.com/apps/claude). Claude Code, [Claude Tag](https://claude.com/docs/claude-tag/admins/configure-github), and Claude Security share the list. Opening the page requires an [Owner role](https://code.claude.com/docs/en/server-managed-settings.md#access-control) in your Claude organization. The Admin role can't open it.136On Team and Enterprise plans, the GitHub section of [**Organization settings > Git providers**](https://claude.ai/admin-settings/source-control) lists the GitHub organizations and personal accounts linked to your Claude organization through the [Claude GitHub App](https://github.com/apps/claude). Claude Code, [Claude Tag](https://claude.com/docs/claude-tag/admins/configure-github), and Claude Security share the list. Opening the page requires an [Owner role](https://code.claude.com/docs/en/server-managed-settings.md#access-control) in your Claude organization. The Admin role can't open it.
133 137
134138Someone can link an account from the Git providers page or by connecting GitHub to Claude:By default, someone can link an account from the Git providers page or by connecting GitHub to Claude:
135 139
136* **Owner connection**: an Owner clicks **Connect** in that section, or **Add organization** once an account is connected, and installs the Claude GitHub App on a GitHub organization. Linking an organization this way requires an Owner of your Claude organization who also owns the GitHub organization.140* **Owner connection**: an Owner clicks **Connect** in that section, or **Add organization** once an account is connected, and installs the Claude GitHub App on a GitHub organization. Linking an organization this way requires an Owner of your Claude organization who also owns the GitHub organization.
137* **Member connection**: when a member connects their GitHub account to Claude, for example while [setting up cloud sessions](https://code.claude.com/docs/en/web-quickstart.md#connect-github), Claude links the GitHub accounts that member owns where the Claude GitHub App is already installed. That can include their personal account and GitHub organizations they own.141* **Member connection**: when a member connects their GitHub account to Claude, for example while [setting up cloud sessions](https://code.claude.com/docs/en/web-quickstart.md#connect-github), Claude links the GitHub accounts that member owns where the Claude GitHub App is already installed. That can include their personal account and GitHub organizations they own.
138 142
139143A row marked **Not linked** comes from your own GitHub sign-in. It's an account you can see on GitHub where the Claude GitHub App is installed.A row marked **Not linked** can come from your own GitHub sign-in. That's an account you can see on GitHub where the Claude GitHub App is installed.
140 144
141145To unlink an account from your Claude organization, open its row's menu and select **Unlink from this workspace**. Unlinking leaves the Claude GitHub App installed on GitHub, and the account is linked again the next time one of its owners connects GitHub to Claude. To keep it from being linked again, uninstall the Claude GitHub App from that account on GitHub.To unlink an account from your Claude organization, open its row's menu and select **Unlink from this workspace**. The Claude GitHub App stays installed on GitHub. Unless you [limit which accounts can be linked](#limit-which-github-accounts-can-be-linked), the account is linked again the next time one of its owners connects GitHub to Claude. To keep it from being linked again, uninstall the Claude GitHub App from that account on GitHub.
146
147> [!NOTE]
148>
149> To stop new links to accounts you haven't approved, or to keep an account unlinked without uninstalling the app, [limit which accounts can be linked](#limit-which-github-accounts-can-be-linked).
142 150
143On Enterprise plans, the [Compliance API](https://platform.claude.com/docs/en/api/compliance/activities/list) activity types for linking and unlinking are `github_app_installation_linked` and `github_app_installation_unlinked`.151On Enterprise plans, the [Compliance API](https://platform.claude.com/docs/en/api/compliance/activities/list) activity types for linking and unlinking are `github_app_installation_linked` and `github_app_installation_unlinked`.
144 152
153#### Limit which GitHub accounts can be linked
154
155To restrict which github.com organizations and personal accounts can be linked to your Claude organization, allow the ones you approve and turn on **Only allowed accounts can be linked**. For example, if you allow only `example-corp`, neither members nor Owners can link a member's personal account. Accounts that are already linked keep working until you unlink them, even if they aren't allowed.
156
157When an account is linked, Claude can act on its repositories as the Claude GitHub App, for features such as [Code Review](https://code.claude.com/docs/en/code-review.md) and Claude Tag. Members can still connect GitHub to Claude while the setting is on. Their own cloud sessions use [each member's GitHub access](https://code.claude.com/docs/en/claude-code-on-the-web.md#github-authentication-options), so don't rely on this setting to limit which repositories those sessions reach.
158
159**1. Allow organizations**
160
161As an Owner on a Team or Enterprise plan, open the GitHub section of [**Organization settings > Git providers**](https://claude.ai/admin-settings/source-control) in your browser and click **Choose organizations**. Select the organizations you approve in the table and click **Allow**. Include ones that are already linked, because they aren't allowed automatically.
162
163**2. Allow other accounts by name**
164
165To allow a personal account, or an organization that isn't in the table, click **Allow by name** and enter its GitHub username or organization name. If prompted, connect your own GitHub account first. You don't link any accounts by connecting from that prompt.
166
167**3. Turn on the setting**
168
169Above the table, turn on **Only allowed accounts can be linked**, which is off by default.
170
171**4. Unlink accounts you don't approve**
172
173When you unlink an account, features such as Code Review stop working on its repositories for your Claude organization. Scheduled tasks that a [Claude agent identity](https://claude.com/docs/claude-tag/concepts/agent-identity) runs on those repositories turn off. Members' own [cloud scheduled tasks](https://code.claude.com/docs/en/routines.md) stay on.
174
175To see the accounts that aren't allowed, expand **Not allowed** for organizations and **Linked personal accounts** for personal accounts. Select the linked accounts to remove and click **Unlink**, or click **Allow** for the ones to keep.
176
177**5. Get allowed accounts linked**
178
179If an allowed account shows **Not linked**, ask someone who owns it on GitHub to link it through an [Owner or member connection](#connected-github-accounts). For a member connection, have them [install the Claude GitHub App](https://github.com/apps/claude/installations/new) on the account first.
180
181To take an account off the allowed list and keep its link, select it under **Allowed** and click **Disallow**. If you unlink an allowed account, it also comes off the allowed list.
182
145## Set up usage visibility183## Set up usage visibility
146 184
147Choose monitoring based on what you need to report on. The dashboards, APIs, and spend controls differ between Claude for Teams or Enterprise plans and Claude Console organizations, so check the Availability column before you plan your reporting around a capability.185Choose monitoring based on what you need to report on. The dashboards, APIs, and spend controls differ between Claude for Teams or Enterprise plans and Claude Console organizations, so check the Availability column before you plan your reporting around a capability.