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.1.tar.gz (206.0 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.1-py3-none-any.whl (212.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: reflex_sdk-0.7.1.tar.gz
  • Upload date:
  • Size: 206.0 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.1.tar.gz
Algorithm Hash digest
SHA256 9cd6bb8d6375005d2140dfd142e47a804b8735faf94bc9224d2cc54d9421a54c
MD5 3a417add07935cdbda3b735685665bea
BLAKE2b-256 70cbb4589ece1b107625d004d0370bc3dc37b821181a267f4b78ab4439dcb563

See more details on using hashes here.

File details

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

File metadata

  • Download URL: reflex_sdk-0.7.1-py3-none-any.whl
  • Upload date:
  • Size: 212.9 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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 526582a8ab091e2091cfa16afe7fd04000613a174278e2d6654f424785411def
MD5 5751730b8a6d11f283a4a6ec7722ef46
BLAKE2b-256 749d2ca85992024260a0a6a2141c5377e8fe093f92c08baaff767e6dbd4da996

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