Skip to content

Quickstart

You need an invited rsibox account, a project with compute enabled, and team credits. This walkthrough uses a CPU box.

Requires Python 3.14 or newer on Linux x86-64, Linux ARM64, or macOS ARM64:

python -m venv .venv
source .venv/bin/activate
python -m pip install --upgrade rsibox
rsi version

The rsibox package installs both the CLI (rsi, also available as rsibox) and the Python SDK.

rsi login

Open the printed URL, sign in, and approve the displayed code.

For CI or scripts, set RSIBOX_API_KEY from your secret store. When it is set, rsi login verifies the key instead of starting browser login; unset it to sign in via browser again. See Authentication.

rsi project list
rsi project use default

Replace default with any slug from rsi project list. Project-scoped API keys can only access their assigned project. See Project selection.

Generate an idempotency key so you can safely retry an interrupted create without starting a duplicate box:

create_key=$(python -c 'import uuid; print(uuid.uuid4().hex)')
box=$(rsi box create \
--name first-run \
--cores 2 --memory-mb 4096 --disk-mb 20480 \
--network none --life 10m \
--idempotency-key "$create_key")

The CLI waits until the box is running and prints its ID. If waiting times out, rerun the same command with the same $create_key and project—never regenerate the key on retry, and always generate a new key for a new box.

life starts counting once the box first reaches running (queueing and startup do not count). Creation is rejected if the requested duration exceeds your team’s limit or what your credits can pay for; the error tells you how much time is allowed.

rsi box exec --timeout 60 "$box" -- uname -s
rsi box get "$box"
rsi box ls

exec waits for the command to finish, prints stdout and stderr, and returns its exit code. Commands are passed as argument vectors; invoke a shell explicitly for pipes or redirection (for example, -- sh -c 'echo hello > /tmp/result.txt').

rsi box stop "$box"

Always stop boxes when finished, even if your job fails. Stopping releases resources and discards the disk, so download any needed files first. The stop request may return before shutdown completes; billing stops when resources are released.