Quickstart
Install the CLI, sign in, start a sandbox, run a command, move files, serve a port and delete it.
Install the CLI
With Bun:
bun add -g kyoraOr with npm:
npm i -g kyoraSign in
kyora loginThis opens your browser. The token it gets is kept in ~/.config/kyora/credentials.json, readable only by you. kyora whoami shows which account the CLI acts as.
Start a sandbox
kyora vms create demo --size s --ttl 1h --network registriesdemo is its name: every command below takes a name, an id or a unique id prefix. --size s is 2 vCPU and 4 GB of memory. --ttl 1h destroys it after an hour whatever happens; without activity it is destroyed sooner, after its idle timeout (20 minutes by default, --idle changes it). --network registries lets it reach package registries (npm, PyPI, crates.io, GitHub and the like) and nothing else. The default is none: no network at all.
A fresh sandbox is running in about 1 second (measured from the API to a running sandbox).
Run a command
kyora vms exec demo -- uname -aThe output streams back, and the CLI exits with the command's exit code. Commands run in /work unless you pass --cwd.
Move files in and out
mkdir -p app && echo "hello kyora" > app/hello.txt
cd app && kyora vms push demo . && cd ..
kyora vms exec demo -- cat hello.txt
kyora vms pull demo hello.txt --to out
cat out/hello.txtpush from inside a directory copies its files into /work; new and changed files overwrite. pull downloads paths under /work and unpacks them here, laid out as in the sandbox.
Serve a port
kyora vms exec demo -- sh -c 'setsid -f python3 -m http.server 8080 > /tmp/http.log 2>&1'
kyora vms expose demo 8080expose prints a private HTTPS URL: only you, signed in to kyora, can open it. To serve the public, see Public URLs and webhooks.
Snapshot and restore
kyora vms snapshot demo
kyora vms restore snap_... --name demo2snapshot saves the sandbox's files and prints the snapshot's id (snap_...). Pass that id to restore, which starts a new sandbox from it and waits until it runs. Measured: about 8 seconds from a 345 MB snapshot. A memory snapshot (snapshot --full) also keeps running processes, and resumes in about 2 seconds (1.75 to 1.94 seconds to running, measured). Memory snapshots are enabled per account on request for now.
Delete
kyora vms rm demo demo2Next
- Public URLs and webhooks
- A listener and its workers
- SDKs: the same from TypeScript or Python