Skip to content

A private marketplace for AI coding-agent plugins

Preview: coming in Artifact Keeper 1.12.0

The agentplugins format is not in a released version of Artifact Keeper yet. It first ships in 1.12.0. Until then this walkthrough runs a development build from main (sha-c3a650e) and a CLI prerelease (v1.11.0-rc.2), so details may still change before the release.

An example, not a complete defense

This walkthrough shows one way to run a private marketplace of agent plugins on Artifact Keeper. The configuration is an example, built and tested in a lab. It does not cover every edge case or attack, and it is not a hardened production setup. In particular, the scan finds known vulnerabilities in what a plugin bundles; it does not judge whether a skill, hook or MCP server is malicious. Some gaps we found are listed in Findings. Review and adapt it for your own environment, and use it alongside your other controls (code review of plugins, sandboxing, secrets handling, monitoring), not instead of them.

This walkthrough builds one governed place for the plugins your developers load into their AI coding agents. A platform team publishes internal plugins (review skills, coding standards, an MCP server, release tooling) to an Artifact Keeper repository of the new agentplugins format. Claude Code installs them straight from the registry's marketplace over TLS. Cursor, Codex and GitHub Copilot get the same bytes through the ak CLI. The registry makes every version immutable, lets only scoped tokens read or publish, scans each upload before it is served, and records who published and who installed what. The last step proves the failure modes are closed: overwrites, ambiguous bundles, tampered downloads, unscanned versions and leaked tokens.

Everything runs in containers on one host. The code is in private-agent-plugin-marketplace/, and make all followed by make gates reproduces the whole thing from an empty registry. No Anthropic, OpenAI, GitHub or Cursor account is needed for any of it except the few checks that run a model session, which the gates report as blocked rather than failed.

Registry version

The agentplugins format first ships in Artifact Keeper 1.12.0. Until that release is published, the walkthrough runs the first main build that carries it, ghcr.io/artifact-keeper/artifact-keeper-backend:sha-c3a650e (artifact-keeper#5256, tracking issue #5251), with the web UI :dev build that has the Agent Plugins setup tab. The ak agent plugins command first ships in the CLI prerelease v1.11.0-rc.2; the client image downloads that release's binary and checks its SHA-256 and cosign signature (AK_CLI_RELEASE=source builds artifact-keeper-cli@10eafa8 from source instead). When the releases are out, change BACKEND_IMAGE in registry/.env to 1.12.0 and AK_CLI_RELEASE in client/VERSIONS.

Who this is for

Platform and security teams in organizations where developers already use Claude Code, Cursor, Codex or Copilot, and where internal plugins have started to spread as git repositories, copied folders and links in chat. A plugin is code that runs inside the agent: hooks run commands, MCP servers start processes, skills steer what the agent does. The questions are the ones you already ask of packages. Who published this version, and can it change after review? Who can read it? Was it scanned? Which machines installed it? The requirements below come from those questions.

What you will be able to show

Requirement Where
R1 One private registry over TLS with a bare hostname; every client trusts the internal CA Step 1
R2 Plugins authored once, in the layouts the agents read: Claude Code, the Agent Plugins Standard, multi-harness Step 2
R3 Publishing needs a write token for one repository; reading needs a token; a read token cannot publish Step 1, Step 8
R4 Publish rules close the ambiguous cases: no overwrite, no manifest, mismatched name or version, build metadata, unsafe entries, bad names Step 3, Step 8
R5 Claude Code installs from the registry with nothing else installed, for a private and a public repository Step 4
R6 Cursor, Codex and Copilot get the same verified bytes through ak Step 5
R7 Updates reach Claude Code and the ak installs; the CLI says what is behind Step 6
R8 The marketplace documents are a stable contract: naming, archive sources with a correct sha256, per-agent membership, caching Step 3, Step 8
R9 Versions stay immutable across a delete; a tampered download is refused by the client Step 8
R10 Nothing unscanned is served Step 7
R11 An audit trail of publishes and installs Step 7
R12 Tokens stay out of logs, and the one place they cannot is stated Step 4, Step 8

The shape of it

flowchart LR
    subgraph AK["Artifact Keeper: https://ak.internal"]
        AP["agent-plugins<br/>agentplugins, private<br/>scan on upload, block_unscanned"]
        PUB["agent-plugins-public<br/>agentplugins, public"]
        TR["trust<br/>generic, public: CA certificate"]
        DOCS["generated per request:<br/>marketplace.json, claude-, cursor-,<br/>codex-, vscode-marketplace.json,<br/>name/index.json"]
        AP --- DOCS
    end
    CI["CI: ak agent plugins publish<br/>(ci token, write)"] -->|PUT zip| AP
    CC["Claude Code<br/>claude plugin marketplace add"] -->|"claude-marketplace.json,<br/>archive + sha256"| DOCS
    AKC["ak agent plugins install<br/>(developer token, read)"] -->|"name/index.json, zip,<br/>SHA-256 check"| DOCS
    AKC --> CU["~/.cursor/plugins/local"]
    AKC --> CX["Codex: local marketplace"]
    AKC --> CP["Copilot: installed-plugins"]
    CC -. "anonymous" .-> PUB

Three internal plugins stand in for yours: acme-review (Claude Code layout: a skill, a command, an agent and a hook), acme-standards (the Agent Plugins Standard layout: skills and an MCP server) and acme-release-notes (one skill with manifests for Claude Code, Cursor and Codex). The developer workstation is a container with Claude Code, Codex, the Copilot CLI, the Cursor CLI and ak, each run with a throwaway home.

Before you start

  • A Linux host with rootless podman 5.x and podman compose (or docker-compose), curl, jq, openssl, python3, unzip and GNU make. No sudo is needed anywhere.
  • About 6 GB of free RAM for the registry stack and 8 GB of disk for images.
  • Internet access for the first run: container images from ghcr.io and docker.io, the agent CLIs from npmjs.com, the ak source from GitHub, and the scanner's vulnerability database.
  • Loopback port 127.0.0.1:30447 free (change HTTPS_PORT in registry/.env otherwise).

Run it yourself

git clone https://github.com/artifact-keeper/walkthroughs
cd walkthroughs/private-agent-plugin-marketplace
make all           # registry, plugins, publish, Claude Code, ak installs, update, scan, audit
make gates         # the ten gates, including every refusal
make screens-ready # the UI address and where the admin password is
On a 40-core host with the stack images already pulled, make all takes about 4 minutes (most of it building the workstation image) and make gates under 40 seconds.

Steps

  1. Stand up the registry: TLS, a bare hostname, three repositories, a scan policy, scoped tokens.
  2. Author the plugins: three layouts, one validator.
  3. Publish: ak agent plugins publish, a plain curl -T, and the documents the registry generates.
  4. Install in Claude Code: the settings route, the token-in-path route, a public repository.
  5. Install in Cursor, Codex and Copilot: ak agent plugins install and what each agent sees.
  6. Ship an update: a new version through Claude Code and ak.
  7. Govern: scanning, tokens and audit: the scan hold, who can do what, who installed what.
  8. Prove it fails safely: the ten gates.

Then Results and Next steps. The lab notes are the unedited record every page is written from, and the plan is the design we started with.