Directory Compare FCRS-1.0 /llms.txt
← Back to Directory

crane

$ crane Official Med Risk
Google (go-containerregistry) · Cloud & Infra · Apache-2.0 · macos / linux / windows

crane (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.

FCRS-1.0 Score
85 /100
Good
Medium Confidence
Zero-Friction Install
brew install crane
CLI vs MCP Decision CLI Preferred vs MCP

crane inspects remote image manifests and configs in native JSON over HTTP with zero local daemon or MCP overhead.

Agent-Readiness Checklist

✓ JSON Output
— Field Filtering
✓ Non-Interactive
— Dry-Run
— Read-Only Mode
— NO_COLOR Clean
✓ Self-Describing
— Official SKILL.md

Static evaluation (not yet probed on this host). Run npm run data:probe locally to capture live verification.

FCRS-1.0 6-Dimension Breakdown

Agent-Readiness 21 / 25

manifest and config emit native OCI JSON directly to stdout, and every command is non-interactive.

  • Native JSON on manifest/config; zero interactive prompts
Trust & Safety 21 / 25

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
Setup & Portability 15 / 15

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
Utility & Efficiency 13 / 15

Inspects multi-GB remote images in milliseconds by fetching only manifest/config JSON blobs.

  • Metadata-only inspection without downloading image layers
Maintenance & Lineage 8 / 10

Official google/go-containerregistry maintained under Apache-2.0.

  • Official google/go-containerregistry repository
Docs & Verifiability 7 / 10

Auto-generated markdown CLI docs and clean --help output.

  • Generated docs in repo cmd/crane/doc/

Security, Auth & Guardrails

Auth Modes
Config File OS Keychain
Credential Storage

Reads OCI registry credentials from ~/.docker/config.json and configured Docker credential helpers (crane auth login).

Side Effects
Read-Only Remote Write Destructive
Cost & Quotas

100% open-source (Apache-2.0); registry egress/storage follows your registry provider's pricing.

Copyable Guardrail for CLAUDE.md / AGENTS.md
# 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

Fetch an OCI image manifest as JSON
crane manifest ghcr.io/org/app:latest

Retrieves the raw OCI/Docker manifest or index JSON directly from the registry.

Inspect image entrypoint, env, and labels
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 manifest and crane config emit clean OCI JSON instantly.
  • + Inspects remote image architecture, env, and digests without downloading layers.

Caveats & Pitfalls

  • ! crane ls emits newline-separated tags rather than a JSON array.
  • ! Lacks a --dry-run flag on crane copy, tag, or delete.

Tested Agent Hosts

Claude Code Codex CLI Gemini CLI