Adds Cloudsmith package/artifact management to any agent via the official cloudsmith CLI, wired t...
108
Adds Cloudsmith package/artifact management to any agent via the official cloudsmith CLI, wired to Cloudsmith's cloud API. Push, pull, list and manage packages across 30+ formats. Needs a key: sbx secret set cloudsmith (the kit holds no key).
| Type | Required | Description | |
|---|---|---|---|
com.docker.sandbox/network-policy@1 | Required | — | |
com.docker.sandbox/credential@1 | Optional | Cloudsmith API key (read + write) | |
com.docker.sandbox/agent-context@1 | Required | — | |
sbx run <agent> --kit docker/sbx-kit-cloudsmith:latestRun the following command to install sbx on your machine.
brew install docker/tap/sbxwinget install Docker.sbxNote
Experimental: Sandbox Kit v3This kit uses the experimental Sandbox Kit specification, specifically v3. The format and runtime behavior may change before v3 is stable.
A mixin kit that installs the official Cloudsmith CLI wired to Cloudsmith's cloud API, so an agent can push, pull, list, and manage packages across 30+ formats (Docker, npm, PyPI, Maven, Debian, RPM, Helm, Cargo, Go, NuGet, and more). The API key stays on the host; the sandbox only ever sees a placeholder.
Pairs with any base agent.
Store a Cloudsmith API key (read + write) once on the host:
sbx secret set cloudsmith
Then create a sandbox with the kit:
sbx run --kit "docker.io/docker/sbx-kit-cloudsmith:latest" claude
Or target this repo directly over git, or a local clone:
sbx run --kit "git+https://github.com/docker/sbx-kits-contrib.git#dir=cloudsmith" claude
sbx run --kit ./cloudsmith/ claude
Inside the sandbox:
cloudsmith whoami # verify auth
cloudsmith list packages OWNER/REPO # list packages
cloudsmith push python OWNER/REPO dist/pkg.whl # upload a Python wheel
cloudsmith push docker OWNER/REPO image.tar # upload a Docker image tarball
OWNER is your Cloudsmith workspace (organization) slug and REPO is the repository slug. Run cloudsmith push --help for the full list of formats.
The kit declares a cloudsmith credential with one inject rule for api.cloudsmith.io. Cloudsmith uses Authorization: token <key> (not Bearer, not Basic), so the header and format are spelled out by hand rather than via the scheme: sugar. Inside the container CLOUDSMITH_API_KEY is the placeholder proxy-managed; the proxy swaps in the real token on outbound requests to api.cloudsmith.io, so the key never touches the sandbox filesystem or environment. Run the CLI directly; do not try to read or echo the key.
The egress allowlist also covers the Cloudsmith content hosts (dl.cloudsmith.io, docker.cloudsmith.io, npm.cloudsmith.io). The pinned CLI is baked into the v3 kit image, so sandbox creation does not need PyPI access.
The v3 descriptor is cloudsmith.yaml, its overlay recipe is cloudsmith.dockerfile, and agent guidance lives in cloudsmith-context.md.
sbx secret rm --service cloudsmith
Pulls:
72
Last week