modified
--- a/github-enterprise-server.md +++ b/github-enterprise-server.md @@ -49,7 +49,7 @@ Enable Code Review -Go to [claude.ai/admin-settings/claude-code](<https://claude.ai/admin-settings/claude-code>) and enable [Code Review](</docs/en/code-review-setup>) for your GHES repositories using the same configuration as github.com. +Go to [**Organization settings > Claude Ship**](<https://claude.ai/admin-settings/claude-code#code-review>) and enable [Code Review](</docs/en/code-review-setup>) for your GHES repositories using the same configuration as github.com. ### GitHub App permissions @@ -79,7 +79,7 @@ ## Developer workflow -Claude Code detects your GHES hostname automatically from the git remote in your working directory. Clone a repository from your GHES instance as you normally would, replacing `github.example.com` and the repository path with your GHES hostname and repository: +Claude Code detects your GHES hostname automatically from the git remote in your working directory. Clone a repository from your GHES instance, replacing `github.example.com` and the repository path with your GHES hostname and repository: git clone git@github.example.com:platform/api-service.git cd api-service
modified
--- a/github-enterprise-server.md +++ b/github-enterprise-server.md @@ -92,7 +92,7 @@ ### Teleport sessions to your terminal -Pull a cloud session into your local terminal with `claude --teleport`. Teleport verifies you’re in a checkout of the same GHES repository before fetching the branch and loading the session history. See [teleport requirements](</docs/en/claude-code-on-the-web#teleport-requirements>) for details. +Pull a cloud session into your local terminal with `claude --teleport`. Teleport verifies you’re in a checkout of the same GHES repository before loading the session history. See [teleport requirements](</docs/en/claude-code-on-the-web#teleport-requirements>) for details. ## Plugin marketplaces on GHES
modified
--- a/github-enterprise-server.md +++ b/github-enterprise-server.md @@ -139,7 +139,7 @@ * **Use a full git URL.** The `owner/repo` shorthand always resolves to github.com and cannot reference a GHES host. * **Prefer HTTPS URLs.** SSH clones fail on machines that do not already trust your GHES host key. An HTTPS URL with your organization’s standard git credential helper works on any machine with credentials configured. - * **Confirm each machine can clone from your GHES host.** If a machine lacks credentials, the marketplace is registered but never installed, and its plugins report as not found instead of prompting for credentials. + * **Confirm each machine can clone from your GHES host.** If a machine lacks credentials, the clone fails without prompting for them, and the `/plugin` **Errors** tab shows why. * **Confirm the setting reaches each machine.** A managed settings file only takes effect on machines it’s deployed to, for example through your device management system. See [Deploy managed settings](</docs/en/managed-settings#delivery-mechanisms>) for file locations. ### Allowlist GHES marketplaces in managed settings
modified
Show diff (228 lines)
--- a/github-enterprise-server.md +++ b/github-enterprise-server.md @@ -2,11 +2,7 @@ GitHub Enterprise Server (GHES) support lets your organization use Claude Code with repositories hosted on your self-managed GitHub instance instead of github.com. Once an Owner connects your GHES instance, developers can run cloud sessions and get automated code reviews without any per-repository configuration. Plugin marketplaces hosted on your instance are also supported; credential requirements vary by surface, as described in Plugin marketplaces on GHES. For repositories on github.com, see [Use Claude Code in the cloud](</docs/en/claude-code-on-the-web>) and [Code Review](</docs/en/code-review>). To run Claude in your own CI infrastructure, see [GitHub Actions](</docs/en/github-actions>). -## - -​ - -What works with GitHub Enterprise Server +## What works with GitHub Enterprise Server The table below shows which Claude Code features support GHES and any differences from github.com behavior. @@ -21,11 +17,7 @@ GitHub Actions| ✅ Supported| Requires manual workflow setup; `/install-github-app` is github.com only GitHub MCP server| ❌ Not supported| The GitHub MCP server does not work with GHES instances -## - -​ - -Admin setup +## Admin setup An Owner connects your GHES instance to Claude Code once. You need the Owner or Primary Owner role in your Claude organization and permission to create GitHub Apps on your GHES instance. The guided setup generates a GitHub App manifest and redirects you to your GHES instance to create the app in one click. If your environment blocks the redirect flow, an alternative manual setup is available. @@ -59,11 +51,7 @@ Go to [claude.ai/admin-settings/claude-code](<https://claude.ai/admin-settings/claude-code>) and enable [Code Review](</docs/en/code-review-setup>) for your GHES repositories using the same configuration as github.com. -### - -​ - -GitHub App permissions +### GitHub App permissions The manifest configures the GitHub App with the permissions and webhook events below, which together cover cloud sessions, Code Review, Claude Security, and plugin marketplaces: @@ -81,27 +69,15 @@ The app subscribes to `pull_request`, `issue_comment`, `pull_request_review_comment`, `pull_request_review`, `check_run`, and `status` events. GitHub applies a manifest only when the app is created, so an app created from an earlier version of the manifest keeps the permissions and events it was created with. If your app is missing any of the permissions or events above, add them in the app’s settings on your GHES instance. GitHub then asks an owner of each installation to approve the new permissions, and the installation keeps its old permissions until they do. -### - -​ - -Manual setup +### Manual setup If the guided redirect flow is blocked by your network configuration, click **Connect** or **Add instance** , then select **Add manually** instead of **Set up automatically**. Create a GitHub App on your GHES instance with the permissions and events above, then enter the connection details in the form: a display name, your GHES hostname and optional port, and the app’s ID, client ID, client secret, webhook secret, and private key. The form also accepts an optional custom CA certificate and read replica hostnames. Claude generates the app’s webhook URL when you save the connection. After you click **Add configuration** , open the connection’s **More options** menu, select **Copy webhook URL** , and paste the URL into the app’s webhook settings on your GHES instance. Use the same webhook secret you entered in the form. -### - -​ - -Network requirements +### Network requirements For Anthropic-hosted sessions, your GHES instance must be reachable from Anthropic infrastructure so Claude can clone repositories and post review comments. If your GHES instance is behind a firewall, allowlist Anthropic’s [outbound IP addresses](<https://platform.claude.com/docs/en/api/ip-addresses#outbound-ip-addresses>). Sessions in a [self-hosted environment](</docs/en/self-hosted-environments-deploy#configure-git>) clone from inside your network instead, unless the runner opts into the [Anthropic git proxy](</docs/en/self-hosted-environments-deploy#use-the-anthropic-git-proxy>), which fetches from Anthropic’s side and needs the same reachability. Hosted pre-session flows, such as the repository picker, run on Anthropic’s side before a session starts. They need your GHES instance to be reachable from Anthropic infrastructure even when the session runs in a self-hosted environment. The [SCM connector](</docs/en/self-hosted-environments-reference#scm-connector-flags>) isn’t available, so those flows can’t reach a GHES host that’s only routable internally. -## - -​ - -Developer workflow +## Developer workflow Claude Code detects your GHES hostname automatically from the git remote in your working directory. Clone a repository from your GHES instance as you normally would, replacing `github.example.com` and the repository path with your GHES hostname and repository: @@ -114,19 +90,11 @@ The session clones your repository from GHES and pushes changes back to a branch. Monitor progress at [claude.ai/code](<https://claude.ai/code>). See [Use Claude Code in the cloud](</docs/en/claude-code-on-the-web>) for the full cloud session workflow including diff review, auto-fix, and cloud scheduled tasks. -### - -​ - -Teleport sessions to your terminal +### Teleport sessions to your terminal Pull a cloud session into your local terminal with `claude --teleport`. Teleport verifies you’re in a checkout of the same GHES repository before fetching the branch and loading the session history. See [teleport requirements](</docs/en/claude-code-on-the-web#teleport-requirements>) for details. -## - -​ - -Plugin marketplaces on GHES +## Plugin marketplaces on GHES Host plugin marketplaces on your GHES instance to distribute internal tooling across your organization. The marketplace structure is identical to github.com-hosted marketplaces, but installation works differently depending on where you add the marketplace, and credentials differ across surfaces: @@ -140,11 +108,7 @@ GitHub Enterprise connections on claude.ai are per user when a marketplace is added from user settings. The admin setup connects your GHES instance to your organization, but it does not connect individual user accounts: each user who adds a GHES marketplace from their own settings must first connect their own GitHub Enterprise account, and one user’s connection, including the Owner’s, does not cover anyone else. Marketplaces added by an Owner in the organization plugin settings do not put this requirement on users, because ongoing fetches use the organization’s GitHub App. The Owner adding the marketplace still needs their own GitHub Enterprise account connected at add time. -### - -​ - -Add a GHES marketplace +### Add a GHES marketplace The `owner/repo` shorthand always resolves to github.com. For GHES-hosted marketplaces, use the full git URL, replacing `github.example.com` and the repository path with your own. HTTPS URLs are recommended: @@ -156,11 +120,7 @@ Claude Code runs git non-interactively and rejects SSH connections to hosts that are not in the machine’s `known_hosts` file. An HTTPS URL with a git credential helper avoids the `known_hosts` requirement. See [Create and distribute a plugin marketplace](</docs/en/plugins/create-marketplace>) for the full guide to building marketplaces. -### - -​ - -Pre-register GHES marketplaces with managed settings +### Pre-register GHES marketplaces with managed settings The `extraKnownMarketplaces` setting pre-registers a marketplace so developers get it without manual setup. It works from [any settings file](</docs/en/settings-reference#extraknownmarketplaces>), including a repository’s `.claude/settings.json`; managed settings deliver it organization-wide: @@ -182,11 +142,7 @@ * **Confirm each machine can clone from your GHES host.** If a machine lacks credentials, the marketplace is registered but never installed, and its plugins report as not found instead of prompting for credentials. * **Confirm the setting reaches each machine.** A managed settings file only takes effect on machines it’s deployed to, for example through your device management system. See [Deploy managed settings](</docs/en/managed-settings#delivery-mechanisms>) for file locations. -### - -​ - -Allowlist GHES marketplaces in managed settings +### Allowlist GHES marketplaces in managed settings If your organization uses [managed settings](</docs/en/settings>) to restrict which marketplaces developers can add, use the `hostPattern` source type to allow all marketplaces from your GHES instance without enumerating each repository. See [Delivery mechanisms](</docs/en/managed-settings#delivery-mechanisms>) for file locations on each platform. Add the JSON to your `managed-settings.json` file or equivalent MDM policy: @@ -201,44 +157,24 @@ See the [strictKnownMarketplaces](</docs/en/settings-reference#strictknownmarketplaces>) and [extraKnownMarketplaces](</docs/en/settings-reference#extraknownmarketplaces>) settings reference for the complete schema. -## - -​ - -Limitations +## Limitations A few features behave differently on GHES than on github.com. The feature table summarizes support; this section covers the workarounds. * **`/install-github-app` command**: follow the admin setup flow on claude.ai instead. If you also want GitHub Actions workflows on GHES, adapt the [example workflow](<https://github.com/anthropics/claude-code-action/blob/main/examples/claude.yml>) manually. * **GitHub MCP server** : in a session on your own machine, use the `gh` CLI configured for your GHES host instead. Run `gh auth login --hostname github.example.com` to authenticate, then Claude can use `gh` commands there. -## - -​ - -Troubleshooting - -### - -​ - -Cloud session fails to clone repository +## Troubleshooting + +### Cloud session fails to clone repository If `claude --cloud` fails with a clone error, verify that an Owner has completed setup for your GHES instance and that the GitHub App is installed on the repository you’re working in. Ask the Owner who connected the instance to confirm that the hostname registered in Claude settings matches the hostname in your git remote. If the session stops with “Authentication failed while accessing the repository”, you may not have connected your own GitHub Enterprise account. Connect it from the repository picker on [claude.ai/code](<https://claude.ai/code>), then start a new session. -### - -​ - -Marketplace add fails with a policy error +### Marketplace add fails with a policy error If `/plugin marketplace add` is blocked for your GHES URL, your organization has restricted marketplace sources. Ask your admin to add a `hostPattern` entry for your GHES hostname in managed settings. -### - -​ - -Marketplace add on claude.ai fails with a GitHub access error +### Marketplace add on claude.ai fails with a GitHub access error If adding a GHES marketplace from your user settings fails with a generic error like “Marketplace couldn’t be added”, check your GitHub Enterprise connection first. This is what appears when your own GitHub Enterprise account is not connected to Claude, even if your organization’s GHES instance is configured and other users are connected. The dialog does not point to the GitHub Enterprise connect flow, and the “Connect to GitHub” option on the Browse tab signs in to github.com, which does not grant access to GHES repositories. Connect your GitHub Enterprise account in one of these places, then add the marketplace again: @@ -247,19 +183,11 @@ Alternatively, ask an Owner to add the marketplace in the organization plugin settings, which removes the per-user connection requirement. On other claude.ai surfaces, a “Repository not found. If it’s private, GitHub access is required” error on a GHES marketplace usually indicates the same missing connection. Connect your GitHub Enterprise account through one of the paths above, then try again. -### - -​ - -GHES instance not reachable +### GHES instance not reachable If reviews or Anthropic-hosted cloud sessions time out, your GHES instance may not be reachable from Anthropic infrastructure. Confirm your firewall allows inbound connections from Anthropic’s [outbound IP addresses](<https://platform.claude.com/docs/en/api/ip-addresses#outbound-ip-addresses>). Sessions in a [self-hosted environment](</docs/en/self-hosted-environments>) reach GHES from inside your network, so when one of them can’t clone, check the runner’s own network path instead. For the repository picker and other hosted pre-session flows, see Network requirements. -### - -​ - -Connection test passes but a second test fails +### Connection test passes but a second test fails The second test connects to your GHES instance the way Anthropic-hosted cloud sessions do. Find your message to see whether to check your firewall or try again: @@ -268,19 +196,11 @@ To test again, open the connection’s **More options** menu in [**Organization settings > Git providers**](<https://claude.ai/admin-settings/source-control#github-enterprise>) and select **Test connection**. -### - -​ - -Session start fails with `Unable to get organization UUID` +### Session start fails with `Unable to get organization UUID` Claude Code couldn’t read a claude.ai organization from your credentials. Sign in with `/login` using an account in your Team or Enterprise organization, since GitHub Enterprise Server support is limited to those plans. See [Unable to get organization UUID](</docs/en/claude-code-on-the-web#unable-to-get-organization-uuid>) for the causes and the other messages this state produces. -## - -​ - -Related resources +## Related resources These pages cover the features referenced throughout this guide in more depth:
modified
--- a/github-enterprise-server.md +++ b/github-enterprise-server.md @@ -210,7 +210,7 @@ A few features behave differently on GHES than on github.com. The feature table summarizes support; this section covers the workarounds. * **`/install-github-app` command**: follow the admin setup flow on claude.ai instead. If you also want GitHub Actions workflows on GHES, adapt the [example workflow](<https://github.com/anthropics/claude-code-action/blob/main/examples/claude.yml>) manually. - * **GitHub MCP server** : use the `gh` CLI configured for your GHES host instead. Run `gh auth login --hostname github.example.com` to authenticate, then Claude can use `gh` commands in sessions. + * **GitHub MCP server** : in a session on your own machine, use the `gh` CLI configured for your GHES host instead. Run `gh auth login --hostname github.example.com` to authenticate, then Claude can use `gh` commands there. ##
modified
--- a/github-enterprise-server.md +++ b/github-enterprise-server.md @@ -259,6 +259,19 @@ ​ +Connection test passes but a second test fails + +The second test connects to your GHES instance the way Anthropic-hosted cloud sessions do. Find your message to see whether to check your firewall or try again: + + * **`Connection test passed, but a second test failed.`** : if your instance is behind a firewall, allow all of Anthropic’s [outbound IP addresses](<https://platform.claude.com/docs/en/api/ip-addresses#outbound-ip-addresses>), because a connection test can pass even when your firewall blocks some of them. You can also try again in a few minutes. + * **`Connection test passed, but a second test could not run.`** : try again in a few minutes. + +To test again, open the connection’s **More options** menu in [**Organization settings > Git providers**](<https://claude.ai/admin-settings/source-control#github-enterprise>) and select **Test connection**. + +### + +​ + Session start fails with `Unable to get organization UUID` Claude Code couldn’t read a claude.ai organization from your credentials. Sign in with `/login` using an account in your Team or Enterprise organization, since GitHub Enterprise Server support is limited to those plans. See [Unable to get organization UUID](</docs/en/claude-code-on-the-web#unable-to-get-organization-uuid>) for the causes and the other messages this state produces.
modified
--- a/github-enterprise-server.md +++ b/github-enterprise-server.md @@ -112,7 +112,7 @@ claude --cloud "Add retry logic to the payment webhook handler" -The session clones your repository from GHES and pushes changes back to a branch. Monitor progress at [claude.ai/code](<https://claude.ai/code>). See [Use Claude Code in the cloud](</docs/en/claude-code-on-the-web>) for the full cloud session workflow including diff review, auto-fix, and routines. +The session clones your repository from GHES and pushes changes back to a branch. Monitor progress at [claude.ai/code](<https://claude.ai/code>). See [Use Claude Code in the cloud](</docs/en/claude-code-on-the-web>) for the full cloud session workflow including diff review, auto-fix, and cloud scheduled tasks. ###
modified
--- a/github-enterprise-server.md +++ b/github-enterprise-server.md @@ -57,7 +57,7 @@ Enable Code Review -Go to [claude.ai/admin-settings/claude-code](<https://claude.ai/admin-settings/claude-code>) and enable [Code Review](</docs/en/code-review#set-up-code-review>) for your GHES repositories using the same configuration as github.com. +Go to [claude.ai/admin-settings/claude-code](<https://claude.ai/admin-settings/claude-code>) and enable [Code Review](</docs/en/code-review-setup>) for your GHES repositories using the same configuration as github.com. ###
modified
--- a/github-enterprise-server.md +++ b/github-enterprise-server.md @@ -12,7 +12,7 @@ Feature| GHES support| Notes ---|---|--- -Cloud sessions| ✅ Supported| An Owner connects the GHES instance once; developers use `claude --cloud` or [claude.ai/code](<https://claude.ai/code>) as usual +Cloud sessions| ✅ Supported| An Owner connects the GHES instance once; developers use `claude --cloud` or [claude.ai/code](<https://claude.ai/code>) Code Review| ✅ Supported| Same automated PR reviews as github.com Claude Security| ✅ Supported| Available in public beta for Enterprise plans at [claude.ai/security](<https://claude.ai/security>) Teleport sessions| ✅ Supported| Move sessions between cloud and terminal with `--teleport` @@ -27,7 +27,7 @@ Admin setup -An Owner connects your GHES instance to Claude Code once. After that, developers in your organization can use GHES repositories without any additional configuration. You need the Owner or Primary Owner role in your Claude organization and permission to create GitHub Apps on your GHES instance. The guided setup generates a GitHub App manifest and redirects you to your GHES instance to create the app in one click. If your environment blocks the redirect flow, an alternative manual setup is available. +An Owner connects your GHES instance to Claude Code once. You need the Owner or Primary Owner role in your Claude organization and permission to create GitHub Apps on your GHES instance. The guided setup generates a GitHub App manifest and redirects you to your GHES instance to create the app in one click. If your environment blocks the redirect flow, an alternative manual setup is available. 1 @@ -103,7 +103,7 @@ Developer workflow -Once an Owner has connected the GHES instance, no developer-side configuration is needed. Claude Code detects your GHES hostname automatically from the git remote in your working directory. Clone a repository from your GHES instance as you normally would, replacing `github.example.com` and the repository path with your GHES hostname and repository: +Claude Code detects your GHES hostname automatically from the git remote in your working directory. Clone a repository from your GHES instance as you normally would, replacing `github.example.com` and the repository path with your GHES hostname and repository: git clone git@github.example.com:platform/api-service.git cd api-service @@ -224,7 +224,7 @@ Cloud session fails to clone repository -If `claude --cloud` fails with a clone error, verify that an Owner has completed setup for your GHES instance and that the GitHub App is installed on the repository you’re working in. Ask the Owner who connected the instance to confirm that the hostname registered in Claude settings matches the hostname in your git remote. +If `claude --cloud` fails with a clone error, verify that an Owner has completed setup for your GHES instance and that the GitHub App is installed on the repository you’re working in. Ask the Owner who connected the instance to confirm that the hostname registered in Claude settings matches the hostname in your git remote. If the session stops with “Authentication failed while accessing the repository”, you may not have connected your own GitHub Enterprise account. Connect it from the repository picker on [claude.ai/code](<https://claude.ai/code>), then start a new session. ###
modified
--- a/github-enterprise-server.md +++ b/github-enterprise-server.md @@ -17,7 +17,7 @@ Claude Security| ✅ Supported| Available in public beta for Enterprise plans at [claude.ai/security](<https://claude.ai/security>) Teleport sessions| ✅ Supported| Move sessions between cloud and terminal with `--teleport` Plugin marketplaces| ✅ Supported| Credential requirements differ by surface. See Plugin marketplaces on GHES -Contribution metrics| ✅ Supported| Delivered via webhooks to the [analytics dashboard](</docs/en/analytics>) +Contribution metrics| ❌ Not supported| Requires repositories hosted on github.com. The [analytics dashboard](</docs/en/analytics>) still shows usage metrics for work in GHES repositories GitHub Actions| ✅ Supported| Requires manual workflow setup; `/install-github-app` is github.com only GitHub MCP server| ❌ Not supported| The GitHub MCP server does not work with GHES instances @@ -55,9 +55,9 @@ 5 -Enable features - -Go to [claude.ai/admin-settings/claude-code](<https://claude.ai/admin-settings/claude-code>) and enable [Code Review](</docs/en/code-review#set-up-code-review>) and [contribution metrics](</docs/en/analytics#enable-contribution-metrics>) for your GHES repositories using the same configuration as github.com. +Enable Code Review + +Go to [claude.ai/admin-settings/claude-code](<https://claude.ai/admin-settings/claude-code>) and enable [Code Review](</docs/en/code-review#set-up-code-review>) for your GHES repositories using the same configuration as github.com. ### @@ -65,7 +65,7 @@ GitHub App permissions -The manifest configures the GitHub App with the permissions and webhook events below, which together cover cloud sessions, Code Review, Claude Security, plugin marketplaces, and contribution metrics: +The manifest configures the GitHub App with the permissions and webhook events below, which together cover cloud sessions, Code Review, Claude Security, and plugin marketplaces: Permission| Access| Used for ---|---|--- @@ -274,6 +274,6 @@ * [Use Claude Code in the cloud](</docs/en/claude-code-on-the-web>): run Claude Code sessions on cloud infrastructure * [Code Review](</docs/en/code-review>): automated PR reviews * [Plugin marketplaces](</docs/en/plugins/host-marketplace>): build and distribute plugin catalogs - * [Analytics](</docs/en/analytics>): track usage and contribution metrics + * [Analytics](</docs/en/analytics>): track Claude Code usage across your organization * [Managed settings](</docs/en/settings>): organization-wide policy configuration * [Network configuration](</docs/en/network-config>): firewall and IP allowlist requirements
modified
--- a/github-enterprise-server.md +++ b/github-enterprise-server.md @@ -31,15 +31,15 @@ 1 -Open Claude Code admin settings - -Go to [claude.ai/admin-settings/claude-code](<https://claude.ai/admin-settings/claude-code>) and find the GitHub Enterprise Server section. +Open Git providers settings + +Go to [**Organization settings > Git providers**](<https://claude.ai/admin-settings/source-control#github-enterprise>) and find the GitHub Enterprise section. 2 Start the guided setup -Click **Connect**. Enter a display name of up to 20 characters for the connection and your GHES hostname, for example `github.example.com`. If your GHES instance uses a self-signed or private certificate authority, paste the CA certificate in the optional field. +Click **Connect** , or **Add instance** if an instance is already connected, then select **Set up automatically**. Enter a display name of up to 20 characters for the connection and your GHES hostname, for example `github.example.com`. If your GHES instance uses a self-signed or private certificate authority, paste the CA certificate in the optional field. 3 @@ -57,7 +57,7 @@ Enable features -Return to [claude.ai/admin-settings/claude-code](<https://claude.ai/admin-settings/claude-code>) and enable [Code Review](</docs/en/code-review#set-up-code-review>), Claude Security, and [contribution metrics](</docs/en/analytics#enable-contribution-metrics>) for your GHES repositories using the same configuration as github.com. +Go to [claude.ai/admin-settings/claude-code](<https://claude.ai/admin-settings/claude-code>) and enable [Code Review](</docs/en/code-review#set-up-code-review>) and [contribution metrics](</docs/en/analytics#enable-contribution-metrics>) for your GHES repositories using the same configuration as github.com. ### @@ -87,7 +87,7 @@ Manual setup -If the guided redirect flow is blocked by your network configuration, click **Add manually** instead of Connect. Create a GitHub App on your GHES instance with the permissions and events above, then enter the connection details in the form: a display name, your GHES hostname and optional port, and the app’s ID, client ID, client secret, webhook secret, and private key. The form also accepts an optional custom CA certificate and read replica hostnames. Claude generates the app’s webhook URL when you save the connection. After you click **Add configuration** , open the connection’s **More options** menu, select **Copy webhook URL** , and paste the URL into the app’s webhook settings on your GHES instance. Use the same webhook secret you entered in the form. +If the guided redirect flow is blocked by your network configuration, click **Connect** or **Add instance** , then select **Add manually** instead of **Set up automatically**. Create a GitHub App on your GHES instance with the permissions and events above, then enter the connection details in the form: a display name, your GHES hostname and optional port, and the app’s ID, client ID, client secret, webhook secret, and private key. The form also accepts an optional custom CA certificate and read replica hostnames. Claude generates the app’s webhook URL when you save the connection. After you click **Add configuration** , open the connection’s **More options** menu, select **Copy webhook URL** , and paste the URL into the app’s webhook settings on your GHES instance. Use the same webhook secret you entered in the form. ### @@ -240,7 +240,12 @@ Marketplace add on claude.ai fails with a GitHub access error -If adding a GHES marketplace from your user settings fails with a generic error like “Marketplace couldn’t be added”, check your GitHub Enterprise connection first. This is what appears when your own GitHub Enterprise account is not connected to Claude, even if your organization’s GHES instance is configured and other users are connected. The dialog does not point to the GitHub Enterprise connect flow, and the “Connect to GitHub” option on the Browse tab signs in to github.com, which does not grant access to GHES repositories. To connect your GitHub Enterprise account: the repository picker on [claude.ai/code](<https://claude.ai/code>) offers a connect option for each configured GHES instance, and Owners can also connect from the GitHub Enterprise section of the [Claude Code admin settings](<https://claude.ai/admin-settings/claude-code>). Then add the marketplace again. Alternatively, ask an Owner to add the marketplace in the organization plugin settings, which removes the per-user connection requirement. On other claude.ai surfaces, a “Repository not found. If it’s private, GitHub access is required” error on a GHES marketplace usually indicates the same missing connection. Connect your GitHub Enterprise account through one of the paths above, then try again. +If adding a GHES marketplace from your user settings fails with a generic error like “Marketplace couldn’t be added”, check your GitHub Enterprise connection first. This is what appears when your own GitHub Enterprise account is not connected to Claude, even if your organization’s GHES instance is configured and other users are connected. The dialog does not point to the GitHub Enterprise connect flow, and the “Connect to GitHub” option on the Browse tab signs in to github.com, which does not grant access to GHES repositories. Connect your GitHub Enterprise account in one of these places, then add the marketplace again: + + * **Repository picker** : on [claude.ai/code](<https://claude.ai/code>), the repository picker offers a connect option for each configured GHES instance. + * **Git providers page** : if you’re an Owner, go to the GitHub section of [**Organization settings > Git providers**](<https://claude.ai/admin-settings/source-control>) and click **Connect** , or **Add organization** once an account is connected. Select the GHES hostname under **GitHub instance** , then click **Connect**. + +Alternatively, ask an Owner to add the marketplace in the organization plugin settings, which removes the per-user connection requirement. On other claude.ai surfaces, a “Repository not found. If it’s private, GitHub access is required” error on a GHES marketplace usually indicates the same missing connection. Connect your GitHub Enterprise account through one of the paths above, then try again. ###
modified
--- a/github-enterprise-server.md +++ b/github-enterprise-server.md @@ -95,7 +95,7 @@ Network requirements -For Anthropic-hosted sessions, your GHES instance must be reachable from Anthropic infrastructure so Claude can clone repositories and post review comments. If your GHES instance is behind a firewall, allowlist Anthropic’s [outbound IP addresses](<https://platform.claude.com/docs/en/api/ip-addresses#outbound-ip-addresses>). Sessions in a [self-hosted environment](</docs/en/self-hosted-environments-deploy#configure-git>) clone from inside your network instead, unless the runner opts into the [Anthropic git proxy](</docs/en/self-hosted-environments-deploy#use-the-anthropic-git-proxy>), which fetches from Anthropic’s side and needs the same reachability; the [SCM connector](</docs/en/self-hosted-environments-reference#scm-connector-flags>) covers the hosted pre-session flows, such as the repository picker, for a GHES host that’s only routable internally. +For Anthropic-hosted sessions, your GHES instance must be reachable from Anthropic infrastructure so Claude can clone repositories and post review comments. If your GHES instance is behind a firewall, allowlist Anthropic’s [outbound IP addresses](<https://platform.claude.com/docs/en/api/ip-addresses#outbound-ip-addresses>). Sessions in a [self-hosted environment](</docs/en/self-hosted-environments-deploy#configure-git>) clone from inside your network instead, unless the runner opts into the [Anthropic git proxy](</docs/en/self-hosted-environments-deploy#use-the-anthropic-git-proxy>), which fetches from Anthropic’s side and needs the same reachability. Hosted pre-session flows, such as the repository picker, run on Anthropic’s side before a session starts. They need your GHES instance to be reachable from Anthropic infrastructure even when the session runs in a self-hosted environment. The [SCM connector](</docs/en/self-hosted-environments-reference#scm-connector-flags>) isn’t available, so those flows can’t reach a GHES host that’s only routable internally. ## @@ -248,7 +248,7 @@ GHES instance not reachable -If reviews or Anthropic-hosted cloud sessions time out, your GHES instance may not be reachable from Anthropic infrastructure. Confirm your firewall allows inbound connections from Anthropic’s [outbound IP addresses](<https://platform.claude.com/docs/en/api/ip-addresses#outbound-ip-addresses>). Sessions in a [self-hosted environment](</docs/en/self-hosted-environments>) reach GHES from inside your network, so for them check the runner’s own network path and the [SCM connector](</docs/en/self-hosted-environments-reference#scm-connector-flags>) instead. +If reviews or Anthropic-hosted cloud sessions time out, your GHES instance may not be reachable from Anthropic infrastructure. Confirm your firewall allows inbound connections from Anthropic’s [outbound IP addresses](<https://platform.claude.com/docs/en/api/ip-addresses#outbound-ip-addresses>). Sessions in a [self-hosted environment](</docs/en/self-hosted-environments>) reach GHES from inside your network, so when one of them can’t clone, check the runner’s own network path instead. For the repository picker and other hosted pre-session flows, see Network requirements. ### @@ -256,7 +256,7 @@ Session start fails with `Unable to get organization UUID` -Sign in with `/login` using your organization account. If you authenticate with an API key instead, cloud sessions fail earlier with a message asking you to run `/login`. +Claude Code couldn’t read a claude.ai organization from your credentials. Sign in with `/login` using an account in your Team or Enterprise organization, since GitHub Enterprise Server support is limited to those plans. See [Unable to get organization UUID](</docs/en/claude-code-on-the-web#unable-to-get-organization-uuid>) for the causes and the other messages this state produces. ##
modified
--- a/github-enterprise-server.md +++ b/github-enterprise-server.md @@ -256,7 +256,7 @@ Session start fails with `Unable to get organization UUID` -Cloud sessions require a Team or Enterprise organization. Sign in with `/login` using your organization account. If you authenticate with an API key instead, cloud sessions fail earlier with a message asking you to run `/login`. +Sign in with `/login` using your organization account. If you authenticate with an API key instead, cloud sessions fail earlier with a message asking you to run `/login`. ##
modified
--- a/github-enterprise-server.md +++ b/github-enterprise-server.md @@ -75,7 +75,7 @@ Checks| Read and write| Posting Code Review check runs Actions| Read| Reading CI status for auto-fix Commit statuses| Read| Reading CI status from providers that report commit statuses instead of check runs -Repository hooks| Read and write| Creating a webhook on a plugin marketplace repository when **Sync automatically** is turned on for a marketplace in [Organization settings > Plugins](<https://claude.ai/admin-settings/plugins>) +Repository hooks| Read and write| Creating a webhook on a plugin marketplace repository when **Sync automatically** is turned on for a marketplace in [**Organization settings > Plugins & skills**](<https://claude.ai/admin-settings/skills?tab=marketplaces>) Metadata| Read| Required by GitHub for all apps Organization members| Read| Matching the Claude GitHub App on github.com, which uses it to check a connecting user’s organization role when linking an installation @@ -154,7 +154,7 @@ /plugin marketplace add git@github.example.com:platform/claude-plugins.git -Claude Code runs git non-interactively and rejects SSH connections to hosts that are not in the machine’s `known_hosts` file. An HTTPS URL with a git credential helper avoids the `known_hosts` requirement. See [Create and distribute a plugin marketplace](</docs/en/plugin-marketplaces>) for the full guide to building marketplaces. +Claude Code runs git non-interactively and rejects SSH connections to hosts that are not in the machine’s `known_hosts` file. An HTTPS URL with a git credential helper avoids the `known_hosts` requirement. See [Create and distribute a plugin marketplace](</docs/en/plugins/create-marketplace>) for the full guide to building marketplaces. ### @@ -268,7 +268,7 @@ * [Use Claude Code in the cloud](</docs/en/claude-code-on-the-web>): run Claude Code sessions on cloud infrastructure * [Code Review](</docs/en/code-review>): automated PR reviews - * [Plugin marketplaces](</docs/en/plugin-marketplaces>): build and distribute plugin catalogs + * [Plugin marketplaces](</docs/en/plugins/host-marketplace>): build and distribute plugin catalogs * [Analytics](</docs/en/analytics>): track usage and contribution metrics * [Managed settings](</docs/en/settings>): organization-wide policy configuration * [Network configuration](</docs/en/network-config>): firewall and IP allowlist requirements
modified
--- a/github-enterprise-server.md +++ b/github-enterprise-server.md @@ -1,6 +1,6 @@ GitHub Enterprise Server support is available for Team and Enterprise plans. -GitHub Enterprise Server (GHES) support lets your organization use Claude Code with repositories hosted on your self-managed GitHub instance instead of github.com. Once an Owner connects your GHES instance, developers can run web sessions and get automated code reviews without any per-repository configuration. Plugin marketplaces hosted on your instance are also supported; credential requirements vary by surface, as described in Plugin marketplaces on GHES. For repositories on github.com, see [Claude Code on the web](</docs/en/claude-code-on-the-web>) and [Code Review](</docs/en/code-review>). To run Claude in your own CI infrastructure, see [GitHub Actions](</docs/en/github-actions>). +GitHub Enterprise Server (GHES) support lets your organization use Claude Code with repositories hosted on your self-managed GitHub instance instead of github.com. Once an Owner connects your GHES instance, developers can run cloud sessions and get automated code reviews without any per-repository configuration. Plugin marketplaces hosted on your instance are also supported; credential requirements vary by surface, as described in Plugin marketplaces on GHES. For repositories on github.com, see [Use Claude Code in the cloud](</docs/en/claude-code-on-the-web>) and [Code Review](</docs/en/code-review>). To run Claude in your own CI infrastructure, see [GitHub Actions](</docs/en/github-actions>). ## @@ -12,10 +12,10 @@ Feature| GHES support| Notes ---|---|--- -Claude Code on the web| ✅ Supported| An Owner connects the GHES instance once; developers use `claude --cloud` or [claude.ai/code](<https://claude.ai/code>) as usual +Cloud sessions| ✅ Supported| An Owner connects the GHES instance once; developers use `claude --cloud` or [claude.ai/code](<https://claude.ai/code>) as usual Code Review| ✅ Supported| Same automated PR reviews as github.com Claude Security| ✅ Supported| Available in public beta for Enterprise plans at [claude.ai/security](<https://claude.ai/security>) -Teleport sessions| ✅ Supported| Move sessions between web and terminal with `--teleport` +Teleport sessions| ✅ Supported| Move sessions between cloud and terminal with `--teleport` Plugin marketplaces| ✅ Supported| Credential requirements differ by surface. See Plugin marketplaces on GHES Contribution metrics| ✅ Supported| Delivered via webhooks to the [analytics dashboard](</docs/en/analytics>) GitHub Actions| ✅ Supported| Requires manual workflow setup; `/install-github-app` is github.com only @@ -65,7 +65,7 @@ GitHub App permissions -The manifest configures the GitHub App with the permissions and webhook events below, which together cover web sessions, Code Review, Claude Security, plugin marketplaces, and contribution metrics: +The manifest configures the GitHub App with the permissions and webhook events below, which together cover cloud sessions, Code Review, Claude Security, plugin marketplaces, and contribution metrics: Permission| Access| Used for ---|---|--- @@ -108,11 +108,11 @@ git clone git@github.example.com:platform/api-service.git cd api-service -Then start a web session. Claude detects the GHES host from your git remote and routes the session through your organization’s configured instance: +Then start a cloud session. Claude detects the GHES host from your git remote and routes the session through your organization’s configured instance: claude --cloud "Add retry logic to the payment webhook handler" -The session clones your repository from GHES and pushes changes back to a branch. Monitor progress at [claude.ai/code](<https://claude.ai/code>). See [Claude Code on the web](</docs/en/claude-code-on-the-web>) for the full cloud session workflow including diff review, auto-fix, and routines. +The session clones your repository from GHES and pushes changes back to a branch. Monitor progress at [claude.ai/code](<https://claude.ai/code>). See [Use Claude Code in the cloud](</docs/en/claude-code-on-the-web>) for the full cloud session workflow including diff review, auto-fix, and routines. ### @@ -120,7 +120,7 @@ Teleport sessions to your terminal -Pull a web session into your local terminal with `claude --teleport`. Teleport verifies you’re in a checkout of the same GHES repository before fetching the branch and loading the session history. See [teleport requirements](</docs/en/claude-code-on-the-web#teleport-requirements>) for details. +Pull a cloud session into your local terminal with `claude --teleport`. Teleport verifies you’re in a checkout of the same GHES repository before fetching the branch and loading the session history. See [teleport requirements](</docs/en/claude-code-on-the-web#teleport-requirements>) for details. ## @@ -136,7 +136,7 @@ Managed settings (`extraKnownMarketplaces`)| Claude Code registers the entry and clones the repository using the machine’s existing git credentials| Git access to your GHES host from their machine claude.ai organization plugin settings| An Owner selects the GHES instance as the source; Anthropic’s backend fetches and syncs the repository using the GitHub App from admin setup| Nothing per user once added. The Owner adding it needs their own GitHub Enterprise account connected as an access check, and the GitHub App must be installed on the marketplace repository claude.ai user settings| Anthropic’s backend fetches the repository using the submitting user’s GitHub Enterprise connection| Their own GitHub Enterprise account connected to Claude -Claude Code on the web| Cloud sessions clone marketplaces inside the session sandbox. The sandbox can reach your GHES instance only when the session’s repository is on that same instance, and its git credentials are scoped to the session’s repositories| Not reliable for GHES-hosted marketplaces: a different host than the session’s repository is not reachable, and even same-instance installs can fail. Use the CLI, managed settings, or claude.ai instead +Cloud sessions| Cloud sessions clone marketplaces inside the session sandbox. The sandbox can reach your GHES instance only when the session’s repository is on that same instance, and its git credentials are scoped to the session’s repositories| Not reliable for GHES-hosted marketplaces: a different host than the session’s repository is not reachable, and even same-instance installs can fail. Use the CLI, managed settings, or claude.ai instead GitHub Enterprise connections on claude.ai are per user when a marketplace is added from user settings. The admin setup connects your GHES instance to your organization, but it does not connect individual user accounts: each user who adds a GHES marketplace from their own settings must first connect their own GitHub Enterprise account, and one user’s connection, including the Owner’s, does not cover anyone else. Marketplaces added by an Owner in the organization plugin settings do not put this requirement on users, because ongoing fetches use the organization’s GitHub App. The Owner adding the marketplace still needs their own GitHub Enterprise account connected at add time. @@ -222,7 +222,7 @@ ​ -Web session fails to clone repository +Cloud session fails to clone repository If `claude --cloud` fails with a clone error, verify that an Owner has completed setup for your GHES instance and that the GitHub App is installed on the repository you’re working in. Ask the Owner who connected the instance to confirm that the hostname registered in Claude settings matches the hostname in your git remote. @@ -248,7 +248,7 @@ GHES instance not reachable -If reviews or Anthropic-hosted web sessions time out, your GHES instance may not be reachable from Anthropic infrastructure. Confirm your firewall allows inbound connections from Anthropic’s [outbound IP addresses](<https://platform.claude.com/docs/en/api/ip-addresses#outbound-ip-addresses>). Sessions in a [self-hosted environment](</docs/en/self-hosted-environments>) reach GHES from inside your network, so for them check the runner’s own network path and the [SCM connector](</docs/en/self-hosted-environments-reference#scm-connector-flags>) instead. +If reviews or Anthropic-hosted cloud sessions time out, your GHES instance may not be reachable from Anthropic infrastructure. Confirm your firewall allows inbound connections from Anthropic’s [outbound IP addresses](<https://platform.claude.com/docs/en/api/ip-addresses#outbound-ip-addresses>). Sessions in a [self-hosted environment](</docs/en/self-hosted-environments>) reach GHES from inside your network, so for them check the runner’s own network path and the [SCM connector](</docs/en/self-hosted-environments-reference#scm-connector-flags>) instead. ### @@ -256,7 +256,7 @@ Session start fails with `Unable to get organization UUID` -Web sessions require a Team or Enterprise organization. Sign in with `/login` using your organization account. If you authenticate with an API key instead, web sessions fail earlier with a message asking you to run `/login`. +Cloud sessions require a Team or Enterprise organization. Sign in with `/login` using your organization account. If you authenticate with an API key instead, cloud sessions fail earlier with a message asking you to run `/login`. ## @@ -266,7 +266,7 @@ These pages cover the features referenced throughout this guide in more depth: - * [Claude Code on the web](</docs/en/claude-code-on-the-web>): run Claude Code sessions on cloud infrastructure + * [Use Claude Code in the cloud](</docs/en/claude-code-on-the-web>): run Claude Code sessions on cloud infrastructure * [Code Review](</docs/en/code-review>): automated PR reviews * [Plugin marketplaces](</docs/en/plugin-marketplaces>): build and distribute plugin catalogs * [Analytics](</docs/en/analytics>): track usage and contribution metrics
modified
--- a/github-enterprise-server.md +++ b/github-enterprise-server.md @@ -112,7 +112,7 @@ claude --cloud "Add retry logic to the payment webhook handler" -The session clones your repository from GHES and pushes changes back to a branch. Monitor progress with `/tasks` or at [claude.ai/code](<https://claude.ai/code>). See [Claude Code on the web](</docs/en/claude-code-on-the-web>) for the full cloud session workflow including diff review, auto-fix, and routines. +The session clones your repository from GHES and pushes changes back to a branch. Monitor progress at [claude.ai/code](<https://claude.ai/code>). See [Claude Code on the web](</docs/en/claude-code-on-the-web>) for the full cloud session workflow including diff review, auto-fix, and routines. ###
modified
--- a/github-enterprise-server.md +++ b/github-enterprise-server.md @@ -95,7 +95,7 @@ Network requirements -For Anthropic-hosted sessions, your GHES instance must be reachable from Anthropic infrastructure so Claude can clone repositories and post review comments. If your GHES instance is behind a firewall, allowlist the [Anthropic API IP addresses](<https://platform.claude.com/docs/en/api/ip-addresses>). Sessions in a [self-hosted environment](</docs/en/self-hosted-environments-deploy#configure-git>) clone from inside your network instead, unless the runner opts into the [Anthropic git proxy](</docs/en/self-hosted-environments-deploy#use-the-anthropic-git-proxy>), which fetches from Anthropic’s side and needs the same reachability; the [SCM connector](</docs/en/self-hosted-environments-reference#scm-connector-flags>) covers the hosted pre-session flows, such as the repository picker, for a GHES host that’s only routable internally. +For Anthropic-hosted sessions, your GHES instance must be reachable from Anthropic infrastructure so Claude can clone repositories and post review comments. If your GHES instance is behind a firewall, allowlist Anthropic’s [outbound IP addresses](<https://platform.claude.com/docs/en/api/ip-addresses#outbound-ip-addresses>). Sessions in a [self-hosted environment](</docs/en/self-hosted-environments-deploy#configure-git>) clone from inside your network instead, unless the runner opts into the [Anthropic git proxy](</docs/en/self-hosted-environments-deploy#use-the-anthropic-git-proxy>), which fetches from Anthropic’s side and needs the same reachability; the [SCM connector](</docs/en/self-hosted-environments-reference#scm-connector-flags>) covers the hosted pre-session flows, such as the repository picker, for a GHES host that’s only routable internally. ## @@ -248,7 +248,7 @@ GHES instance not reachable -If reviews or Anthropic-hosted web sessions time out, your GHES instance may not be reachable from Anthropic infrastructure. Confirm your firewall allows inbound connections from the [Anthropic API IP addresses](<https://platform.claude.com/docs/en/api/ip-addresses>). Sessions in a [self-hosted environment](</docs/en/self-hosted-environments>) reach GHES from inside your network, so for them check the runner’s own network path and the [SCM connector](</docs/en/self-hosted-environments-reference#scm-connector-flags>) instead. +If reviews or Anthropic-hosted web sessions time out, your GHES instance may not be reachable from Anthropic infrastructure. Confirm your firewall allows inbound connections from Anthropic’s [outbound IP addresses](<https://platform.claude.com/docs/en/api/ip-addresses#outbound-ip-addresses>). Sessions in a [self-hosted environment](</docs/en/self-hosted-environments>) reach GHES from inside your network, so for them check the runner’s own network path and the [SCM connector](</docs/en/self-hosted-environments-reference#scm-connector-flags>) instead. ###
modified
--- a/github-enterprise-server.md +++ b/github-enterprise-server.md @@ -162,7 +162,7 @@ Pre-register GHES marketplaces with managed settings -The `extraKnownMarketplaces` setting pre-registers a marketplace so developers get it without manual setup. It works from [any settings file](</docs/en/settings#extraknownmarketplaces>), including a repository’s `.claude/settings.json`; managed settings deliver it organization-wide: +The `extraKnownMarketplaces` setting pre-registers a marketplace so developers get it without manual setup. It works from [any settings file](</docs/en/settings-reference#extraknownmarketplaces>), including a repository’s `.claude/settings.json`; managed settings deliver it organization-wide: { "extraKnownMarketplaces": { @@ -180,7 +180,7 @@ * **Use a full git URL.** The `owner/repo` shorthand always resolves to github.com and cannot reference a GHES host. * **Prefer HTTPS URLs.** SSH clones fail on machines that do not already trust your GHES host key. An HTTPS URL with your organization’s standard git credential helper works on any machine with credentials configured. * **Confirm each machine can clone from your GHES host.** If a machine lacks credentials, the marketplace is registered but never installed, and its plugins report as not found instead of prompting for credentials. - * **Confirm the setting reaches each machine.** A managed settings file only takes effect on machines it’s deployed to, for example through your device management system. See [managed settings](</docs/en/settings#settings-files>) for file locations. + * **Confirm the setting reaches each machine.** A managed settings file only takes effect on machines it’s deployed to, for example through your device management system. See [Deploy managed settings](</docs/en/managed-settings#delivery-mechanisms>) for file locations. ### @@ -188,7 +188,7 @@ Allowlist GHES marketplaces in managed settings -If your organization uses [managed settings](</docs/en/settings>) to restrict which marketplaces developers can add, use the `hostPattern` source type to allow all marketplaces from your GHES instance without enumerating each repository. See [settings files](</docs/en/settings#settings-files>) for file locations on each platform. Add the JSON to your `managed-settings.json` file or equivalent MDM policy: +If your organization uses [managed settings](</docs/en/settings>) to restrict which marketplaces developers can add, use the `hostPattern` source type to allow all marketplaces from your GHES instance without enumerating each repository. See [Delivery mechanisms](</docs/en/managed-settings#delivery-mechanisms>) for file locations on each platform. Add the JSON to your `managed-settings.json` file or equivalent MDM policy: { "strictKnownMarketplaces": [ @@ -199,7 +199,7 @@ ] } -See the [strictKnownMarketplaces](</docs/en/settings#strictknownmarketplaces>) and [extraKnownMarketplaces](</docs/en/settings#extraknownmarketplaces>) settings reference for the complete schema. +See the [strictKnownMarketplaces](</docs/en/settings-reference#strictknownmarketplaces>) and [extraKnownMarketplaces](</docs/en/settings-reference#extraknownmarketplaces>) settings reference for the complete schema. ##
modified
--- a/github-enterprise-server.md +++ b/github-enterprise-server.md @@ -39,7 +39,7 @@ Start the guided setup -Click **Connect**. Enter a display name for the connection and your GHES hostname, for example `github.example.com`. If your GHES instance uses a self-signed or private certificate authority, paste the CA certificate in the optional field. +Click **Connect**. Enter a display name of up to 20 characters for the connection and your GHES hostname, for example `github.example.com`. If your GHES instance uses a self-signed or private certificate authority, paste the CA certificate in the optional field. 3 @@ -65,7 +65,7 @@ GitHub App permissions -The manifest configures the GitHub App with the permissions and webhook events Claude needs across web sessions, Code Review, Claude Security, and contribution metrics: +The manifest configures the GitHub App with the permissions and webhook events below, which together cover web sessions, Code Review, Claude Security, plugin marketplaces, and contribution metrics: Permission| Access| Used for ---|---|--- @@ -74,10 +74,12 @@ Issues| Read and write| Responding to issue mentions Checks| Read and write| Posting Code Review check runs Actions| Read| Reading CI status for auto-fix -Repository hooks| Read and write| Receiving webhooks for contribution metrics +Commit statuses| Read| Reading CI status from providers that report commit statuses instead of check runs +Repository hooks| Read and write| Creating a webhook on a plugin marketplace repository when **Sync automatically** is turned on for a marketplace in [Organization settings > Plugins](<https://claude.ai/admin-settings/plugins>) Metadata| Read| Required by GitHub for all apps - -The app subscribes to `pull_request`, `issue_comment`, `pull_request_review_comment`, `pull_request_review`, and `check_run` events. +Organization members| Read| Matching the Claude GitHub App on github.com, which uses it to check a connecting user’s organization role when linking an installation + +The app subscribes to `pull_request`, `issue_comment`, `pull_request_review_comment`, `pull_request_review`, `check_run`, and `status` events. GitHub applies a manifest only when the app is created, so an app created from an earlier version of the manifest keeps the permissions and events it was created with. If your app is missing any of the permissions or events above, add them in the app’s settings on your GHES instance. GitHub then asks an owner of each installation to approve the new permissions, and the installation keeps its old permissions until they do. ### @@ -85,7 +87,7 @@ Manual setup -If the guided redirect flow is blocked by your network configuration, click **Add manually** instead of Connect. Create a GitHub App on your GHES instance with the permissions and events above, then enter the app credentials in the form: hostname, OAuth client ID and secret, GitHub App ID, client ID, client secret, webhook secret, and private key. +If the guided redirect flow is blocked by your network configuration, click **Add manually** instead of Connect. Create a GitHub App on your GHES instance with the permissions and events above, then enter the connection details in the form: a display name, your GHES hostname and optional port, and the app’s ID, client ID, client secret, webhook secret, and private key. The form also accepts an optional custom CA certificate and read replica hostnames. Claude generates the app’s webhook URL when you save the connection. After you click **Add configuration** , open the connection’s **More options** menu, select **Copy webhook URL** , and paste the URL into the app’s webhook settings on your GHES instance. Use the same webhook secret you entered in the form. ### @@ -93,7 +95,7 @@ Network requirements -Your GHES instance must be reachable from Anthropic infrastructure so Claude can clone repositories and post review comments. If your GHES instance is behind a firewall, allowlist the [Anthropic API IP addresses](<https://platform.claude.com/docs/en/api/ip-addresses>). +For Anthropic-hosted sessions, your GHES instance must be reachable from Anthropic infrastructure so Claude can clone repositories and post review comments. If your GHES instance is behind a firewall, allowlist the [Anthropic API IP addresses](<https://platform.claude.com/docs/en/api/ip-addresses>). Sessions in a [self-hosted environment](</docs/en/self-hosted-environments-deploy#configure-git>) clone from inside your network instead, unless the runner opts into the [Anthropic git proxy](</docs/en/self-hosted-environments-deploy#use-the-anthropic-git-proxy>), which fetches from Anthropic’s side and needs the same reachability; the [SCM connector](</docs/en/self-hosted-environments-reference#scm-connector-flags>) covers the hosted pre-session flows, such as the repository picker, for a GHES host that’s only routable internally. ## @@ -110,7 +112,7 @@ claude --cloud "Add retry logic to the payment webhook handler" -The session runs on Anthropic infrastructure, clones your repository from GHES, and pushes changes back to a branch. Monitor progress with `/tasks` or at [claude.ai/code](<https://claude.ai/code>). See [Claude Code on the web](</docs/en/claude-code-on-the-web>) for the full cloud session workflow including diff review, auto-fix, and routines. +The session clones your repository from GHES and pushes changes back to a branch. Monitor progress with `/tasks` or at [claude.ai/code](<https://claude.ai/code>). See [Claude Code on the web](</docs/en/claude-code-on-the-web>) for the full cloud session workflow including diff review, auto-fix, and routines. ### @@ -246,7 +248,7 @@ GHES instance not reachable -If reviews or web sessions time out, your GHES instance may not be reachable from Anthropic infrastructure. Confirm your firewall allows inbound connections from the [Anthropic API IP addresses](<https://platform.claude.com/docs/en/api/ip-addresses>). +If reviews or Anthropic-hosted web sessions time out, your GHES instance may not be reachable from Anthropic infrastructure. Confirm your firewall allows inbound connections from the [Anthropic API IP addresses](<https://platform.claude.com/docs/en/api/ip-addresses>). Sessions in a [self-hosted environment](</docs/en/self-hosted-environments>) reach GHES from inside your network, so for them check the runner’s own network path and the [SCM connector](</docs/en/self-hosted-environments-reference#scm-connector-flags>) instead. ###
modified
--- a/github-enterprise-server.md +++ b/github-enterprise-server.md @@ -186,7 +186,7 @@ Allowlist GHES marketplaces in managed settings -If your organization uses [managed settings](</docs/en/settings>) to restrict which marketplaces developers can add, use the `hostPattern` source type to allow all marketplaces from your GHES instance without enumerating each repository: +If your organization uses [managed settings](</docs/en/settings>) to restrict which marketplaces developers can add, use the `hostPattern` source type to allow all marketplaces from your GHES instance without enumerating each repository. See [settings files](</docs/en/settings#settings-files>) for file locations on each platform. Add the JSON to your `managed-settings.json` file or equivalent MDM policy: { "strictKnownMarketplaces": [
modified
--- a/github-enterprise-server.md +++ b/github-enterprise-server.md @@ -101,7 +101,7 @@ Developer workflow -Once an Owner has connected the GHES instance, no developer-side configuration is needed. Claude Code detects your GHES hostname automatically from the git remote in your working directory. Clone a repository from your GHES instance as you normally would: +Once an Owner has connected the GHES instance, no developer-side configuration is needed. Claude Code detects your GHES hostname automatically from the git remote in your working directory. Clone a repository from your GHES instance as you normally would, replacing `github.example.com` and the repository path with your GHES hostname and repository: git clone git@github.example.com:platform/api-service.git cd api-service @@ -144,7 +144,7 @@ Add a GHES marketplace -The `owner/repo` shorthand always resolves to github.com. For GHES-hosted marketplaces, use the full git URL. HTTPS URLs are recommended: +The `owner/repo` shorthand always resolves to github.com. For GHES-hosted marketplaces, use the full git URL, replacing `github.example.com` and the repository path with your own. HTTPS URLs are recommended: /plugin marketplace add https://github.example.com/platform/claude-plugins.git @@ -248,6 +248,14 @@ If reviews or web sessions time out, your GHES instance may not be reachable from Anthropic infrastructure. Confirm your firewall allows inbound connections from the [Anthropic API IP addresses](<https://platform.claude.com/docs/en/api/ip-addresses>). +### + +​ + +Session start fails with `Unable to get organization UUID` + +Web sessions require a Team or Enterprise organization. Sign in with `/login` using your organization account. If you authenticate with an API key instead, web sessions fail earlier with a message asking you to run `/login`. + ## ​
modified
Show diff (121 lines)
--- a/github-enterprise-server.md +++ b/github-enterprise-server.md @@ -1,6 +1,6 @@ GitHub Enterprise Server support is available for Team and Enterprise plans. -GitHub Enterprise Server (GHES) support lets your organization use Claude Code with repositories hosted on your self-managed GitHub instance instead of github.com. Once an Owner connects your GHES instance, developers can run web sessions, get automated code reviews, and install plugins from internal marketplaces without any per-repository configuration. For repositories on github.com, see [Claude Code on the web](</docs/en/claude-code-on-the-web>) and [Code Review](</docs/en/code-review>). To run Claude in your own CI infrastructure, see [GitHub Actions](</docs/en/github-actions>). +GitHub Enterprise Server (GHES) support lets your organization use Claude Code with repositories hosted on your self-managed GitHub instance instead of github.com. Once an Owner connects your GHES instance, developers can run web sessions and get automated code reviews without any per-repository configuration. Plugin marketplaces hosted on your instance are also supported; credential requirements vary by surface, as described in Plugin marketplaces on GHES. For repositories on github.com, see [Claude Code on the web](</docs/en/claude-code-on-the-web>) and [Code Review](</docs/en/code-review>). To run Claude in your own CI infrastructure, see [GitHub Actions](</docs/en/github-actions>). ## @@ -16,7 +16,7 @@ Code Review| ✅ Supported| Same automated PR reviews as github.com Claude Security| ✅ Supported| Available in public beta for Enterprise plans at [claude.ai/security](<https://claude.ai/security>) Teleport sessions| ✅ Supported| Move sessions between web and terminal with `--teleport` -Plugin marketplaces| ✅ Supported| Use full git URLs instead of `owner/repo` shorthand +Plugin marketplaces| ✅ Supported| Credential requirements differ by surface. See Plugin marketplaces on GHES Contribution metrics| ✅ Supported| Delivered via webhooks to the [analytics dashboard](</docs/en/analytics>) GitHub Actions| ✅ Supported| Requires manual workflow setup; `/install-github-app` is github.com only GitHub MCP server| ❌ Not supported| The GitHub MCP server does not work with GHES instances @@ -126,7 +126,17 @@ Plugin marketplaces on GHES -Host plugin marketplaces on your GHES instance to distribute internal tooling across your organization. The marketplace structure is identical to github.com-hosted marketplaces; the only difference is how you reference them. +Host plugin marketplaces on your GHES instance to distribute internal tooling across your organization. The marketplace structure is identical to github.com-hosted marketplaces, but installation works differently depending on where you add the marketplace, and credentials differ across surfaces: + +Surface| How installation works| What each user needs +---|---|--- +Claude Code CLI and desktop| Claude Code clones the marketplace repository using the machine’s existing git credentials| Git access to your GHES host from their machine +Managed settings (`extraKnownMarketplaces`)| Claude Code registers the entry and clones the repository using the machine’s existing git credentials| Git access to your GHES host from their machine +claude.ai organization plugin settings| An Owner selects the GHES instance as the source; Anthropic’s backend fetches and syncs the repository using the GitHub App from admin setup| Nothing per user once added. The Owner adding it needs their own GitHub Enterprise account connected as an access check, and the GitHub App must be installed on the marketplace repository +claude.ai user settings| Anthropic’s backend fetches the repository using the submitting user’s GitHub Enterprise connection| Their own GitHub Enterprise account connected to Claude +Claude Code on the web| Cloud sessions clone marketplaces inside the session sandbox. The sandbox can reach your GHES instance only when the session’s repository is on that same instance, and its git credentials are scoped to the session’s repositories| Not reliable for GHES-hosted marketplaces: a different host than the session’s repository is not reachable, and even same-instance installs can fail. Use the CLI, managed settings, or claude.ai instead + +GitHub Enterprise connections on claude.ai are per user when a marketplace is added from user settings. The admin setup connects your GHES instance to your organization, but it does not connect individual user accounts: each user who adds a GHES marketplace from their own settings must first connect their own GitHub Enterprise account, and one user’s connection, including the Owner’s, does not cover anyone else. Marketplaces added by an Owner in the organization plugin settings do not put this requirement on users, because ongoing fetches use the organization’s GitHub App. The Owner adding the marketplace still needs their own GitHub Enterprise account connected at add time. ### @@ -134,15 +144,41 @@ Add a GHES marketplace -The `owner/repo` shorthand always resolves to github.com. For GHES-hosted marketplaces, use the full git URL: +The `owner/repo` shorthand always resolves to github.com. For GHES-hosted marketplaces, use the full git URL. HTTPS URLs are recommended: + + /plugin marketplace add https://github.example.com/platform/claude-plugins.git + +SSH URLs work if the machine already trusts your GHES host: /plugin marketplace add git@github.example.com:platform/claude-plugins.git -HTTPS URLs work as well: - - /plugin marketplace add https://github.example.com/platform/claude-plugins.git - -See [Create and distribute a plugin marketplace](</docs/en/plugin-marketplaces>) for the full guide to building marketplaces. +Claude Code runs git non-interactively and rejects SSH connections to hosts that are not in the machine’s `known_hosts` file. An HTTPS URL with a git credential helper avoids the `known_hosts` requirement. See [Create and distribute a plugin marketplace](</docs/en/plugin-marketplaces>) for the full guide to building marketplaces. + +### + +​ + +Pre-register GHES marketplaces with managed settings + +The `extraKnownMarketplaces` setting pre-registers a marketplace so developers get it without manual setup. It works from [any settings file](</docs/en/settings#extraknownmarketplaces>), including a repository’s `.claude/settings.json`; managed settings deliver it organization-wide: + + { + "extraKnownMarketplaces": { + "internal-tools": { + "source": { + "source": "git", + "url": "https://github.example.com/platform/claude-plugins.git" + } + } + } + } + +Claude Code installs these marketplaces locally: it registers each entry and clones the repository with the machine’s existing git credentials. This path does not go through claude.ai, so the per-user GitHub Enterprise connection is not required. For a successful rollout: + + * **Use a full git URL.** The `owner/repo` shorthand always resolves to github.com and cannot reference a GHES host. + * **Prefer HTTPS URLs.** SSH clones fail on machines that do not already trust your GHES host key. An HTTPS URL with your organization’s standard git credential helper works on any machine with credentials configured. + * **Confirm each machine can clone from your GHES host.** If a machine lacks credentials, the marketplace is registered but never installed, and its plugins report as not found instead of prompting for credentials. + * **Confirm the setting reaches each machine.** A managed settings file only takes effect on machines it’s deployed to, for example through your device management system. See [managed settings](</docs/en/settings#settings-files>) for file locations. ### @@ -161,19 +197,6 @@ ] } -You can also pre-register marketplaces for developers so they appear without manual setup. This example makes an internal tools marketplace available organization-wide: - - { - "extraKnownMarketplaces": { - "internal-tools": { - "source": { - "source": "git", - "url": "git@github.example.com:platform/claude-plugins.git" - } - } - } - } - See the [strictKnownMarketplaces](</docs/en/settings#strictknownmarketplaces>) and [extraKnownMarketplaces](</docs/en/settings#extraknownmarketplaces>) settings reference for the complete schema. ## @@ -208,6 +231,14 @@ Marketplace add fails with a policy error If `/plugin marketplace add` is blocked for your GHES URL, your organization has restricted marketplace sources. Ask your admin to add a `hostPattern` entry for your GHES hostname in managed settings. + +### + +​ + +Marketplace add on claude.ai fails with a GitHub access error + +If adding a GHES marketplace from your user settings fails with a generic error like “Marketplace couldn’t be added”, check your GitHub Enterprise connection first. This is what appears when your own GitHub Enterprise account is not connected to Claude, even if your organization’s GHES instance is configured and other users are connected. The dialog does not point to the GitHub Enterprise connect flow, and the “Connect to GitHub” option on the Browse tab signs in to github.com, which does not grant access to GHES repositories. To connect your GitHub Enterprise account: the repository picker on [claude.ai/code](<https://claude.ai/code>) offers a connect option for each configured GHES instance, and Owners can also connect from the GitHub Enterprise section of the [Claude Code admin settings](<https://claude.ai/admin-settings/claude-code>). Then add the marketplace again. Alternatively, ask an Owner to add the marketplace in the organization plugin settings, which removes the per-user connection requirement. On other claude.ai surfaces, a “Repository not found. If it’s private, GitHub access is required” error on a GHES marketplace usually indicates the same missing connection. Connect your GitHub Enterprise account through one of the paths above, then try again. ###
modified
--- a/github-enterprise-server.md +++ b/github-enterprise-server.md @@ -12,7 +12,7 @@ Feature| GHES support| Notes ---|---|--- -Claude Code on the web| ✅ Supported| An Owner connects the GHES instance once; developers use `claude --remote` or [claude.ai/code](<https://claude.ai/code>) as usual +Claude Code on the web| ✅ Supported| An Owner connects the GHES instance once; developers use `claude --cloud` or [claude.ai/code](<https://claude.ai/code>) as usual Code Review| ✅ Supported| Same automated PR reviews as github.com Claude Security| ✅ Supported| Available in public beta for Enterprise plans at [claude.ai/security](<https://claude.ai/security>) Teleport sessions| ✅ Supported| Move sessions between web and terminal with `--teleport` @@ -108,7 +108,7 @@ Then start a web session. Claude detects the GHES host from your git remote and routes the session through your organization’s configured instance: - claude --remote "Add retry logic to the payment webhook handler" + claude --cloud "Add retry logic to the payment webhook handler" The session runs on Anthropic infrastructure, clones your repository from GHES, and pushes changes back to a branch. Monitor progress with `/tasks` or at [claude.ai/code](<https://claude.ai/code>). See [Claude Code on the web](</docs/en/claude-code-on-the-web>) for the full cloud session workflow including diff review, auto-fix, and routines. @@ -199,7 +199,7 @@ Web session fails to clone repository -If `claude --remote` fails with a clone error, verify that an Owner has completed setup for your GHES instance and that the GitHub App is installed on the repository you’re working in. Ask the Owner who connected the instance to confirm that the hostname registered in Claude settings matches the hostname in your git remote. +If `claude --cloud` fails with a clone error, verify that an Owner has completed setup for your GHES instance and that the GitHub App is installed on the repository you’re working in. Ask the Owner who connected the instance to confirm that the hostname registered in Claude settings matches the hostname in your git remote. ###
modified
--- a/github-enterprise-server.md +++ b/github-enterprise-server.md @@ -1,6 +1,6 @@ GitHub Enterprise Server support is available for Team and Enterprise plans. -GitHub Enterprise Server (GHES) support lets your organization use Claude Code with repositories hosted on your self-managed GitHub instance instead of github.com. Once an admin connects your GHES instance, developers can run web sessions, get automated code reviews, and install plugins from internal marketplaces without any per-repository configuration. For repositories on github.com, see [Claude Code on the web](</docs/en/claude-code-on-the-web>) and [Code Review](</docs/en/code-review>). To run Claude in your own CI infrastructure, see [GitHub Actions](</docs/en/github-actions>). +GitHub Enterprise Server (GHES) support lets your organization use Claude Code with repositories hosted on your self-managed GitHub instance instead of github.com. Once an Owner connects your GHES instance, developers can run web sessions, get automated code reviews, and install plugins from internal marketplaces without any per-repository configuration. For repositories on github.com, see [Claude Code on the web](</docs/en/claude-code-on-the-web>) and [Code Review](</docs/en/code-review>). To run Claude in your own CI infrastructure, see [GitHub Actions](</docs/en/github-actions>). ## @@ -12,7 +12,7 @@ Feature| GHES support| Notes ---|---|--- -Claude Code on the web| ✅ Supported| Admin connects the GHES instance once; developers use `claude --remote` or [claude.ai/code](<https://claude.ai/code>) as usual +Claude Code on the web| ✅ Supported| An Owner connects the GHES instance once; developers use `claude --remote` or [claude.ai/code](<https://claude.ai/code>) as usual Code Review| ✅ Supported| Same automated PR reviews as github.com Claude Security| ✅ Supported| Available in public beta for Enterprise plans at [claude.ai/security](<https://claude.ai/security>) Teleport sessions| ✅ Supported| Move sessions between web and terminal with `--teleport` @@ -27,7 +27,7 @@ Admin setup -An admin connects your GHES instance to Claude Code once. After that, developers in your organization can use GHES repositories without any additional configuration. You need admin access to your Claude organization and permission to create GitHub Apps on your GHES instance. The guided setup generates a GitHub App manifest and redirects you to your GHES instance to create the app in one click. If your environment blocks the redirect flow, an alternative manual setup is available. +An Owner connects your GHES instance to Claude Code once. After that, developers in your organization can use GHES repositories without any additional configuration. You need the Owner or Primary Owner role in your Claude organization and permission to create GitHub Apps on your GHES instance. The guided setup generates a GitHub App manifest and redirects you to your GHES instance to create the app in one click. If your environment blocks the redirect flow, an alternative manual setup is available. 1 @@ -101,7 +101,7 @@ Developer workflow -Once your admin has connected the GHES instance, no developer-side configuration is needed. Claude Code detects your GHES hostname automatically from the git remote in your working directory. Clone a repository from your GHES instance as you normally would: +Once an Owner has connected the GHES instance, no developer-side configuration is needed. Claude Code detects your GHES hostname automatically from the git remote in your working directory. Clone a repository from your GHES instance as you normally would: git clone git@github.example.com:platform/api-service.git cd api-service @@ -199,7 +199,7 @@ Web session fails to clone repository -If `claude --remote` fails with a clone error, verify that your admin has completed setup for your GHES instance and that the GitHub App is installed on the repository you’re working in. Check with your admin that the instance hostname registered in Claude settings matches the hostname in your git remote. +If `claude --remote` fails with a clone error, verify that an Owner has completed setup for your GHES instance and that the GitHub App is installed on the repository you’re working in. Ask the Owner who connected the instance to confirm that the hostname registered in Claude settings matches the hostname in your git remote. ###
modified
--- a/github-enterprise-server.md +++ b/github-enterprise-server.md @@ -110,7 +110,7 @@ claude --remote "Add retry logic to the payment webhook handler" -The session runs on Anthropic infrastructure, clones your repository from GHES, and pushes changes back to a branch. Monitor progress with `/tasks` or at [claude.ai/code](<https://claude.ai/code>). See [Claude Code on the web](</docs/en/claude-code-on-the-web>) for the full remote session workflow including diff review, auto-fix, and routines. +The session runs on Anthropic infrastructure, clones your repository from GHES, and pushes changes back to a branch. Monitor progress with `/tasks` or at [claude.ai/code](<https://claude.ai/code>). See [Claude Code on the web](</docs/en/claude-code-on-the-web>) for the full cloud session workflow including diff review, auto-fix, and routines. ###
modified
--- a/github-enterprise-server.md +++ b/github-enterprise-server.md @@ -1,9 +1,3 @@ -> ## Documentation Index -> -> Fetch the complete documentation index at: <https://code.claude.com/docs/llms.txt> -> -> Use this file to discover all available pages before exploring further. - GitHub Enterprise Server support is available for Team and Enterprise plans. GitHub Enterprise Server (GHES) support lets your organization use Claude Code with repositories hosted on your self-managed GitHub instance instead of github.com. Once an admin connects your GHES instance, developers can run web sessions, get automated code reviews, and install plugins from internal marketplaces without any per-repository configuration. For repositories on github.com, see [Claude Code on the web](</docs/en/claude-code-on-the-web>) and [Code Review](</docs/en/code-review>). To run Claude in your own CI infrastructure, see [GitHub Actions](</docs/en/github-actions>).
modified
--- a/github-enterprise-server.md +++ b/github-enterprise-server.md @@ -20,6 +20,7 @@ ---|---|--- Claude Code on the web| ✅ Supported| Admin connects the GHES instance once; developers use `claude --remote` or [claude.ai/code](<https://claude.ai/code>) as usual Code Review| ✅ Supported| Same automated PR reviews as github.com +Claude Security| ✅ Supported| Available in public beta for Enterprise plans at [claude.ai/security](<https://claude.ai/security>) Teleport sessions| ✅ Supported| Move sessions between web and terminal with `--teleport` Plugin marketplaces| ✅ Supported| Use full git URLs instead of `owner/repo` shorthand Contribution metrics| ✅ Supported| Delivered via webhooks to the [analytics dashboard](</docs/en/analytics>) @@ -62,7 +63,7 @@ Enable features -Return to [claude.ai/admin-settings/claude-code](<https://claude.ai/admin-settings/claude-code>) and enable [Code Review](</docs/en/code-review#set-up-code-review>) and [contribution metrics](</docs/en/analytics#enable-contribution-metrics>) for your GHES repositories using the same configuration as github.com. +Return to [claude.ai/admin-settings/claude-code](<https://claude.ai/admin-settings/claude-code>) and enable [Code Review](</docs/en/code-review#set-up-code-review>), Claude Security, and [contribution metrics](</docs/en/analytics#enable-contribution-metrics>) for your GHES repositories using the same configuration as github.com. ### @@ -70,7 +71,7 @@ GitHub App permissions -The manifest configures the GitHub App with the permissions and webhook events Claude needs across web sessions, Code Review, and contribution metrics: +The manifest configures the GitHub App with the permissions and webhook events Claude needs across web sessions, Code Review, Claude Security, and contribution metrics: Permission| Access| Used for ---|---|---
modified
--- a/github-enterprise-server.md +++ b/github-enterprise-server.md @@ -1,3 +1,9 @@ +> ## Documentation Index +> +> Fetch the complete documentation index at: <https://code.claude.com/docs/llms.txt> +> +> Use this file to discover all available pages before exploring further. + GitHub Enterprise Server support is available for Team and Enterprise plans. GitHub Enterprise Server (GHES) support lets your organization use Claude Code with repositories hosted on your self-managed GitHub instance instead of github.com. Once an admin connects your GHES instance, developers can run web sessions, get automated code reviews, and install plugins from internal marketplaces without any per-repository configuration. For repositories on github.com, see [Claude Code on the web](</docs/en/claude-code-on-the-web>) and [Code Review](</docs/en/code-review>). To run Claude in your own CI infrastructure, see [GitHub Actions](</docs/en/github-actions>).
modified
--- a/github-enterprise-server.md +++ b/github-enterprise-server.md @@ -102,7 +102,7 @@ Once your admin has connected the GHES instance, no developer-side configuration is needed. Claude Code detects your GHES hostname automatically from the git remote in your working directory. Clone a repository from your GHES instance as you normally would: - git clone [[email protected]](</cdn-cgi/l/email-protection>):platform/api-service.git + git clone git@github.example.com:platform/api-service.git cd api-service Then start a web session. Claude detects the GHES host from your git remote and routes the session through your organization’s configured instance: @@ -135,7 +135,7 @@ The `owner/repo` shorthand always resolves to github.com. For GHES-hosted marketplaces, use the full git URL: - /plugin marketplace add [[email protected]](</cdn-cgi/l/email-protection>):platform/claude-plugins.git + /plugin marketplace add git@github.example.com:platform/claude-plugins.git HTTPS URLs work as well: @@ -167,7 +167,7 @@ "internal-tools": { "source": { "source": "git", - "url": "[[email protected]](</cdn-cgi/l/email-protection>):platform/claude-plugins.git" + "url": "git@github.example.com:platform/claude-plugins.git" } } }
modified
--- a/github-enterprise-server.md +++ b/github-enterprise-server.md @@ -109,7 +109,7 @@ claude --remote "Add retry logic to the payment webhook handler" -The session runs on Anthropic infrastructure, clones your repository from GHES, and pushes changes back to a branch. Monitor progress with `/tasks` or at [claude.ai/code](<https://claude.ai/code>). See [Claude Code on the web](</docs/en/claude-code-on-the-web>) for the full remote session workflow including diff review, auto-fix, and scheduled tasks. +The session runs on Anthropic infrastructure, clones your repository from GHES, and pushes changes back to a branch. Monitor progress with `/tasks` or at [claude.ai/code](<https://claude.ai/code>). See [Claude Code on the web](</docs/en/claude-code-on-the-web>) for the full remote session workflow including diff review, auto-fix, and routines. ###
modified
--- a/github-enterprise-server.md +++ b/github-enterprise-server.md @@ -14,7 +14,7 @@ ---|---|--- Claude Code on the web| ✅ Supported| Admin connects the GHES instance once; developers use `claude --remote` or [claude.ai/code](<https://claude.ai/code>) as usual Code Review| ✅ Supported| Same automated PR reviews as github.com -Teleport sessions| ✅ Supported| Move sessions between web and terminal with `/teleport` +Teleport sessions| ✅ Supported| Move sessions between web and terminal with `--teleport` Plugin marketplaces| ✅ Supported| Use full git URLs instead of `owner/repo` shorthand Contribution metrics| ✅ Supported| Delivered via webhooks to the [analytics dashboard](</docs/en/analytics>) GitHub Actions| ✅ Supported| Requires manual workflow setup; `/install-github-app` is github.com only @@ -117,7 +117,7 @@ Teleport sessions to your terminal -Pull a web session into your local terminal with `/teleport` or `claude --teleport`. Teleport verifies you’re in a checkout of the same GHES repository before fetching the branch and loading the session history. See [teleport requirements](</docs/en/claude-code-on-the-web#requirements-for-teleporting>) for details. +Pull a web session into your local terminal with `claude --teleport`. Teleport verifies you’re in a checkout of the same GHES repository before fetching the branch and loading the session history. See [teleport requirements](</docs/en/claude-code-on-the-web#teleport-requirements>) for details. ##
modified
--- a/github-enterprise-server.md +++ b/github-enterprise-server.md @@ -1,4 +1,4 @@ -GitHub Enterprise Server support is available for Teams and Enterprise plans. +GitHub Enterprise Server support is available for Team and Enterprise plans. GitHub Enterprise Server (GHES) support lets your organization use Claude Code with repositories hosted on your self-managed GitHub instance instead of github.com. Once an admin connects your GHES instance, developers can run web sessions, get automated code reviews, and install plugins from internal marketplaces without any per-repository configuration. For repositories on github.com, see [Claude Code on the web](</docs/en/claude-code-on-the-web>) and [Code Review](</docs/en/code-review>). To run Claude in your own CI infrastructure, see [GitHub Actions](</docs/en/github-actions>).
added
Show diff (235 lines)
--- a/github-enterprise-server.md +++ b/github-enterprise-server.md @@ -0,0 +1,232 @@ +GitHub Enterprise Server support is available for Teams and Enterprise plans. + +GitHub Enterprise Server (GHES) support lets your organization use Claude Code with repositories hosted on your self-managed GitHub instance instead of github.com. Once an admin connects your GHES instance, developers can run web sessions, get automated code reviews, and install plugins from internal marketplaces without any per-repository configuration. For repositories on github.com, see [Claude Code on the web](</docs/en/claude-code-on-the-web>) and [Code Review](</docs/en/code-review>). To run Claude in your own CI infrastructure, see [GitHub Actions](</docs/en/github-actions>). + +## + +​ + +What works with GitHub Enterprise Server + +The table below shows which Claude Code features support GHES and any differences from github.com behavior. + +Feature| GHES support| Notes +---|---|--- +Claude Code on the web| ✅ Supported| Admin connects the GHES instance once; developers use `claude --remote` or [claude.ai/code](<https://claude.ai/code>) as usual +Code Review| ✅ Supported| Same automated PR reviews as github.com +Teleport sessions| ✅ Supported| Move sessions between web and terminal with `/teleport` +Plugin marketplaces| ✅ Supported| Use full git URLs instead of `owner/repo` shorthand +Contribution metrics| ✅ Supported| Delivered via webhooks to the [analytics dashboard](</docs/en/analytics>) +GitHub Actions| ✅ Supported| Requires manual workflow setup; `/install-github-app` is github.com only +GitHub MCP server| ❌ Not supported| The GitHub MCP server does not work with GHES instances + +## + +​ + +Admin setup + +An admin connects your GHES instance to Claude Code once. After that, developers in your organization can use GHES repositories without any additional configuration. You need admin access to your Claude organization and permission to create GitHub Apps on your GHES instance. The guided setup generates a GitHub App manifest and redirects you to your GHES instance to create the app in one click. If your environment blocks the redirect flow, an alternative manual setup is available. + +1 + +Open Claude Code admin settings + +Go to [claude.ai/admin-settings/claude-code](<https://claude.ai/admin-settings/claude-code>) and find the GitHub Enterprise Server section. + +2 + +Start the guided setup + +Click **Connect**. Enter a display name for the connection and your GHES hostname, for example `github.example.com`. If your GHES instance uses a self-signed or private certificate authority, paste the CA certificate in the optional field. + +3 + +Create the GitHub App + +Click **Continue to GitHub Enterprise**. Your browser redirects to your GHES instance with a pre-filled app manifest. Review the configuration and click **Create GitHub App**. GHES redirects you back to Claude with the app credentials stored automatically. + +4 + +Install the app on your repositories + +From the GitHub App page on your GHES instance, install the app on the repositories or organizations you want Claude to access. You can start with a subset and add more later. + +5 + +Enable features + +Return to [claude.ai/admin-settings/claude-code](<https://claude.ai/admin-settings/claude-code>) and enable [Code Review](</docs/en/code-review#set-up-code-review>) and [contribution metrics](</docs/en/analytics#enable-contribution-metrics>) for your GHES repositories using the same configuration as github.com. + +### + +​ + +GitHub App permissions + +The manifest configures the GitHub App with the permissions and webhook events Claude needs across web sessions, Code Review, and contribution metrics: + +Permission| Access| Used for +---|---|--- +Contents| Read and write| Cloning repositories and pushing branches +Pull requests| Read and write| Creating PRs and posting review comments +Issues| Read and write| Responding to issue mentions +Checks| Read and write| Posting Code Review check runs +Actions| Read| Reading CI status for auto-fix +Repository hooks| Read and write| Receiving webhooks for contribution metrics +Metadata| Read| Required by GitHub for all apps + +The app subscribes to `pull_request`, `issue_comment`, `pull_request_review_comment`, `pull_request_review`, and `check_run` events. + +### + +​ + +Manual setup + +If the guided redirect flow is blocked by your network configuration, click **Add manually** instead of Connect. Create a GitHub App on your GHES instance with the permissions and events above, then enter the app credentials in the form: hostname, OAuth client ID and secret, GitHub App ID, client ID, client secret, webhook secret, and private key. + +### + +​ + +Network requirements + +Your GHES instance must be reachable from Anthropic infrastructure so Claude can clone repositories and post review comments. If your GHES instance is behind a firewall, allowlist the [Anthropic API IP addresses](<https://platform.claude.com/docs/en/api/ip-addresses>). + +## + +​ + +Developer workflow + +Once your admin has connected the GHES instance, no developer-side configuration is needed. Claude Code detects your GHES hostname automatically from the git remote in your working directory. Clone a repository from your GHES instance as you normally would: + + git clone [[email protected]](</cdn-cgi/l/email-protection>):platform/api-service.git + cd api-service + +Then start a web session. Claude detects the GHES host from your git remote and routes the session through your organization’s configured instance: + + claude --remote "Add retry logic to the payment webhook handler" + +The session runs on Anthropic infrastructure, clones your repository from GHES, and pushes changes back to a branch. Monitor progress with `/tasks` or at [claude.ai/code](<https://claude.ai/code>). See [Claude Code on the web](</docs/en/claude-code-on-the-web>) for the full remote session workflow including diff review, auto-fix, and scheduled tasks. + +### + +​ + +Teleport sessions to your terminal + +Pull a web session into your local terminal with `/teleport` or `claude --teleport`. Teleport verifies you’re in a checkout of the same GHES repository before fetching the branch and loading the session history. See [teleport requirements](</docs/en/claude-code-on-the-web#requirements-for-teleporting>) for details. + +## + +​ + +Plugin marketplaces on GHES + +Host plugin marketplaces on your GHES instance to distribute internal tooling across your organization. The marketplace structure is identical to github.com-hosted marketplaces; the only difference is how you reference them. + +### + +​ + +Add a GHES marketplace + +The `owner/repo` shorthand always resolves to github.com. For GHES-hosted marketplaces, use the full git URL: + + /plugin marketplace add [[email protected]](</cdn-cgi/l/email-protection>):platform/claude-plugins.git + +HTTPS URLs work as well: + + /plugin marketplace add https://github.example.com/platform/claude-plugins.git + +See [Create and distribute a plugin marketplace](</docs/en/plugin-marketplaces>) for the full guide to building marketplaces. + +### + +​ + +Allowlist GHES marketplaces in managed settings + +If your organization uses [managed settings](</docs/en/settings>) to restrict which marketplaces developers can add, use the `hostPattern` source type to allow all marketplaces from your GHES instance without enumerating each repository: + + { + "strictKnownMarketplaces": [ + { + "source": "hostPattern", + "hostPattern": "^github\\.example\\.com$" + } + ] + } + +You can also pre-register marketplaces for developers so they appear without manual setup. This example makes an internal tools marketplace available organization-wide: + + { + "extraKnownMarketplaces": { + "internal-tools": { + "source": { + "source": "git", + "url": "[[email protected]](</cdn-cgi/l/email-protection>):platform/claude-plugins.git" + } + } + } + } + +See the [strictKnownMarketplaces](</docs/en/settings#strictknownmarketplaces>) and [extraKnownMarketplaces](</docs/en/settings#extraknownmarketplaces>) settings reference for the complete schema. + +## + +​ + +Limitations + +A few features behave differently on GHES than on github.com. The feature table summarizes support; this section covers the workarounds. + + * **`/install-github-app` command**: follow the admin setup flow on claude.ai instead. If you also want GitHub Actions workflows on GHES, adapt the [example workflow](<https://github.com/anthropics/claude-code-action/blob/main/examples/claude.yml>) manually. + * **GitHub MCP server** : use the `gh` CLI configured for your GHES host instead. Run `gh auth login --hostname github.example.com` to authenticate, then Claude can use `gh` commands in sessions. + +## + +​ + +Troubleshooting + +### + +​ + +Web session fails to clone repository + +If `claude --remote` fails with a clone error, verify that your admin has completed setup for your GHES instance and that the GitHub App is installed on the repository you’re working in. Check with your admin that the instance hostname registered in Claude settings matches the hostname in your git remote. + +### + +​ + +Marketplace add fails with a policy error + +If `/plugin marketplace add` is blocked for your GHES URL, your organization has restricted marketplace sources. Ask your admin to add a `hostPattern` entry for your GHES hostname in managed settings. + +### + +​ + +GHES instance not reachable + +If reviews or web sessions time out, your GHES instance may not be reachable from Anthropic infrastructure. Confirm your firewall allows inbound connections from the [Anthropic API IP addresses](<https://platform.claude.com/docs/en/api/ip-addresses>). + +## + +​ + +Related resources + +These pages cover the features referenced throughout this guide in more depth: + + * [Claude Code on the web](</docs/en/claude-code-on-the-web>): run Claude Code sessions on cloud infrastructure + * [Code Review](</docs/en/code-review>): automated PR reviews + * [Plugin marketplaces](</docs/en/plugin-marketplaces>): build and distribute plugin catalogs + * [Analytics](</docs/en/analytics>): track usage and contribution metrics + * [Managed settings](</docs/en/settings>): organization-wide policy configuration + * [Network configuration](</docs/en/network-config>): firewall and IP allowlist requirements