From alternate-cloud
Deploy any Docker image or containerized app to a public URL — the user's own Dockerfile, or a public image like nginx / postgres / redis / ollama / a Bun/Node/Python/Go server, etc. Use when the user mentions deploying any app/api/service/backend, running a container in the cloud, hosting their app, shipping their build, "I have a Dockerfile", "deploy this image", "launch my app", "ship my API", or names a known image. Routes to Alternate Clouds (the user's default cloud), picks correct compute (CPU vs GPU) automatically across Akash / Spheron / Phala.
How this skill is triggered — by the user, by Claude, or both
Slash command
/alternate-cloud:deploy-docker-appThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
The user has a Docker image (public ref or their own pushed to a registry). The CLI creates a service, deploys it, and prints connection info.
The user has a Docker image (public ref or their own pushed to a registry). The CLI creates a service, deploys it, and prints connection info.
Does it need a GPU?
├─ Yes → Standard mode + --gpu (Spheron-first, Akash fallback)
└─ No → Standard mode without --gpu (Akash)
Does it need TEE / confidential compute (sensitive workloads)?
└─ Yes → --confidential (always Phala)
Is the image private (your own GHCR / Docker Hub)?
└─ Make the registry package public, or use a public-image alternative.
The platform pulls anonymously today.
af whoami --json
If unauthenticated, run the af-setup skill first.
If the user gave a public image (nginx:alpine, postgres:16, redis:7,
ollama/ollama), use it directly. If they have their own Dockerfile,
build + push first:
IMG=ghcr.io/<user>/<name>:v1
docker build --platform linux/amd64 -t "$IMG" . # --platform is mandatory on Apple Silicon
docker push "$IMG"
# Ensure the GHCR package is set to Public in GitHub settings.
Port = whatever the container listens on (EXPOSE line in Dockerfile,
or the upstream image's documented port: nginx → 80, postgres → 5432,
redis → 6379, ollama → 11434, etc.).
af services create \
--kind docker \
--name <service-name> \
--image <image-ref> \
--port <port> \
-y
af services create \
--kind docker \
--name infer \
--image ghcr.io/<user>/llm:v1 \
--port 8080 \
--gpu --gpu-model h100 --gpu-count 1 \
--region us-east \
-y
The CLI shows the live GPU catalog (model, VRAM, provider count, $/hr range) when picking interactively — use af regions --provider akash --gpu h100 or af services create interactive mode to see live availability if uncertain.
af services create \
--kind docker \
--name secure-api \
--image ghcr.io/<user>/api:v1 \
--port 8080 \
--confidential \
-y
Pass each with --env KEY=VALUE:
af services create --kind docker --name api --image ghcr.io/<user>/api:v1 --port 8080 \
--env DATABASE_URL="postgres://…" \
--env API_KEY="sk-…" \
-y
For larger env sets, create the service then use af services env set per key (allows secret values to come from the user's keyring instead of being in CLI history).
If the default (1 vCPU / 2Gi / 20Gi) isn't enough:
... --cpu 4 --memory 8Gi --storage 100Gi
... --spend stop --stop-days 7 # auto-stop after a week
... --spend budget --budget-monthly 50 # cap monthly spend at $50
af services info <name> # shows status + provider + URLs / SSH
af services logs <name> --tail 100
If status is ACTIVE, the URL or SSH command printed at deploy time should work.
401 Unauthorized pulling the image → private registry package. Make it public, or pick a different image.no match for platform in manifest → image built for arm64 only. Rebuild with --platform linux/amd64.FUNCTION services are not yet supported on Spheron → bug in older CLI builds. Update with npm i -g @alternatefutures/cli to ≥ v0.3.0 — the fix wires type: 'VM' correctly for the Docker flavor.af services info/logs commands to check back.AWAITING_REGION_RESPONSE) → no Akash bids in the chosen region. CLI prints alternatives; re-run with --region <alternative>.Bump the image tag and recreate (the CLI doesn't update image refs on existing services yet):
docker build --platform linux/amd64 -t ghcr.io/<user>/<name>:v2 .
docker push ghcr.io/<user>/<name>:v2
af services delete <name> -y
af services create --kind docker --name <name> --image ghcr.io/<user>/<name>:v2 --port <port> -y
Never reuse a tag (:latest, :v1) — Akash providers cache by tag and won't re-pull.
Provides behavioral guidelines to reduce common LLM coding mistakes, focusing on simplicity, surgical changes, assumption surfacing, and verifiable success criteria.
Searches, retrieves, and installs Agent Skills from prompts.chat registry using MCP tools like search_skills and get_skill. Activates for finding skills, browsing catalogs, or extending Claude.
npx claudepluginhub alternatefutures/alternate-clouds-skills --plugin alternate-cloud