Workbox
  • Who it's for
  • Models
  • How it runs
  • Join an event
  • Docs
Sign inGet started
  • Who it's for
  • Models
  • How it runs
  • Join an event
  • Docs
  • Sign in

Docs

  • Getting started
  • Boxes
  • SSH into a box
  • CLI
  • The job settings
  • Metrics and samples
  • Serve your model
  • Deploy a model
  • The management API
  • Box templates
  • Environments and events
Workbox

The cloud for AI workloads.

Product

  • Who it's for
  • Models
  • How it runs
  • Docs

Events

  • Join an event
  • Run a workshop

© Workbox

CLI

Every workbox command, on a box and on your computer.

The workbox command works in two places. On a box it is already installed and needs no sign-in: it talks to the box itself, so you can see the box, open its tools and run jobs from its terminal. On your own computer you sign in once, then SSH into your boxes (SSH into a box) and manage your deployments, keys and benchmarks.

Every command has its own help: workbox --help, or workbox run --help for one command.

On a box

In a box's terminal, or over SSH, these talk to the box you are on:

CommandDoes
workbox statusThis box: its size and GPU, time left, its tools and their state, its project, what's running and its link
workbox open <tool>Starts a tool (jupyter, vscode, terminal, …) and prints the link to its tab
workbox run <command>Runs a command as a job on this box, in ~/work as it is, and follows its output
workbox jobsThe jobs that ran on this box: number, state and command
workbox logs <number>A job's output so far; -f (--follow) follows it until it ends
workbox stop <number>Stops a job
workbox status                       # this box: size, time left, tools, what's running
workbox open jupyter                 # start Jupyter and print the link to its tab
workbox run python train.py          # a job on this box, in ~/work as it is; its output follows
workbox run --fresh --size large -- python train.py   # on a box of its own, with this box's ~/work
workbox jobs                         # this box's jobs
workbox logs 12 -f                   # follow a job's output
workbox stop 12

workbox run

It reads ~/work/workbox.yaml like a repo's, over the project's defaults; the command and options you give win. Its options go before the command. Put -- between them when the command has options of its own, and quote a command that uses the shell ("python a.py && python b.py").

OptionDoes
--outputs <path>A path in ~/work to keep, such as checkpoints/. Repeat for more
--minutes <n>The most it may run
--env NAME=valueAn environment variable. Repeat for more
-d, --detachStarts it without following its output; follow it later with workbox logs <number> -f
--freshRuns it on a box of its own, with a copy of this box's ~/work; that box ends with the job
--size <size>With --fresh: small, medium, large, xlarge, cpu or an exact GPU such as 1x H100

Ctrl+C stops following; the job runs on. A job of a box is one of its project's jobs, with logs, metrics, outputs and a notification like any other. A box started from a size makes a project named after itself on its first job. A box runs one job at a time; --fresh runs another on a box of its own.

On your computer

Install it and sign in once:

pip install workbox        # or: uv tool install workbox
workbox login --url https://<your Workbox>

login opens your browser to approve the computer (it prints a code to check, and the link if the browser doesn't open). It also makes an SSH key for Workbox and adds Host *.workbox to ~/.ssh/config, so ssh <box>.workbox, scp, rsync, VS Code and Cursor reach your boxes. After the first time, workbox login alone signs in again to the same Workbox.

It works in the workspace you last used in Workbox; set WORKBOX_WORKSPACE to a workspace's slug for another.

Signing in and boxes

CommandDoes
workbox login --url <address>Approves this computer in the browser and sets up SSH. WORKBOX_URL works in place of --url
workbox logoutSigns this computer out
workbox boxesYour running boxes: name, state and size
workbox ssh <box> [ssh options]SSHes into a box by its name; anything after the name goes to ssh, such as a command to run
workbox boxes
workbox ssh tinystories              # or: ssh tinystories.workbox
workbox ssh tinystories nvidia-smi   # run one command and come back

Deployments

CommandDoes
workbox modelsThe workspace's models: name, size, where each came from
workbox models add <repo>Adds a model from Hugging Face (org/name), pinned to the newest commit on main or --revision
workbox deploy <model>Deploys a model for your apps. --name (the API's model; the model's if not given), --size, --min and --max replicas (--min 0 scales to none when quiet)
workbox deploymentsThe workspace's deployments, with their address and replicas
workbox deployment <name>Shows one
workbox deployment <name> --rollout <model>Rolls a model out to it, with no downtime
workbox deployment <name> --min 1 --max 4Changes its replicas; --size changes its GPU
workbox deployment <name> --pause, --resumePauses or resumes it
workbox deployment <name> --deleteDeletes it
workbox deploy tiny-shakespeare-12 --name shakespeare --size medium --min 0 --max 3
workbox deployment shakespeare --rollout tiny-shakespeare-13

API keys

Owners and admins of the workspace make and revoke its keys (Deploy a model).

CommandDoes
workbox keysThe workspace's keys: id, start, name, whether it may manage, when last used
workbox keys create "<name>"Makes a key that calls the workspace's models, and prints it once. --manage lets it manage deployments too
workbox keys revoke <id>Revokes a key, by the id workbox keys shows

Benchmarks

CommandDoes
workbox bench <model>Measures a model in its playground, waking it first if it sleeps
workbox bench --deployment <name>Measures a deployment

It prints, at 1, 4 and 16 requests at once: requests a second, tokens a second, time to first token (p50 and p95), tokens a second for each request, and errors.

Next: The job settings

Sign inGet started