The Rigbox CLI
Therig CLI (alias for rigbox) gives you full control over your Rigbox workspaces, apps, and AI credits from the terminal. It is pre-installed in every workspace VM, and you can also install it on your local machine.
Installation
Inside a workspace
The CLI is already installed in every Rigbox workspace. Open a terminal and run:On your local machine
Download the latest release for your platform:Authentication
Before using the CLI outside a workspace, you need to log in:Your CLI configuration is stored in
~/.rigbox/config.json. This includes your auth token and default settings.Workspace Management
Workspaces are isolated Firecracker micro-VMs where your code runs. The CLI provides full lifecycle management.List workspaces
Create a workspace
base (minimal) and dev (includes development tools, sidecar, and more).
Create and start in one command
Start and stop
Check status
Stream logs
Ctrl+C to stop.
Delete a workspace
App Management
Apps are services running inside your workspace that are exposed to the internet via a unique subdomain ({name}.rigbox.dev).
List apps
Create an app
Start, stop, and restart
Stream app logs
Delete an app
Templates and Catalog
Browse templates
Templates are pre-configured workspace setups for common use cases:Browse installable apps
The catalog lists applications you can install into a running workspace:Install from catalog
Tools
Tools are interactive applications that run alongside your workspace.List available tools
Launch a tool
SSH Key Management
Manage the SSH keys registered to your account directly from the CLI.Add a key
~/.ssh/id_ed25519.pub) and registers it with your account.
List keys
Remove a key
AI Proxy
The managed AI proxy lets you use AI APIs (OpenAI, Anthropic, Google, etc.) through Rigbox’s credit system, without managing your own API keys.Activate the proxy
From inside a workspace VM:Quick setup with eval
Deactivate the proxy
The AI proxy is only available from inside a workspace VM. It routes requests through an internal proxy service that handles credit tracking and key injection.
Check credit balance
You can check your AI credit balance via the API:Inside vs. Outside Workspaces
The CLI works the same way in both contexts, with one difference in how authentication is handled:| Context | Auth method | Notes |
|---|---|---|
| Inside a workspace | Automatic (local credentials) | No rig login needed |
| On your local machine | OAuth token via rig login | Token stored in ~/.rigbox/config.json |
API Reference
The CLI wraps the Rigbox REST API. For programmatic access, see:- Workspaces API — Create, manage, and monitor workspaces
- Apps API — Manage app routes and services
- SSH Keys API — Register and manage SSH keys
- Templates API — Browse available templates
- AI & Credits API — Credits, usage, and AI configuration