Build a Claude Code plugin marketplace, on GitHub Enterprise too
11m read time

Build a Claude Code plugin marketplace, on GitHub Enterprise too

How to build your own Claude Code plugin marketplace, and a private one for your organisation on GitHub Enterprise. A minimal manifest is twenty lines of JSON. The work is in the catalogue, the pins, the credentials and the rollout. I tested the GHE route on a ghe.com host.

evidence3 tools6 sourcesNovember 24, 2026
own measurement
private marketplace on a GHE Cloud host: add, install, update and CI authentication, in an isolated config
tested on
claude-code 2.1.331, gh 2.45.0, homebrew 4.6.20
checked
November 24, 2026

A colleague asked me recently how I had built my marketplace. And whether the same thing would work on GitHub Enterprise.

Easy question, I thought. All my plugins and skills install from aranea-marketplace, so I only had to show what was in it. Once I started writing it down, the answer turned out a good deal longer than the file the question was about.

Because that file is small. The format Claude Code reads fits in twenty lines of JSON. Everything else in the repository exists because twenty lines turned out not to be enough. Mine is generated anyway, by a generator I wrote for a file I could just as well have typed.

Five kinds in catalog.yml: all five feed the overview, only plugin, skill and mcp reach marketplace.json.

What a marketplace is ​

A marketplace is a git repository, a URL or a directory with a .claude-plugin/marketplace.json in it. Three fields are required: name, owner and plugins. Each plugin needs a name and a source. That's it.

json
{
  "name": "acme",
  "owner": { "name": "Acme platform team" },
  "plugins": [
    { "name": "design-system", "source": "./plugins/design-system" },
    {
      "name": "release-notes",
      "source": {
        "source": "url",
        "url": "https://acme.ghe.com/platform/release-notes.git",
        "sha": "<full 40-character commit SHA>"
      }
    }
  ]
}

A source is either a relative path starting with ./ or an object of type github, url, git-subdir, npm, archive or command, according to the marketplace reference. Your colleagues add it with claude plugin marketplace add and install with claude plugin install design-system@acme. Run claude plugin validate . yourself first, so you hear it from the validator before a colleague comes to tell you.

That is the whole format. You can have it running in fifteen minutes.

The rest of this post is about the three months after that.

How to build a marketplace that covers more than plugins ​

In aranea-marketplace I edit exactly one file by hand: catalog.yml. From it, a generator writes three things: the Claude Code manifest, a feed my site builds its tool pages and install blocks from, and the install block in every plugin's README. If a generated file drifts from what the catalogue produces, CI fails.

Why not use the manifest itself as the source? Because the manifest only knows what Claude Code can install. My catalogue also lists tools with their own setup, such as standalone CLIs and MCP servers. Those get kind: site and only a page on the site.

For an organisation, that is the difference between a list of plugins and an overview of everything floating around internally. Put in the catalogue what exists, including the things Claude Code has no use for:

