Deploy server
Skill alternatefutures/alternate-clouds-skills/skills/deploy-server
Spin up a raw VM the user can SSH into — no app, no Dockerfile, just an OS to log into. Use when the user asks for "a fresh server", "an Ubuntu box", "a VM", "a sandbox to mess around in", "compute for experimentation", "I need a machine", "SSH server", "root access to a server", "a GPU box for training", or needs arbitrary tooling installed on a clean machine. Routes via the user's default cloud (Alternate Clouds) to Akash for CPU or Spheron for GPU.From its SKILL.md
npx -y skills add alternatefutures/alternate-clouds-skills --skill deploy-serverAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
2 things to look at
- no licenseNo license file was found in the repository. Code published without one is not open source by default, so using it at work is a question for whoever answers licensing questions where you are.
- 0 stars0 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.
SKILL.md
4.7 KB, as published. Nobody here has run it
Deploy a raw VM you can SSH into
This is the empty-machine path: no Docker image to push, no template, no app. Pick an OS, pick resources, get a public IP + SSH command.
Under the hood the orchestrator pulls a Docker base image (ubuntu:24.04
etc.) and runs sleep infinity so the container stays up for SSH.
Step 1 — auth check
acc whoami --json
If not authenticated, run the af-setup skill.
Step 2 — pick OS + resources
The CLI's --os flag takes any Docker image; the picker offers four common choices:
| OS | --os value |
|---|---|
| Ubuntu 24.04 (default) | ubuntu:24.04 |
| Ubuntu 22.04 | ubuntu:22.04 |
| Debian 12 | debian:12 |
| Alpine 3.20 | alpine:3.20 |
Anything else: pass a full image ref (e.g. nvidia/cuda:12.2.0-base-ubuntu22.04 for a CUDA-ready box).
Step 3 — deploy
CPU-only Ubuntu box
acc services create \
--kind server \
--name dev-box \
--os ubuntu:24.04 \
--cpu 2 --memory 4Gi --storage 50Gi \
-y
GPU box (e.g. for training / inference experiments)
acc services create \
--kind server \
--name gpu-box \
--os nvidia/cuda:12.2.0-base-ubuntu22.04 \
--gpu --gpu-model h100 --gpu-count 1 \
--region us-east \
-y
The GPU branch routes to Spheron first (GPU-native) and falls back to Akash on NO_CAPACITY. CPU-only servers go directly to Akash.
With budget cap
... --spend stop --stop-days 7 # auto-stop after a week
... --spend budget --budget-monthly 30 # cap monthly spend
Break-glass SSH key (recommended for GPU / long-running boxes)
Add your own SSH public key at deploy time so you keep direct access to the box even if the platform's managed shell/heartbeat channel ever goes down:
acc services create --kind server --name gpu-box \
--os nvidia/cuda:12.2.0-base-ubuntu22.04 --gpu --gpu-model h100 \
--ssh-key-file ~/.ssh/id_ed25519.pub \
-y
# or paste the key inline:
# --ssh-key "ssh-ed25519 AAAA… you@host"
The key is baked into the VM's authorized_keys (root + ubuntu) and replayed
on resume. Spheron (GPU) boxes only — Akash/Phala ignore it. Reachability
depends on the provider allowing inbound :22 from your source IP (residential
generally works; some datacenter ranges are filtered). This is a safety net, not
a replacement for acc ssh <name>.
Step 4 — SSH in
After the deploy polls to ACTIVE, the CLI prints the SSH command directly:
✅ Deployment is live!
Provider: spheron (data-crunch)
GPU: H100
Region: us-east
SSH: ssh [email protected] -p 22
Or:
acc ssh dev-box # CLI-mediated WebSocket shell (works for Akash + Spheron)
acc ssh dev-box --command /bin/sh # specify shell
Persistent storage
The container's filesystem is ephemeral — anything you install in
/root survives reboots within the same lease but not across redeploys.
For persistent data, pass --storage <NGi> (creates a persistent volume
attached at the platform's default mount point), or wire to a separate
storage service.
Common pitfalls
- GPU box stuck at "Starting workload" for 5+ minutes → normal. Spheron VM cold-boot + cloud-init + GPU driver init routinely takes 5–10 min. The poller's 15-minute timeout is sized for this.
ssh: Connection refused→ the SSH daemon takes a few extra seconds after the deploy says ACTIVE. Wait 15s and retry, or useacc ssh <name>which uses the platform's WebSocket shell (no port-22 dependency).- "FUNCTION services are not yet supported on Spheron" → bug in older CLI builds. Update:
npm i -g @alternatefutures/accto ≥ v0.3.0. - No
--osflag with-y→ defaults toubuntu:24.04. Matches the interactive picker's first choice. Service name … already exists→ pick a different--nameoracc services delete <name> -yfirst.
Tear down
acc services close dev-box # stop the deployment but keep the service record (resumable on next deploy)
acc services delete dev-box # remove everything
For Spheron GPU VMs, billing is gated by a 20-minute server-side
minimum-runtime contract — acc services close warns when you're inside
the floor so you know you'll still be billed for the remainder.