Skip to content

Quickstart

By the end of this tutorial you will have the rb CLI installed, a signed-in session, a GPU blade of your own, and a command running on it. It takes about ten minutes, and the €10 of credit that comes with a new account is enough to finish it.

You need Python 3.11 or newer and an SSH client. On Windows, use WSL.

The CLI is published to PyPI as rb-cli and is best installed with pipx, which puts it in its own environment and on your PATH.

Terminal window
# macOS
brew install pipx
pipx install rb-cli
Terminal window
# Linux, or inside WSL on Windows
pip install pipx
pipx install rb-cli

Check it works, and turn on tab completion for your shell:

Terminal window
rb --version
rb --install-completion
Terminal window
export RB_API_URL=https://api.razorbridge.eu/v1

Confirm the CLI can reach the API:

Terminal window
rb doctor

It reports the CLI version, the API address, where your credentials will be stored, whether you are signed in, and whether the API answered.

Terminal window
rb auth login

The CLI prints a URL and an eight-character code, and tries to open your browser. Sign in to razorBridge, type the code into the Authorize razorBridge CLI page, and submit it. The terminal picks up the approval within a few seconds.

The code is valid for 15 minutes and the CLI waits up to 5 minutes for you. If either runs out, just run rb auth login again.

Your access token is written to ~/.config/rb/token with 0600 permissions. It lasts an hour and the CLI refreshes it silently for up to 30 days.

Check who you are and what you have:

Terminal window
rb auth status

There are two ways to get a blade. Pick whichever applies to you.

If you are on your own: start a self-serve session

Section titled “If you are on your own: start a self-serve session”

Self-serve sessions are started from the web app, not the CLI.

  1. Sign in at razorbridge.eu and open the Hub.
  2. Go to GPU Sessions and choose New session.
  3. Pick a GPU type (the dropdown shows VRAM and the current hourly rate) and a Duration — 1, 2, 4 or 8 hours.
  4. Choose Start session.

The session appears in the table and moves from Pending to Provisioning to Running, usually within a few minutes. It stops itself when the duration is up, and you are billed for the time it actually ran.

If you were given a join code: join the event

Section titled “If you were given a join code: join the event”
Terminal window
rb event join ABCD-1234

Join codes are four letters, a hyphen and four digits, and are not case-sensitive. Your blade is created shortly before the event’s start time — not at the moment you join — and the organizer’s credits pay for it. rb event info ABCD-1234 shows the start time and, once it exists, your blade.

Terminal window
rb blade list
rb blade status

rb blade status with no arguments reports on your most recent running blade: GPU type, status, IP address, region, and how long is left. Wait until the status is running before trying to connect.

Terminal window
rb blade ssh

This opens an interactive shell on the blade. Authentication is by password: if sshpass is installed the CLI supplies it for you, otherwise it prints the password for you to paste once.

Terminal window
nvidia-smi

To run one command without opening a shell — handy for kicking off training — use rb run, which streams the output back and exits with the command’s exit code:

Terminal window
rb run nvidia-smi
rb run "python train.py --epochs 10"
Terminal window
# upload into your home directory on the blade
rb blade scp ./train.py
# download one result file
rb blade scp blade:~/results/metrics.json ./

Anything with a : that does not start with / is treated as a remote path, so blade:~/results/metrics.json reads from the blade and a bare local path writes to it. rb blade scp copies single files. For a whole directory, add the SSH config block from step 6 and use scp -r or — better for large or interrupted transfers — rsync:

Terminal window
rsync -avP rb-abc12345:~/outputs/ ./outputs/
Terminal window
rb credits
rb status

rb credits shows your balance and recent ledger entries; rb status is a one-screen overview of blades, upcoming events and balance.

A self-serve session keeps costing credits until it stops, so stop it as soon as you are done: Stop on the session row in the web app. Event blades are torn down for you shortly after the event ends.