yaml
marketplace: acme
entries:
  - id: design-system
    kind: skill
    source: { type: local, path: plugins/design-system }
  - id: release-notes
    kind: plugin
    source: { type: git, url: https://acme.ghe.com/platform/release-notes.git, commit: '…' }
  - id: ui-tokens
    kind: package
    source: { type: npm, package: '@acme/ui-tokens', registry: https://npm.acme.ghe.com }
  - id: orders-api
    kind: app
    url: https://orders.internal.acme.example
    owner: team-orders
    repo: https://acme.ghe.com/platform/orders-api
  - id: tickets-mcp
    kind: mcp
    source: { type: git, url: https://acme.ghe.com/platform/tickets-mcp.git }

Each kind gets its own output. skill and plugin go into the manifest, and so does mcp, for a reason I come back to below. A package produces an install block with the right .npmrc lines.

An app has nothing to install, so it gets an address, an owner and a repository. All of it lands in one internal overview, and a new colleague no longer has to ask around on day one to find out what exists.

Any list somebody maintains by hand is, six months later, the list that lies. That is why the aranea-marketplace README links to the site, which is itself built from the catalogue, and keeps no plugin list of its own.

How do you install the rest? ​

What a colleague reads is the overview. Every entry there carries the block the generator wrote for it, and that block looks different per kind:

text
# skill or plugin: design-system
claude plugin install design-system@acme

# mcp: tickets-mcp
claude plugin install tickets-mcp@acme

# package: ui-tokens, add to .npmrc
@acme:registry=https://npm.acme.ghe.com
//npm.acme.ghe.com/:_authToken=${NODE_AUTH_TOKEN}
# then
npm install @acme/ui-tokens

# app: orders-api
https://orders.internal.acme.example

So the MCP server installs as a plugin. That works because a plugin may bring an MCP server along: a .mcp.json at the plugin root is enough, according to the plugins reference. Have the generator wrap every mcp entry in a thin plugin like that, and the server arrives through the same marketplace, with the same pins and the same allowlist as everything else.

For the package, .npmrc holds only a variable. npm fills in ${NODE_AUTH_TOKEN} from the environment, so the file can live in the repository.

The app gets a link. If you want the agent to work with that API as well, write a skill next to it, and that goes through the marketplace like any other. The link itself is the only install block in the overview that never fails.

Beyond Claude: installing other plugins and apps ​

Up to here, only Claude Code gets a real install. Everything else gets a block in the overview and a colleague who types it over. To make other plugins and apps installable too, the same rule applies as for Claude Code: for each ecosystem, generate the file that ecosystem already reads, and let its own tool do the installing. That way you never have to build a package manager yourself.

Kind in the catalogueWhat the generator writesWhat a colleague types
plugin, skill, mcp.claude-plugin/marketplace.jsonclaude plugin install …@acme
plugin for another agentthat agent's own marketplacethat agent's install command
CLI or desktop appa Homebrew tap in a GHE repositorybrew install acme/tools/…
package.npmrc linesnpm install @acme/…
container imagethe image reference in your registrydocker pull …
applink and ownernothing

I tested the Homebrew route on the same GHE host, in a clean homebrew/brew container with Homebrew 4.6.20 and a second throwaway repository. A tap is a git repository of formulae, and brew tap accepts a full URL:

bash
brew tap acme/tools https://acme.ghe.com/platform/homebrew-tools.git
brew install acme/tools/acme-hello

Without credentials the tap died on the same could not read Username as Claude Code. With the insteadOf rule from the CI part below, tap and install worked first time. Brew runs plain git as well, so a credential helper that works for Claude Code should work for brew too. That last part I did not test separately.

The formula fetches its source through git, with a tag and a revision:

ruby
url "https://acme.ghe.com/platform/acme-hello.git", tag: "v0.1.1", revision: "<full commit SHA>"

That way the download goes through the same credentials, and the revision doubles as a pin. One thing cost me an attempt: when the source holds exactly one directory, brew helpfully steps into it, and your formula can no longer find bin/acme-hello. A README in the root was enough to cure brew of its helpfulness.

Codex has a plugin marketplace of its own as well, with its own format. I did not test it for this post, so there is no example of it here.

If you want one command for everything, a small acme CLI can read the overview and call the right tool per kind. Handy, as long as it stays a thin layer. Once that CLI starts downloading and installing by itself, you are building a package manager after all, and nobody asked for one.

Pins that follow releases ​

A plugin from another repository is pinned to a commit. That is the deal with your users: what you reviewed is what runs. Since Plugin4Shell, Claude Code also verifies that the checkout really landed on that commit.

A pin you update by hand, though, never gets updated. In aranea-marketplace a scheduled workflow therefore checks the latest published release of every plugin every six hours.

Drafts and pre-releases do not count. A pin only moves when the release commit is ahead of the current pin and carries a .claude-plugin/plugin.json with a version. A re-tag or a force-push can never move it backwards.

Every move goes into one pull request that merges itself once validation passes. The workflow runs as a GitHub App, which looks like overkill until you see why: a pull request opened with the workflow's own token triggers no other workflow. Without the App, your pull request waits very patiently for a check that is never going to run.

Then the trap I walked into myself, while testing for this very post. I changed the text of a skill, pushed, and asked for an update:

text
✔ hello is already at the latest version (0.1.0).

Up to date. Apart from the new text not being in it.

Claude Code looks at the version field in plugin.json first, and the hosting docs say so without ceremony: "If you set "version": "1.0.0" and push new commits without changing it, users don't receive them." Only after a bump to 0.1.1 did the change come through. An unchanged version number says nothing changed, and Claude Code takes you at your word.

So bump the version on every release, or leave the field out. Without one, Claude Code uses the commit SHA as the version for a git source.

A private marketplace on GitHub Enterprise ​

Then the other half of the question. Internal plugins do not belong on github.com, so the marketplace goes on a private GitHub Enterprise host. The documentation only covers GitHub Enterprise Server, and the string ghe.com does not appear in it.

So I tested it: Claude Code 2.1.331, a GHE Cloud host with data residency, one of those company.ghe.com addresses, a throwaway repository and an isolated config directory. Creating that repository was the easy part. Throwing it away again turned out to need a token scope I had never asked for.

The starting point is in the hosting docs: "Claude Code has no git token of its own, and marketplace.json has no field for one." Claude Code runs plain git on your machine with prompts switched off, and uses whatever credentials are already there. Everything that goes wrong below follows from that.

  • The shorthand means github.com. claude plugin marketplace add acme/claude-plugins tried to clone https://github.com/acme/... and ended in Repository not found. The GHES page says the same: "The owner/repo shorthand always resolves to github.com."
  • Without .git you get a baffling error. An https:// URL that does not end in .git is fetched as a marketplace.json. A private host returns no JSON, and the message reads Invalid input: expected object, received string. Technically accurate, and exactly as helpful as it sounds.
  • The full URL works, as long as git already has access: claude plugin marketplace add https://acme.ghe.com/platform/claude-plugins.git.
  • A token in your environment is not enough. I set GITHUB_TOKEN, GH_TOKEN and GH_ENTERPRISE_TOKEN, all three, with an empty git config, and git still asked who I was: could not read Username ... terminal prompts disabled. The docs say the same holds for the background update: such a variable "alone doesn't authenticate the background check". A token only works through a credential helper.

On your own machine, two commands fix it:

bash
gh auth login --hostname acme.ghe.com
gh auth setup-git --hostname acme.ghe.com

After that, adding, installing and updating all worked. The background update uses the same helper and never prompts. When it fails, the old checkout stays in place and you hear nothing about it. Until 2.1.280 that background update ignored credential helpers altogether, according to the changelog.

In CI ​

For GitHub Actions, the docs for organisations recommend GH_TOKEN plus gh auth setup-git. On a GHE host that stalls. gh only uses GH_TOKEN for github.com, and told me I was not logged in to the host.

With GH_ENTERPRISE_TOKEN and GH_HOST the setup succeeded, but the helper then returned no credential. That was gh 2.45, the version Ubuntu handed me, so a newer one may do better.

What did work, without gh:

bash
git config --global \
  url."https://x-access-token:${MARKETPLACE_TOKEN}@acme.ghe.com/".insteadOf \
  "https://acme.ghe.com/"

The token stays in the runner's git config, and the marketplace clone keeps the plain URL. Give the token read access to the marketplace and plugin repositories only. The workflow's own token can only reach its own repository.

Rolling it out to the team ​

A repository can propose a marketplace, in .claude/settings.json:

json
{
  "extraKnownMarketplaces": {
    "acme": {
      "source": {
        "source": "git",
        "url": "https://acme.ghe.com/platform/claude-plugins.git"
      }
    }
  },
  "enabledPlugins": {
    "design-system@acme": true
  }
}

Propose, and nothing more. The entries "apply only in a folder the contributor has trusted, and in an untrusted folder Claude Code ignores them without a message", and "Setting enabledPlugins in the repository doesn't install the plugin." Every colleague installs it themselves. It is the same pattern as sharing Claude Code config with a team: anything that grants something, a repository can only offer.

To enforce it, use managed settings. There you set strictKnownMarketplaces, an allowlist of sources. Your own host needs a hostPattern, because "A github source always counts as github.com":

json
{
  "strictKnownMarketplaces": [{ "source": "hostPattern", "hostPattern": "^acme\\.ghe\\.com$" }]
}

An empty list locks everything out, Anthropic's official marketplace included. blockedMarketplaces is the counterpart and is checked first. I did not test this side myself. Managed settings apply to the whole machine, and I preferred my own sessions not to lose their plugins halfway through this post.

Auto-update is off by default for a marketplace you add from your own git host. The docs switch it on for Anthropic's official marketplaces such as claude-plugins-official and leave it "off for every other marketplace". For managed marketplaces that is about to change: the 2.1.331 changelog announces that marketplaces in managed extraKnownMarketplaces will auto-update by default "on or after November 30, 2026". To opt out, set "autoUpdate": false on the entry.

Add that to pins that follow releases, and a new release reaches the whole team within hours. Which is exactly what you want, right up until the release is broken. Never let that pin workflow merge without validation.

Where to start ​

  • Start with the catalogue, not the manifest. Generate the manifest, the overview and the install blocks from it, and let CI fail when they drift.
  • Pin external plugins to a commit, and let a workflow move those pins to releases, forwards only.
  • Generate the format each ecosystem already reads, and let its own tool do the installing.
  • Bump version on every release, or leave the field out.
  • On GHE, always use the full .git URL, and authenticate git through a credential helper.
  • Propose in the repository and enforce in managed settings, with a hostPattern for your own host.

My colleague asked how I did it. The short answer is twenty lines of JSON. The honest answer is a catalogue with a marketplace as a by-product, and that is the only shape that stays correct once packages, apps and MCP servers have to live next to the plugins.

And yes, it works on GitHub Enterprise. As long as git itself can already reach the host.

(43 of 43)
1My Claude Code setup: status line, plugins and terminal2Superpowers: teaching Claude Code to think before it types3Claude Code hooks: deterministic control over AI workflows4The CLAUDE.md file: give your AI permanent memory5Stop asking your agent nicely6What's new in Claude Code: notes from the London talk7The best number in Opus 4.8 isn't a benchmark8Stale memory is worse than no memory9The agent is just a loop10Build an MCP server, then ask whether it should exist11Skill, subagent, hook, or slash command? Pick the right one12Log in to MCP servers from your shell13How to give Claude safe access to your SQL database14The day 'default' became 'Manual'15Claude Code skills: how to write one that works16How to write a proper Claude Code subagent17Claude Code permissions: the guide I wish the docs were18Sandboxing Claude Code: put your agent in a box that holds19Prompt injection defense for developers who ship agents20Best Claude model for coding: which one for which task21Refactoring legacy code with a coding agent: start with characterization tests22MCP server authentication: OAuth, scopes and rate limits23Opus 5 is here and your effort settings just expired24AI agent incident response: what to do when your coding agent goes wrong25Claude Code /doctor command: what it checks and fixes26Claude Code context management: when to /clear and when to /compact27Git worktrees for parallel coding agents: what they isolate and what they share28Claude Code plan mode: decide before the agent writes29Debugging with a coding agent: give it the search, keep the hypothesis30Claude Code checkpoints and /rewind: how to undo an agent's changes31Claude Code cross-session messaging: how to make your sessions talk to each other32Audit logging for AI agents: what Claude Code records and what deserves a human33Sharing Claude Code config across a team: what a repo can and cannot enforce34Claude Code timestamps: your session has no clock35Claude Code in a large codebase: scoping an agent to the part that matters36Recovering a Claude Code session your picker will not show you37Where Claude Code spends its time: a month of my own sessions, measured38Steering Claude Code mid-task: Esc, queued messages and /btw39Claude Code auto mode: why your Agent allow rule does nothing40Claude Code Superpowers: what subagent-driven development costs in tokens41Read-only database access for Claude: the role, the flag and Azure without passwords42Claude Code keeps asking for permission: every mode, measured43Build a Claude Code plugin marketplace, on GitHub Enterprise too