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.4.tar.gz (216.5 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.4-py3-none-any.whl (213.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: reflex_sdk-0.7.4.tar.gz
  • Upload date:
  • Size: 216.5 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.4.tar.gz
Algorithm Hash digest
SHA256 fa0f0da2d0a858664eef56af2bf3fecc3a8d7e3bc77f35e4644c2c1ee43b5e48
MD5 729cad37a29a7b40d617c3c6de9fe6e7
BLAKE2b-256 e9baaf5bf9da54db653700d854ca5e8f6a5b30be9e14f2bfdffbfef7ab633ee6

See more details on using hashes here.

File details

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

File metadata

  • Download URL: reflex_sdk-0.7.4-py3-none-any.whl
  • Upload date:
  • Size: 213.8 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.4-py3-none-any.whl
Algorithm Hash digest
SHA256 3cde0c0b7eea1ffe42b0cb567b26e646b8812d1b53a0f7df06f09c957ddeee58
MD5 e6be18b4a3f71719b9e01af985a28e3b
BLAKE2b-256 311db3d9721547b68dfd82646fc7c21832af98a505a0a5f605dcd1825f0fa09b

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