Authentication
Authenticate the CLI and Python SDK with either an interactive browser login or an API key. For team roles, invitations, and project selection, see Teams and projects.
Browser login
Section titled “Browser login”rsi loginrsi project listrsi project use trainingrsi login prints a URL and a short code. Open the URL, sign in, and approve the code.
If RSIBOX_API_KEY is set, rsi login verifies that key instead of starting a browser flow. Run unset RSIBOX_API_KEY first to sign in interactively.
The CLI remembers your selected project per user, team, and gateway. Signing in again as the same account preserves that selection; switching accounts does not inherit it. If a saved project is no longer accessible, rsi login clears it and prompts you to pick another.
Session validity is enforced and extended by the gateway on use. If a request returns 401, run rsi login again.
API keys
Section titled “API keys”Create API keys for scripts and CI on the console’s API keys page. Each key starts with rsi_ and is shown once. Inject it from your secret store or environment:
export RSIBOX_API_KEY='rsi_REPLACE_WITH_YOUR_KEY'export RSIBOX_PROJECT=trainingrsi loginrsi box lsRSIBOX_API_KEY takes precedence over a saved browser session.
- Scope: Keys act for their team and can be restricted to a single project. A key’s project scope cannot be widened after creation—create a replacement key instead.
- Permissions: An API key can stop only its creator’s Boxes, even if the creator is a team admin or owner. API keys cannot create other keys or manage team invitations.
- Lifecycle: Keys can expire and stop working immediately if their creator leaves the team. Create and revoke keys in the console.
- Attribution: After creation, the console shows only a short prefix. On a Box’s detail page, the API key field (
created_within the API) records the key name and prefix used to create it. - Saved project: A saved
rsi project useselection belongs to that specific key. After rotating a key, setRSIBOX_PROJECTor runrsi project useagain.
Logout and revocation
Section titled “Logout and revocation”rsi logoutrsi logout revokes the saved browser session on the gateway and removes its local copy. If revocation cannot be confirmed, the local copy is still deleted and the command fails with a warning that the remote session may still be active. Already expired or revoked sessions count as signed out.
rsi logout does not revoke API keys or unset RSIBOX_API_KEY. Revoke unused keys in the console and remove them from your environment or secret store.
Removal and suspension
Section titled “Removal and suspension”- Member removed: Team membership is checked on every request. Removed members lose access immediately—existing browser and CLI sessions return
403 forbidden, and API keys they created return401 unauthorized. Signing in again does not restore membership; ask a team admin or owner for a new invitation. - Team suspended: Suspended teams cannot use team APIs or manage invitations. Existing sessions and keys return
403 organization_suspended.
Direct HTTP clients
Section titled “Direct HTTP clients”Send Authorization: Bearer TOKEN on both account and compute requests:
- Account APIs:
https://rsibox.ai/v1 - Compute APIs (execution and files):
https://rsibox.ai/compute/v1withX-Breadboard-Projectset to the project slug
The CLI and Python SDK set these headers automatically. See Compute API.
To connect to a self-hosted Rsibox gateway, set RSIBOX_API_URL to the gateway’s HTTPS origin.