Omniscio

OmniscioGuidesClaude Code with GitHub Enterprise Server

Claude Code with GitHub Enterprise Server

GitHub Enterprise Server support connects your self-managed GitHub instance to Claude Code once, at the organization level. An Owner sets it up, and after that developers start cloud sessions and get automated reviews against your instance with no per-repository configuration.

This page covers what works, the admin setup and the app permissions it creates, what developers run day to day, how plugin marketplaces reach a GHES host, and the few features that behave differently.

Sources read on November 22, 2026. By the Omniscio team. Updated .

What works, and what does not

GHES support lets an organization use Claude Code with repositories hosted on its own GitHub instance instead of github.com. Once an Owner connects the instance, developers can run cloud sessions and get automated code reviews without any per-repository configuration.

It is available on Team and Enterprise plans.

The support is broad but not complete. These are the features that work, and the ones that do not:

FeatureOn GHESNote
Cloud sessionsSupportedclaude --cloud or claude.ai/code, after the Owner connects the instance
Code ReviewSupportedThe same automated pull request reviews as github.com
Claude SecuritySupportedPublic beta for Enterprise plans at claude.ai/security
Teleport sessionsSupported--teleport moves a session between cloud and terminal
Plugin marketplacesSupportedCredential requirements differ by surface; see below
GitHub ActionsSupportedNeeds a workflow set up by hand; /install-github-app is github.com only
Contribution metricsNot supportedNeeds repositories on github.com; the analytics dashboard still shows usage
GitHub MCP serverNot supportedUse the gh CLI pointed at your host instead

The admin setup, once

Connecting the instance takes an Owner or Primary Owner role in your Claude organization in the claude.ai admin console, plus permission to create GitHub Apps on the GHES instance itself. The guided setup generates a GitHub App manifest and sends you to the instance to create the app in one step.

  1. In the claude.ai admin console, open Organization settings > Git providers and find the GitHub Enterprise section.
  2. Choose Connect (or Add instance when one is already connected), then Set up automatically. Enter a display name of up to 20 characters and your hostname, such as github.example.com, and paste a CA certificate if your instance uses a self-signed or private certificate authority.
  3. Continue to the instance, review the pre-filled manifest, and create the GitHub App. The credentials are stored automatically as the instance redirects back.
  4. Install the app on the repositories or organizations Claude should reach. A subset is fine to start.
  5. Enable Code Review for those repositories at claude.ai/admin-settings/claude-code, with the same configuration you would use on github.com.

The manifest asks for contents, pull requests, issues and checks at read and write, actions and commit statuses at read, repository hooks at read and write, plus metadata and organization members at read. The app subscribes to pull request, issue comment, pull request review comment, pull request review, check run and status events.

A GitHub App keeps the permissions it was created with, so an app built from an older manifest keeps that older set. If a permission or event is missing, add it in the app's settings on the instance; an owner of each installation then has to approve the change.

If the redirect flow is blocked

Choose Add manually instead and create the GitHub App yourself with the same permissions and events. The form takes the display name, hostname and optional port, the app's ID, client ID, client secret, webhook secret and private key, and optionally a custom CA certificate and read replica hostnames.

Claude generates the webhook URL when you save. After you click Add configuration, open the connection's More options menu, copy the webhook URL, and paste it into the app's webhook settings on your instance with the same secret you entered.

What a developer does

Nothing, beyond working in a normal clone. Claude Code detects the GHES hostname from the git remote in the working directory.

git clone git@github.example.com:platform/api-service.git
cd api-service
claude --cloud "Add retry logic to the payment webhook handler"

The session clones the repository from the instance, pushes its changes back to a branch, and you follow it at claude.ai/code. The full cloud session workflow — diff review, auto-fix, scheduled tasks — is the same one github.com repositories get; the cloud sessions guide covers it.

To pull a cloud session into a terminal, run claude --teleport. Teleport checks that you are in a checkout of the same GHES repository before it loads the session history.

Plugin marketplaces on your instance

A marketplace is the same JSON catalog on GHES as on github.com. What changes is who fetches it, and with which credentials:

SurfaceHow it installsWhat each user needs
Claude Code CLI and desktopClones with the machine's existing git credentialsGit access to the host from their machine
Managed settings (extraKnownMarketplaces)Registers the entry and clones with the machine's git credentialsGit access to the host from their machine
claude.ai organization plugin settingsAn Owner selects the instance; Anthropic fetches with the GitHub AppNothing per user once it is added, but the Owner adding it needs their own GitHub Enterprise account connected, and the app installed on the marketplace repository
claude.ai user settingsAnthropic fetches with that user's GitHub Enterprise connectionTheir own GitHub Enterprise account connected to Claude
Cloud sessionsClones inside the session sandboxNot reliable: the sandbox reaches the instance only when the session's repository is on the same one

