crane
$ crane Official Med Riskcrane (from google/go-containerregistry) inspects, copies, mutates, and deletes container images directly in remote OCI registries without a Docker daemon, returning native JSON on crane manifest and crane config.
brew install crane crane inspects remote image manifests and configs in native JSON over HTTP with zero local daemon or MCP overhead.
Agent-Readiness Checklist
Static evaluation (not yet probed on this host). Run npm run data:probe locally to capture live verification.
FCRS-1.0 6-Dimension Breakdown
manifest and config emit native OCI JSON directly to stdout, and every command is non-interactive.
- Native JSON on
manifest/config; zero interactive prompts
Daemonless HTTP registry access avoids local root Docker socket risks, though crane delete and crane copy mutate remote registries directly.
- Daemonless operation; no local root socket required
Tiny static Go binary installable via Homebrew, go install, or release tarballs with zero runtime dependencies.
- Zero-dependency Go binary across macOS, Linux, and Windows
Inspects multi-GB remote images in milliseconds by fetching only manifest/config JSON blobs.
- Metadata-only inspection without downloading image layers
Official google/go-containerregistry maintained under Apache-2.0.
- Official
google/go-containerregistryrepository
Auto-generated markdown CLI docs and clean --help output.
- Generated docs in repo
cmd/crane/doc/
Security, Auth & Guardrails
Reads OCI registry credentials from ~/.docker/config.json and configured Docker credential helpers (crane auth login).
100% open-source (Apache-2.0); registry egress/storage follows your registry provider's pricing.
# crane Agent Rules - Prefer read-only inspection (`manifest`, `config`, `digest`, `ls`) without pulling image tarballs. - Pin `--platform` when inspecting multi-arch images. - Never run `crane delete` or overwrite `:latest` tags via `crane copy`/`tag` without explicit approval.
Agent-Ready Command Recipes
Safe Read-Only Queries
crane manifest ghcr.io/org/app:latest
Retrieves the raw OCI/Docker manifest or index JSON directly from the registry.
crane config ghcr.io/org/app:latest --platform linux/amd64
Outputs the OCI image config JSON for a specific architecture without pulling layers.
Strengths for Agents
- + No Docker daemon required—runs safely inside restricted agent sandboxes.
- +
crane manifestandcrane configemit clean OCI JSON instantly. - + Inspects remote image architecture, env, and digests without downloading layers.
Caveats & Pitfalls
- !
crane lsemits newline-separated tags rather than a JSON array. - ! Lacks a
--dry-runflag oncrane copy,tag, ordelete.