@registry-tags tool lists the tags published for a container image across public and private OCI registries — Docker Hub, GCR, GHCR, Quay, ACR, Harbor and Artifactory. It is keyless for public images and reads ~/.docker/config.json for private ones. No image is pulled — only the registry’s read-only tags API is queried, so it is fast and side-effect free.
Usage
@registry-tags automatically when it needs to validate or discover tags.
Arguments
Credentials
Credentials are optional, and the model should not pass them inline: a value in a tool call lands in the transcript. The resolution order is:1
Explicit arguments (discouraged)
username/password or token passed in the call still work for compatibility, but the output flags them and they are redacted from any echoed line.2
Per-host environment variables
CHATCLI_REGISTRY_<HOST>_TOKEN, or CHATCLI_REGISTRY_<HOST>_USERNAME + CHATCLI_REGISTRY_<HOST>_PASSWORD, where <HOST> is the registry host upper-cased with non-alphanumerics as _ (GHCR_IO, REGISTRY_EXAMPLE_COM_5000; Docker Hub is DOCKER_IO).3
Generic environment variables
CHATCLI_REGISTRY_TOKEN, or CHATCLI_REGISTRY_USERNAME + CHATCLI_REGISTRY_PASSWORD. The legacy REGISTRY_TOKEN / REGISTRY_USERNAME / REGISTRY_PASSWORD names are read as well.4
Docker config
$DOCKER_CONFIG/config.json or ~/.docker/config.json: the auths entry (base64) or identitytoken for the matching registry — exactly how docker and crane read it. credsStore/credHelpers are not invoked; when one is configured the output names the variable to export instead.auth: <source> line (env, docker-config, inline or none) — names only, never a value. Every variable is listed by /config as set or not set.
Public images need no credentials at all.
Registries that gate anonymous reads
GHCR, Quay and GCR require a token even to read public tags.@registry-tags performs the OCI Bearer-token negotiation automatically (it reads the WWW-Authenticate challenge, fetches the token from the realm and retries the call), so those images return tags with no setup on your side.
Output
One tag per line, with an image/host/count header. When the number of tags exceedslimit, the output is truncated and the truncation is flagged:
Notes
- It is read-only and concurrency-safe — the orchestrator can run several
@registry-tagsin parallel. - It follows pagination (Docker Hub
next, OCILink) up tolimit, instead of silently truncating at the first page. - It uses the shared web-tools HTTP client: it honors the corporate proxy (
HTTPS_PROXY) and the global TLS trust (CHATCLI_CA_BUNDLE). - Internal registries (
registry.company.com,localhost:5000) work — only cloud metadata endpoints are blocked (SSRF protection).