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.3.tar.gz (206.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.3-py3-none-any.whl (204.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: reflex_sdk-0.7.3.tar.gz
  • Upload date:
  • Size: 206.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.3.tar.gz
Algorithm Hash digest
SHA256 c6195e47e604162e8b93aa9c9116af8c010083269aa658cc83d4bdde947baf31
MD5 e4d5dc3b8fc190da096dd9118448b3b7
BLAKE2b-256 891322266fa712ae63a208e5048c2bdc7aac26314a37819ef66ddc32da7dcb27

See more details on using hashes here.

File details

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

File metadata

  • Download URL: reflex_sdk-0.7.3-py3-none-any.whl
  • Upload date:
  • Size: 204.2 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.3-py3-none-any.whl
Algorithm Hash digest
SHA256 8250f2a3d6caed771568398a95a82e30469168ac6d6198465e8c83df400cbc06
MD5 de9a7e11e484f8179960c534bf3c0283
BLAKE2b-256 f061e79d67f236a92d215a8f86bedb66598bb0042bfd0349d6dc25ff66bf02eb

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