Skip to main content

Python SDK for Reflex hosted robot inference and training

Project description

Reflex Python SDK

Public Python package for hosted Reflex training, datasets, managed instances, and action inference.

python -m pip install reflex-sdk

The package installs the reflex Python module and a reflex CLI command in the active Python environment. If your Python installer puts console scripts in a directory that is not on PATH, use the module entry point instead:

python3 -m reflex --help
import reflex

This package is intentionally separate from inference/, which owns model serving and Prime worker runtime code.

Running a robot session (reflex connect)

reflex connect runs a closed-loop robot session (observe → infer → apply), fully described by a YAML config:

reflex login                       # or: export REFLEX_API_KEY=rfx_...
reflex connect --config robot.yaml

The config's target: block selects where inference runs (kind:):

kind Where inference runs Notes
webrtc Hosted Reflex cloud (default) Convex authorizes the session and routes it to a worker. A MolmoAct2 model (molmoact2-bimanualyam) is already hosted and online, so you can connect to cloud inference without deploying anything — just log in.
edge Your own HTTP server on the LAN Point url at a self-hosted inference server (e.g. a Jetson). No cloud/auth.
target:
  kind: webrtc          # hosted cloud inference (molmoact2-bimanualyam, already online)
  timeout_s: 60
  state_field: state
  instruction_field: prompt
  img_size: 256
hardware:
  kind: yam_bimanual
  config: { instruction: "fold the towel" }

Choosing the cloud provider — RunPod serverless

Hosted sessions (kind: webrtc) default to Modal. To request routing to a RunPod serverless node instead, add a runtime hint:

target:
  kind: webrtc
  runtime: runpod-serverless   # route this hosted session to RunPod (QUIC)

The RunPod account key stays server-side (same trust model as Modal) — you only need your Reflex API key. Convex routes to RunPod when a RunPod node is registered and available, otherwise the session uses the default backend. You can also set it via the environment: REFLEX_RUNTIME=runpod-serverless.

See examples/ for full configs (yam_bimanual_molmoact2_MODAL.yaml, etc.). To exercise reflex connect end to end without a robot (fake hardware + synthetic cameras, against the offline/Modal/RunPod backends), see sim/.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

reflex_sdk-0.7.0.tar.gz (192.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

reflex_sdk-0.7.0-py3-none-any.whl (193.4 kB view details)

Uploaded Python 3

File details

Details for the file reflex_sdk-0.7.0.tar.gz.

File metadata

  • Download URL: reflex_sdk-0.7.0.tar.gz
  • Upload date:
  • Size: 192.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for reflex_sdk-0.7.0.tar.gz
Algorithm Hash digest
SHA256 79e9e45aaa9116cdab4b3039ad694e874e22b233c7c439e247d3019104dc48aa
MD5 1480cb2609188159fd4b7eb0f5102c1c
BLAKE2b-256 207f01de5d0fa97ee31f0d58ef6eef1ea94528b6ba9f922ac87e78309b40fc15

See more details on using hashes here.

File details

Details for the file reflex_sdk-0.7.0-py3-none-any.whl.

File metadata

  • Download URL: reflex_sdk-0.7.0-py3-none-any.whl
  • Upload date:
  • Size: 193.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for reflex_sdk-0.7.0-py3-none-any.whl
Algorithm Hash digest
SHA256 a5b73e15f89f8f0c4d25c56f06c5260a5413092644a38f3797cd2cc5266b3d5c
MD5 38ae0187e1132c563fb2716ecb2ca413
BLAKE2b-256 e57ddbd3d14c1afc844ef3ad99d3b9f9f5f3532d8e55a5046a83e9a1590a497b

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page