To add a marketplace from a session, use the full git URL. The owner/repo shorthand always resolves to github.com, so it cannot name a GHES host:

/plugin marketplace add https://github.example.com/platform/claude-plugins.git

HTTPS is the recommended form because SSH clones fail on a machine that does not already trust the host's key. If you register the marketplace through the extraKnownMarketplaces setting instead, the clone uses each machine's own credentials and no claude.ai connection is involved.

When managed settings restrict which marketplaces are allowed, a strictKnownMarketplaces entry of type hostPattern can allow everything from your instance without listing each repository:

{
  "strictKnownMarketplaces": [
    { "source": "hostPattern", "hostPattern": "^github\\.example\\.com$" }
  ]
}

Publishing and distributing a plugin has its own guide: the plugin publishing guide covers the marketplace file, versioning and how users receive updates.

Firewall and network requirements

Anthropic-hosted sessions have to reach your instance to clone repositories and post review comments. If it sits behind a firewall, allow Anthropic's outbound IP addresses.

Sessions that run in a self-hosted environment — Claude Code on infrastructure inside your own network — clone from there instead, unless that runner is set to use Anthropic's git proxy, which needs the same reachability. Hosted pre-session flows, such as the repository picker, run on Anthropic's side before a session starts, so they need the instance reachable even when the session itself runs inside your network. The SCM connector is not available, so those flows cannot reach an instance that is only routable internally.

If egress from your network goes through a proxy, the corporate proxy guide covers the settings a session uses.

The four exceptions and their workarounds

The limits are narrow enough that each one has a way around it:

  • /install-github-app: the command is github.com only. Use the admin setup flow on claude.ai instead, and adapt Anthropic's example workflow by hand if you also want GitHub Actions on the instance.
  • GitHub MCP server: it does not work with GHES instances. In a session on your own machine, run gh auth login --hostname github.example.com and let Claude use the gh CLI there.
  • GitHub Actions: supported, but /install-github-app is github.com only, so a workflow on the instance is adapted by hand from Anthropic's example.
  • Contribution metrics: they require repositories on github.com. Usage metrics for work in GHES repositories still appear in the analytics dashboard.

When something does not connect

Most failures name their own fix:

  • A cloud session fails to clone: check that an Owner completed setup and that the app is installed on that repository, and that the hostname in Claude's settings matches the one in your git remote.
  • “Authentication failed while accessing the repository”: your own GitHub Enterprise account may not be connected. Connect it from the repository picker at claude.ai/code, then start a new session.
  • A marketplace is refused for policy: your organization restricts marketplace sources. Ask an admin for a hostPattern entry covering your hostname.
  • Adding a GHES marketplace on claude.ai fails with a generic error: connect your GitHub Enterprise account first. The “Connect to GitHub” option on the Browse tab signs in to github.com, which does not grant access to your instance.
  • Reviews or sessions time out: the instance may not be reachable from Anthropic's infrastructure. Allow its outbound IP addresses, or ask an Owner to run Test connection from the connection's More options menu.
  • “Unable to get organization UUID”: sign in with /login using an account in your Team or Enterprise organization.

Where these answers come from

  • Everything on this page about GHES support, the admin setup, app permissions, the developer workflow, plugin marketplaces, network requirements, limits and troubleshooting: Claude Code with GitHub Enterprise Server, read November 22, 2026.
  • The cloud session and teleport workflow it refers to: the same page, which links to Anthropic's cloud sessions documentation.

No setup was run to write this page: every step and every limit is Anthropic's own wording, quoted and paraphrased from the page named above.

Common questions

Does Claude Code support GitHub Enterprise Server?

Yes, on Team and Enterprise plans. An Owner connects your self-hosted GitHub instance once, and then developers can start cloud sessions, get automated code reviews and install plugins from marketplaces hosted on that instance, with no per-repository configuration.

Do developers need to configure anything per repository?

No. Claude Code reads the GitHub Enterprise Server hostname from the git remote in the working directory, so a developer clones a repository as usual and starts a cloud session with claude --cloud. The session routes through the instance the Owner connected.

Which features do not work on GitHub Enterprise Server?

Contribution metrics need repositories on github.com, and the GitHub MCP server does not work with GitHub Enterprise Server instances. The /install-github-app command is github.com only, and GitHub Actions on the instance needs a workflow adapted by hand.

How do plugin marketplaces work on GitHub Enterprise Server?

The marketplace format is the same as on github.com, but credentials differ by surface. The CLI and desktop app clone the marketplace with the machine's own git credentials, an Owner can select the instance for organization plugin settings, and cloud sessions are not a reliable way to install from an instance-hosted marketplace.