regctl
$ regctl Community Med Riskregctl (from regclient) is a fast, daemonless CLI for inspecting OCI manifests, configs, referrers, and tags, copying multi-arch images, and pruning stale tags directly via the OCI Distribution API. Its --format Go-template engine outputs clean JSON across inspection commands.
brew install regctl regctl queries remote OCI registries directly with Go-template --format JSON extraction and rate-limit awareness, beating generic MCP tools.
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
Flexible Go-template --format '{{json .}}' / '{{jsonPretty .}}' and field selection across manifest, image, artifact, and tag commands.
--format '{{json .}}'and Go-template filtering across read commands- Non-interactive flags (
-p/--platform) and clean exit codes
Daemonless HTTP client respects registry auth helpers, though tag rm and manifest rm lack a global --dry-run flag.
- No local Docker socket or root privileges needed
tag rmandmanifest rmmutate remote registries directly
Single static Go binary available via Homebrew, go install, and GitHub Releases on macOS, Linux, and Windows.
- Zero-dependency static binary across all 3 platforms
Supports OCI Referrers API (artifact list/get), manifest lists, and registry-to-registry copies with digest preservation.
- Copies OCI referrers (signatures/SBOMs) alongside images
Widely respected open-source project (regclient/regclient) maintained under Apache-2.0.
- Active
regclient/regclientrepository
Structured documentation at regclient.org and clear Cobra --help pages.
- Official docs at regclient.org/usage/regctl/
Security, Auth & Guardrails
Reads OCI registry credentials from ~/.docker/config.json and ~/.regctl/config.json (plus Docker credential helpers).
100% free and open-source (Apache-2.0); registry API rate limits and egress pricing apply.
# regctl Agent Rules
- Default to `regctl manifest get`, `image config`, `artifact list`, and `tag ls` with `--format '{{json .}}'`.
- Never run `regctl tag rm`, `manifest rm`, or `repo prune` without explicit digest checks and user confirmation. Agent-Ready Command Recipes
Safe Read-Only Queries
regctl manifest get ghcr.io/org/app:latest --format '{{jsonPretty .}}' Retrieves the remote OCI manifest or index JSON directly without pulling layers.
regctl tag ls ghcr.io/org/app --format '{{json .}}' Queries repository tags from the OCI registry and formats them as compact JSON.
Controlled Writes & Previews
regctl image copy ghcr.io/org/app:v1.0.0 registry.internal/app:v1.0.0
Copies manifests, layers, and OCI referrers (signatures/SBOMs) without a Docker daemon.
Strengths for Agents
- +
--format '{{json .}}'and Go templates give surgical JSON field extraction across registries. - + Handles OCI Referrers (
artifactsubcommands) and multi-arch indexes seamlessly. - + Completely daemonless single binary across macOS, Linux, and Windows.
Caveats & Pitfalls
- ! Requires Go template syntax (
--format '{{json .}}') rather than a short--jsonflag. - ! Destructive commands (
tag rm,manifest rm) do not provide a global--dry-runflag.