Skip to main content

Claude Code plugin marketplace

Claude Code installs plugins, also called skills, from marketplaces. The gateway can be one of those marketplaces, so your organisation keeps one catalogue of approved plugins and every developer installs from the same place. You register a plugin by pointing at where its files live, a git repository, a folder inside one or a zip archive on an HTTPS host, and the gateway stores only that reference. Claude Code clones or downloads the plugin itself. Disabling a plugin takes it out of the public catalogue while keys and teams that are granted it by name can still install it, which is how you roll a plugin out to one team before everyone.

The Admin UI calls the same objects skills. The Skills page is described in the Skills page, and the routes below are what it calls.

A real-world scenario​

A platform team writes a release-notes plugin that drafts release notes from merged changes. They register it on the gateway, disable it, and grant it to the key of the developer experience team. That team installs it from the gateway's marketplace and tries it for a week. When it is ready the admin enables the plugin and every developer who added the gateway as a marketplace can install it with one command. Later a bug is found, so the admin disables it again and installs stop while the fix is prepared, without deleting the registration.

Register a plugin​

Registration needs a proxy admin key. The name must be kebab-case, lowercase letters, digits and hyphens, and must not already exist.

  1. In the Admin UI, open Skills and click + Add Skill. Fill in Source URL with the repository or archive URL, Skill Name, and any of Version, Description, Category and Keywords, then click Add Skill. The toast reads "Skill registered successfully".

  2. Or register it with the API:

    curl -X POST http://localhost:4000/claude-code/plugins \
    -H "Authorization: Bearer $SPANWAY_MASTER_KEY" -H "Content-Type: application/json" \
    -d '{
    "name": "release-notes",
    "source": {"source": "url", "url": "https://git.example.com/tools/release-notes.git"},
    "version": "1.2.0",
    "description": "Drafts release notes from merged changes",
    "category": "productivity",
    "keywords": ["release", "changelog"]
    }'

    Expected result:

    {
    "status": "success",
    "action": "created",
    "plugin": {
    "id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
    "name": "release-notes",
    "version": "1.2.0",
    "description": "Drafts release notes from merged changes",
    "source": {"source": "url", "url": "https://git.example.com/tools/release-notes.git"},
    "enabled": true
    }
    }
  3. Back on Skills, the plugin is listed with Public reading Yes, because a new plugin starts enabled.

source tells Claude Code where to fetch the plugin from:

source.sourceOther fieldsMeaning
The hosted repository short formrepo as org/repoA GitHub repository that Claude Code resolves from the org/repo name.
urlurlAny git URL Claude Code can clone, including an SSH clone URL for a private repository.
git-subdirurl, pathA folder inside a git repository. path is relative, made of letters, digits, dots, hyphens and underscores.
archiveurl, optional sha256A zip archive on any HTTPS host. With sha256 set, Claude Code refuses an archive whose digest differs.

version, description, author, homepage, keywords and category are optional metadata shown in the Claude Code catalogue, in GET /claude-code/plugins/{plugin_name} and on the Skills page. domain and namespace are shown only in GET /claude-code/plugins and on the Skills page, the Claude Code catalogue does not carry them. PUT /claude-code/plugins/{plugin_name} replaces the whole manifest with the body, so send every field you want to keep. An omitted version is cleared.

Add the marketplace in Claude Code​

  1. On the Skills page, click a plugin name, open How to Use and click See one-time setup. Copy the /plugin marketplace add command, which carries this gateway's /claude-code/marketplace.json URL.

  2. In Claude Code, run the command, then install the plugin:

    claude plugin marketplace add https://gateway.example.com/claude-code/marketplace.json
    claude plugin install release-notes@spanway
  3. Claude Code clones or downloads the plugin from the source you registered and the plugin's commands become available. If Claude Code reports that the plugin is not in the marketplace, run /plugin marketplace update spanway and try again.

The catalogue route needs no key and lists the enabled plugins:

curl http://localhost:4000/claude-code/marketplace.json
{
"name": "spanway",
"owner": {"name": "Spanway", "email": "support@spanway.ai"},
"plugins": [{"name": "release-notes", "source": {"source": "url", "url": "https://git.example.com/tools/release-notes.git"}, "version": "1.2.0"}]
}

With ?key=sk-... the key is authenticated and the catalogue also holds the disabled plugins granted to that key or its team, so a team can add the marketplace as https://gateway.example.com/claude-code/marketplace.json?key=sk-... and see its private plugins. An invalid, expired or blocked key answers 401 instead of the public catalogue.

caution

A key in a URL is easier to leak than a key in a header. It is saved in Claude Code's marketplace settings on every developer's machine and can show up in the logs of any proxy between them and the gateway. The gateway's own access log redacts it. Create a dedicated key for the marketplace that can call no model, grant it only the skills it should see in object_permission.skills, and rotate it when someone leaves the team.

