Sprites
Read when:
- choosing
provider: sprites; - debugging Sprites token, CLI, SSH proxy, or bootstrap behavior;
- changing Sprites lease creation, status, sync, or cleanup.
provider: sprites creates a Sprites Linux microVM and adapts it into a normal Crabbox SSH lease. Sprites owns the microVM lifecycle and sprite proxy. Crabbox owns local config, slugs, repo claims, SSH keys, rsync sync, command execution, timing summaries, and normalized list/status output.
#Auth
Prefer environment variables or user config. Do not commit Sprites tokens in repo config.
export SPRITES_TOKEN=...
Fallback names are also accepted:
export CRABBOX_SPRITES_TOKEN=...
export SPRITE_TOKEN=...
export SETUP_SPRITE_TOKEN=...
Install and authenticate the Sprites CLI first. Crabbox uses the Sprites API for create/delete and calls the local CLI only for sprite --version, sprite exec, and sprite proxy.
#Config
provider: sprites
target: linux
sprites:
apiUrl: https://api.sprites.dev
workRoot: /home/sprite/crabbox
Equivalent one-off flags:
crabbox warmup --provider sprites
crabbox run --provider sprites --sprites-work-root /home/sprite/crabbox -- pnpm test
crabbox ssh --provider sprites --id <slug>
crabbox status --provider sprites --id <slug>
crabbox stop --provider sprites <slug>
#Behavior
warmupcreates acrabbox-...sprite and local Crabbox claim.- Crabbox bootstraps OpenSSH server, Git, rsync, tar, and python3 inside the
runcreates or reuses a sprite, syncs the current Git manifest over SSH,sshprints a command that usessprite proxy -s %h -W 22as the SSHstatus,list, andstopoperate on Sprites resources that Crabbox canstopdeletes the sprite and removes the local claim after provider cleanup
sprite, writes the per-lease public key to /home/sprite/.ssh/authorized_keys, and starts sshd.
and runs the command through Crabbox's standard SSH executor.
ProxyCommand.
map to local claims or provider labels.
succeeds.
#Boundaries
- Linux only.
- No Crabbox coordinator; Sprites API auth is local/provider-native.
- No VNC, desktop, browser, or code-server.
- Actions hydration can run because Sprites exposes a normal Linux SSH target.
--classand--typeare not used for Sprites.
#Troubleshooting
missing Sprites token: setCRABBOX_SPRITES_TOKEN,SPRITES_TOKEN,missing sprite CLI: install the authenticated Sprites CLI and ensuresprite proxyfailures mean SSH cannot reach the microVM even if API calls- Slow first boot usually means package install inside the sprite is still
- Work roots must be dedicated absolute paths under the sprite user's home, for
SPRITE_TOKEN, or SETUP_SPRITE_TOKEN.
sprite is on PATH.
work. Run crabbox status --provider sprites --id <slug> --wait to retry the idempotent SSH bootstrap.
running. Kept leases reuse the installed OpenSSH/rsync packages.
example /home/sprite/crabbox.
Related docs: