openrobotics
Python client and CLI for the OpenRobotics API: robot policies (VLAs), world models, perception and vision encoders behind one key.
pip install openrobotics-sdk # or: uv add openrobotics-sdk
pip install "openrobotics-sdk[images]" # also pass PIL images and numpy arrays
Python 3.9+. The only dependency is httpx.
Quickstart
openrobotics login # opens your browser, saves a key to ~/.config/openrobotics/credentials.json
openrobotics models --endpoint act --live
from openrobotics import OpenRobotics
client = OpenRobotics() # $OPENROBOTICS_API_KEY, else the key saved by `openrobotics login`
out = client.act(
"physical-intelligence/pi0",
instruction="put the black bowl on the plate",
observation={"image": "agentview.jpg", "state": [0.1, 0.2, 0.3, 0, 0, 0, 0.04]},
)
print(out["actions"][0], out["usage"])
Every endpoint is a method taking the model id first, then the fields from the API reference; extra fields go through as keyword arguments:
| Method | Endpoint |
|---|---|
act(model, instruction, observation) |
robot actions from a VLA |
embed(model, image) / embed(model, frames=[…]) |
vision-encoder embedding |
depth(model, image) |
depth map (stereo: right_image=, intrinsics=, baseline=) |
segment(model, image, points=/boxes=/text=) |
masks |
detect(model, image, labels) |
open-vocabulary boxes |
track(model, frames, points) |
point tracks |
pose(model, image, object=…) |
6D object poses |
grasp(model, points) |
grasps from a point cloud |
hands(model, image) |
hand keypoints |
reconstruct(model, images) |
cameras + point cloud |
reason(model, prompt, image) |
embodied reasoning |
reward(model, instruction, frames) |
per-frame progress |
predict(model, prompt, image=…, wait=True) |
world-model job (video or latents) |
Plus client.key(), client.models.list(endpoint="act", status="live"), client.models.get(id),
client.jobs.get(id), client.jobs.wait(id, poll=2) and client.jobs.download(id, "video.mp4", path).
Images
Anywhere the API wants a base64 JPEG/PNG (image, frames, images, observation.images, depth, …)
you can pass a file path, bytes, a PIL Image, a numpy array (uint8, float 0–1, or uint16 for depth
PNGs) or a base64 string. openrobotics.to_base64(x) does the conversion on its own.
World-model jobs
job = client.predict("nvidia/cosmos-predict-2.5", prompt="the robot opens the drawer", image="first.jpg")
job = client.jobs.wait(job, on_progress=lambda j: print(j["status"], j["progress"]))
client.jobs.download(job, "video.mp4", "out/video.mp4")
Cold starts, retries and errors
GPUs boot on demand: the first call to an idle model gets 503 model_warming with Retry-After for a
few minutes. The client waits and retries on its own (up to max_warm_wait, 15 minutes by default),
logging to the openrobotics logger and calling on_retry if you pass one. 429 and 5xx responses
and connection errors are retried max_retries times (default 2) with backoff.
from openrobotics import OpenRobotics, InsufficientCreditsError, ModelWarmingError
client = OpenRobotics(timeout=60, max_retries=3, max_warm_wait=300, on_retry=lambda e: print(f"{e.reason}: retrying in {e.wait:.0f}s"))
try:
client.depth("bytedance/depth-anything-v2", "kitchen.jpg")
except InsufficientCreditsError:
print("Add credits at https://www.openrobotics.dev/billing")
except ModelWarmingError:
print("Still warming up; try again in a minute")
Errors map from the API's error.type: AuthenticationError (401), InsufficientCreditsError (402),
PermissionDeniedError (403), NotFoundError (404), InvalidRequestError (400), RateLimitError
(429), ModelWarmingError / ServerError (5xx), all subclasses of APIError with .status, .type,
.message and .docs_url. APIConnectionError and APITimeoutError mean no response arrived.
Async
import asyncio
from openrobotics import AsyncOpenRobotics
async def main():
async with AsyncOpenRobotics() as client:
out = await client.embed("google/siglip2-so400m", "frame.jpg")
print(out["dim"])
asyncio.run(main())
Sandbox keys
openrobotics login --test creates a sandbox key (sk-orb-test-…): calls are free, the output is
simulated, and responses carry "sandbox": true. client.sandbox tells you which kind is in use.
CLI
openrobotics login [--test] [--no-browser] sign in with your browser, save a key
openrobotics logout forget the saved key
openrobotics whoami the key in use (GET /v1/key)
openrobotics models [--endpoint act] [--live] [--type …] [--provider …] [-q …] [--json]
openrobotics call <endpoint> --model <id> --json body.json (or --json - for stdin, or inline JSON)
openrobotics call predict --model <id> --json body.json --wait
Image fields in a call body may be file paths (relative to the current directory).
Configuration
| Setting | Argument | Environment | Default |
|---|---|---|---|
| API key | api_key= / --api-key |
OPENROBOTICS_API_KEY |
saved login |
| API URL | base_url= / --base-url |
OPENROBOTICS_BASE_URL |
https://api.openrobotics.dev/v1 |
| Login site | --web-url |
OPENROBOTICS_WEB_URL |
https://www.openrobotics.dev |
The saved login lives in $XDG_CONFIG_HOME/openrobotics/credentials.json (default ~/.config/…),
readable only by you (0600).
Metadata
Release files for openrobotics-sdk 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| openrobotics_sdk-0.1.0.tar.gz | 24.9 kB | Without provenance | Details for openrobotics_sdk-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| openrobotics_sdk-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for openrobotics_sdk-0.1.0-py3-none-any.whl |
Total release size: 48.4 kB
Release files / openrobotics_sdk-0.1.0.tar.gz
| Download URL | openrobotics_sdk-0.1.0.tar.gz |
|---|---|
| Size | 24.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e00239e0efd1ee50499a96834ac4117edddacaa50caba41ef5ed03915fe97088
|
|
BLAKE2b-256 checksum How to use checksums |
a7a6c5f8cd53726e6d34daaf2ceb63b6474ec3600923ed9762c811adef699643
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.13.9 {"installer":{"name":"uv","version":"0.13.9","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|
Release files / openrobotics_sdk-0.1.0-py3-none-any.whl
| Download URL | openrobotics_sdk-0.1.0-py3-none-any.whl |
|---|---|
| Size | 23.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
cc4889eb52788676b2e9785003f92d744cfe35e216c58f60f18a67389ea319fd
|
|
BLAKE2b-256 checksum How to use checksums |
6ad6e93070f6aa70ebd90c1fba5d3b5c45cde00703009889a1f925f736a7d339
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.13.9 {"installer":{"name":"uv","version":"0.13.9","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|
Security for openrobotics-sdk 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.