Roll a plugin out to one team first​

  1. Disable the plugin so it leaves the public catalogue. In the Admin UI, open AI Hub, click Select Skills to Make Public, clear the plugin's tick and save. The Skills page itself adds, shows and deletes plugins but has no enable or disable switch. Or use the API:

    curl -X POST http://localhost:4000/claude-code/plugins/release-notes/disable \
    -H "Authorization: Bearer $SPANWAY_MASTER_KEY"

    Expected result:

    {"status": "success", "message": "Plugin 'release-notes' disabled"}
  2. Grant it to the team. In the Admin UI, open Teams, edit the team and pick the plugin in the Skills picker, where it carries a "private" label. Or use the API:

    curl -X POST http://localhost:4000/team/update \
    -H "Authorization: Bearer $SPANWAY_MASTER_KEY" -H "Content-Type: application/json" \
    -d '{"team_id": "devex", "object_permission": {"skills": ["release-notes"]}}'
  3. Members of that team add the marketplace with their key in the URL and install the plugin. Everyone else gets a catalogue without it. When both a key and its team list skills, the key sees only the plugins in both lists.

  4. When the plugin is ready for everyone, call POST /claude-code/plugins/release-notes/enable, or wait for a proxy admin to publish it from the AI Hub page with Select Skills to Make Public.

GET /claude-code/plugins lists what the calling key may see, every plugin for a proxy admin and the enabled plugins plus granted ones for everyone else. GET /claude-code/plugins/{plugin_name} returns one plugin, or 403 when it is disabled and not granted to the key. DELETE /claude-code/plugins/{plugin_name} removes the registration, after which installs from the gateway stop. Plugins already installed on a developer's machine stay there.

Routes​

MethodPathSummary
GET/claude-code/marketplace.jsonServe the plugin catalogue to Claude Code
GET/claude-code/pluginsList the plugins a key may see
POST/claude-code/pluginsRegister a plugin in the marketplace
GET/claude-code/plugins/{plugin_name}Get one plugin
PUT/claude-code/plugins/{plugin_name}Replace a plugin's manifest
DELETE/claude-code/plugins/{plugin_name}Delete a plugin
POST/claude-code/plugins/{plugin_name}/disableDisable a plugin
POST/claude-code/plugins/{plugin_name}/enableEnable a plugin

Errors​

StatusRouteMeaningFix
400 Plugin name must be kebab-case (lowercase letters, numbers, hyphens)POST /claude-code/pluginsThe name has upper case letters, spaces or other characters.Use a name such as release-notes.
400 naming source.sourcePOST, PUTUnknown source type. Related messages say which field a source type is missing, for example git-subdir source must include 'path' field, or that archive 'sha256' must be a 64-character hex digest.Send a source from the table above.
400 skill_scan_blocked or skill_scan_incomplete in detail.codePOST, PUTThe skill scan of the plugin manifest refused it. Nothing was stored, and a refused PUT keeps the old manifest. detail.scan_id names the scan.Remove what the message names, or fix the guardrail named in skill_scan_guardrails.
403 Only proxy admins may modify the Claude Code plugin marketplace.Every writeThe key is not a proxy admin key. The catalogue is served without authentication, so only admins may change it.Use a proxy admin key.
403 Plugin 'release-notes' is not granted to this keyGET /claude-code/plugins/{plugin_name}The plugin is disabled and neither the key nor its team is granted it.Grant it with object_permission.skills, or enable it.
404 Plugin 'release-notes' not foundRoutes with {plugin_name}No plugin has that name. PUT never creates.Check the name on the Skills page, or register it with POST.
409 A skill named 'release-notes' already exists. Update the existing skill instead of adding it again.POST /claude-code/pluginsPOST never overwrites.Use PUT /claude-code/plugins/release-notes.
401GET /claude-code/marketplace.json?key=... and every keyed routeThe key in ?key= or the Authorization header is invalid, expired or blocked.Use a valid key, or drop ?key= to get the public catalogue.
500 DB not connected. This endpoint needs a database; set DATABASE_URL to a PostgreSQL connection string (postgresql://...) to enable it. ...Every routeThe gateway runs without a database, and plugins are stored in it.Set DATABASE_URL.
500 <action> failed. The gateway log has the cause.Every routeThe database call behind the route failed, for example Registering the plugin failed or Building the marketplace failed on marketplace.json. The answer never carries the database error itself.Read the Error registering plugin (or updating, enabling, disabling, deleting, listing, getting) line in the gateway log.

Logs​

LevelLineMeaningAction needed
WARNINGPlugin <name> has invalid manifest JSON, skippingThe stored manifest of one plugin cannot be read. The plugin is left out of the catalogue and the list, the other plugins are still served. Replace, enable, disable and delete still work on it, and their audit rows show its source as empty.Replace the plugin with PUT /claude-code/plugins/<name>, or delete it.
WARNINGPlugin <name> has no source field, skippingThe plugin has no source, so Claude Code could not install it. It is left out of the catalogue.Replace it with a source.
ERRORError generating marketplace: ...Building marketplace.json failed, usually a database error. Claude Code gets 500.Check the database connection.
ERRORError registering plugin, Error updating plugin, Error listing plugins, Error getting plugin and the enable, disable and delete variantsThe database call behind a route failed and the caller got 500.Read the error after the colon.
INFOPlugin <name> created successfully, updated, enabled, disabled or deletedA proxy admin changed the marketplace. The matching audit row says who.None.

Audit​

Each register and replace is first checked by skill scanning, which writes a created or blocked row on Spanway_SkillScanTable. Only the manifest is read, because the plugin's own files stay on your git host, so a plugin scan that passes is marked manifest_only. Review the plugin's files and pin its source to a commit before people install it. Every write to the marketplace is audited on Spanway_ClaudeCodePluginTable: created, updated for a replace, enable or disable, and deleted, each with the plugin's name, version, description, source and enabled state, see the Skills page.