soon.sh

OCI / Docker container registry on Cloudflare Workers + R2. Every user gets a namespace named after their GitHub login.

1. Log in

Install the soon CLI (Linux/macOS, x64/arm64; checksum-verified) and sign in with GitHub:

curl -fsSL https://soon.sh/install | sh
soon login          # approve a code on github.com
soon login --gh     # or reuse the GitHub CLI's login, no browser

That stores a personal access token (soon_pat_…) in ~/.config/soon (mode 0600) and points Docker at docker-credential-soon, so the token is not written to ~/.docker/config.json. Tokens only cover your namespace soon.sh/<you>/*, can be read-only, and expire. Agents: everything, including plain-HTTP login, is in /llms.txt.

/api/auth/github needs a token for a GitHub user. GitHub App installation tokens (ghs_...), such as CI bot or agent tokens, are not tied to a user and are rejected. For automation, start device login with POST /login/device (or run soon login) and have a human approve the code, then mint narrowly scoped agent tokens with POST /api/tokens.

Without the CLI, get a token over HTTP and log Docker in with it:

curl -s -X POST https://soon.sh/api/auth/github -H 'content-type: application/json' \
  -d "{\"github_token\": \"$(gh auth token)\", \"name\": \"laptop\"}"
echo "$SOON_TOKEN" | docker login soon.sh -u "$SOON_USER" --password-stdin

Docker trades the token at /token for a 5-minute credential that covers only the repository it is working on, so the long-lived token is sent once per operation, never with every layer.

2. Push an image

docker tag my-app:latest soon.sh/$SOON_USER/my-app:latest
docker push soon.sh/$SOON_USER/my-app:latest

Repository names can be nested, e.g. soon.sh/$SOON_USER/team/service:1.2.0. Pushes outside your namespace are refused.

3. Pull an image

docker pull soon.sh/$SOON_USER/my-app:latest

Large layers (> 100 MB)

Workers cap request bodies at 100 MB, so plain docker push fails on bigger layers.

soon push uploads every layer in chunks, so any size works:

soon push soon.sh/$SOON_USER/my-big-image:latest                         # an image tagged with that name
soon push soon.sh/$SOON_USER/my-big-image:latest --from my-big-image:dev  # or any local image

Long-lived pull credentials

For third-party pullers such as Daytona, Kubernetes imagePullSecrets, or CI, mint a pull-only token scoped to one repository:

curl -sS -X POST https://soon.sh/api/tokens \
  -H "authorization: Bearer $SOON_TOKEN" -H "content-type: application/json" \
  -d '{"name":"daytona-pull","scopes":[{"pattern":"<login>/<repo>","actions":["pull"]}],"expires_in_days":366}'

Tokens expire (90 days by default, 366 maximum), and a token cannot mint one that outlives itself. To rotate, sign in with a fresh login token, mint a replacement, update the consumer's stored password, then revoke the old token with DELETE /api/tokens/:id.

For Daytona, register the credentials and use the registry image in a snapshot:

POST https://app.daytona.io/api/docker-registry
{"name":"soon","url":"https://soon.sh","username":"<github-login>","password":"$SOON_TOKEN"}

imageName: soon.sh/<login>/<repo>:<tag>

Other clients

ToolUsage
Podmanpodman login soon.sh, then podman push/pull soon.sh/name:tag
cranecrane auth login soon.sh -u "$SOON_USER" -p "$SOON_TOKEN", crane ls soon.sh/$SOON_USER/my-app
Kuberneteskubectl create secret docker-registry soon-registry --docker-server=soon.sh --docker-username="$SOON_USER" --docker-password="$SOON_TOKEN", then reference it in imagePullSecrets
GitHub Actionsdocker/login-action with registry: soon.sh

API

Standard Docker Registry HTTP API v2 under /v2/. _catalog lists only your repositories.

curl -u "$SOON_USER:$SOON_TOKEN" https://soon.sh/v2/_catalog
curl -u "$SOON_USER:$SOON_TOKEN" https://soon.sh/v2/$SOON_USER/my-app/tags/list