microagent registry
Last updated: 2026-06-25
microagent registry login <registry> -u <user> [--password-stdin] Store registry credentialsmicroagent registry logout <registry> Remove stored credentialsmicroagent registry list List registries with stored credentialsmicroagent pulls and pushes OCI images by talking to registries directly — it
does not depend on Docker, Docker Desktop, or any docker-credential-*
helper. Public images always pull anonymously. For private registries,
credentials are resolved from static credential files only; credential helpers
are never executed.
Credential sources
Section titled “Credential sources”Resolved in order, first match wins — all Docker-free:
$REGISTRY_AUTH_FILE— the vendor-neutral file convention shared with Podman, Skopeo, and Buildah ({"auths":{...}}JSON).~/.microagent/auth.json— microagent’s own credential file, written bymicroagent registry login(mode0600).- anonymous — no credentials (public images).
Docker’s ~/.docker/config.json is never read, and credential helpers
(credsStore/credHelpers) are never executed — microagent has no dependency
on Docker or Docker Desktop.
Examples
Section titled “Examples”Log in to GitHub Container Registry with a token piped on stdin (the password is never passed as an argument, so it cannot leak into the process table or shell history):
echo "$GHCR_TOKEN" | microagent registry login ghcr.io -u USERNAME --password-stdinLog in interactively (the prompt reads the password without echo):
microagent registry login registry.example.com -u aliceList and remove stored credentials:
microagent registry listmicroagent registry logout ghcr.ioUse a shared auth file instead of microagent’s own store:
export REGISTRY_AUTH_FILE=~/auth.jsonmicroagent run registry.example.com/team/app| Flag | Command | Description |
|---|---|---|
-u, --username | login | Registry username (required). |
--password-stdin | login | Read the password from stdin instead of prompting. |
microagent registry loginstoresbase64(username:password)— the standard encoding, the same one Docker/OCI config files use. This is encoding, not encryption; the file is written0600. microagent is otherwise a secret conduit, not a store (see secret).- microagent never writes Docker’s
~/.docker/config.json.