Skip to main content

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
                            # (or `login --sandbox`: no account, simulated output for 24 h)
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

Sandbox keys (sk-orb-test-…) work with every endpoint: calls are free, the output is simulated, and responses carry "sandbox": true. client.sandbox tells you which kind is in use.

No account needed to try the API: an anonymous sandbox key lasts 24 hours.

client = OpenRobotics.sandbox()  # a client with a fresh sandbox key
key = openrobotics.sandbox_key()  # or just the key: "sk-orb-test-…"
client = await AsyncOpenRobotics.sandbox()

openrobotics login --sandbox saves one for the CLI (no browser). Minting is limited to 5 keys an hour per IP (RateLimitError). openrobotics login --test creates a sandbox key on your account instead. For real model output, create a key at openrobotics.dev/keys.

CLI

openrobotics login [--test] [--no-browser]   sign in with your browser, save a key
openrobotics login --sandbox                 no account: save an anonymous 24 h sandbox 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.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for openrobotics-sdk 0.2.0
File Size Uploaded Provenance Actions
openrobotics_sdk-0.2.0.tar.gz 27.5 kB Without provenance Details for openrobotics_sdk-0.2.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for openrobotics-sdk 0.2.0
File Interpreter ABI Platform Actions
openrobotics_sdk-0.2.0-py3-none-any.whl Python 3 none any Details for openrobotics_sdk-0.2.0-py3-none-any.whl

Total release size: 53.0 kB

Release files / openrobotics_sdk-0.2.0.tar.gz

Download URL openrobotics_sdk-0.2.0.tar.gz
Size 27.5 kB
Tags Source
SHA-256 checksum
How to use checksums
f03a8a67c65de92fcb454eb3c1baf688c16ad0751f4870e9e18e8b6de20e2050
BLAKE2b-256 checksum
How to use checksums
e17db739c9f22c69f3b89e40712f98ee998ae8b3287ab16334f452c85a8ec620
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.2.0-py3-none-any.whl

Download URL openrobotics_sdk-0.2.0-py3-none-any.whl
Size 25.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
3b23a978b52d0a576f1c65e31971192f326d020df4a2ea5dc5e536646cb09507
BLAKE2b-256 checksum
How to use checksums
719b144b3cc70f5abfa8e224b84e59977a931cef2c78fc8afe6d6b5dd5729dd4
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.2.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.

Release history Release notifications | RSS feed

This release

0.2.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page