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.2.tar.gz (195.6 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.2-py3-none-any.whl (197.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: reflex_sdk-0.7.2.tar.gz
  • Upload date:
  • Size: 195.6 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.2.tar.gz
Algorithm Hash digest
SHA256 39be24fdf105bc212c249a4a237bc0ffbb2c9d626dfa6f1b95d289ccc3fa5872
MD5 ff374ca688585e0a420467f55b5d93f1
BLAKE2b-256 5ee59b453e80fcfda3edbc10cb183b1614846b0216a6deb5a2d5dcfc2fbd48ee

See more details on using hashes here.

File details

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

File metadata

  • Download URL: reflex_sdk-0.7.2-py3-none-any.whl
  • Upload date:
  • Size: 197.3 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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 668e9d93cdf0e110c98d0b098ade33fc63141d770c72b288902e60fd14abd1de
MD5 b12f672907ee2c82666d136dd34c4dab
BLAKE2b-256 518a01e83b36cd396f2f3a1ccbea8bc057931407baa02a810141ecd74667b4c3

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