Skip to main content

Cyberwave logo

Cyberwave Python SDK

Making the physical world programmable.
Connect, control, and simulate any robot. The same code runs in simulation and on real hardware.

Cyberwave SDK — deploy any robot as a digital twin, in simulation and on real hardware

License Documentation Discord PyPI version PyPI Python versions Build


Cyberwave is an all-in-one platform for building and deploying intelligent physical AI agents. Connect a physical robot or sensor, test it in simulation, and run AI models; all through one Python SDK. This package is the official client.

Installation

pip install cyberwave

Optional features install via extras, e.g. cyberwave[camera] (video streaming), cyberwave[ml] (vision models), or cyberwave[zenoh] (edge data bus). See the installation docs for the full list.

Quick Start

Get an API key from your Cyberwave instance (Profile → API Tokens) and export it:

export CYBERWAVE_API_KEY="your_api_key_here"

Then create and control your first digital twin:

from cyberwave import Cyberwave

cw = Cyberwave()  # reads CYBERWAVE_API_KEY from the environment

# Create a digital twin from a catalog asset.
# Pin it to a specific twin and environment by passing their IDs (UUID or slug).
# Omit both and Cyberwave creates a "Quickstart Environment" for you automatically.
arm = cw.twin(
    "the-robot-studio/so101",
    twin_id="your-twin-uuid",                 # e.g. "acme/twins/arm-station-1"
    environment_id="your-environment-uuid",   # e.g. "acme/envs/production-floor"
)

# Place it in the scene (editor layout)
arm.edit_position(x=1.0, y=0.0, z=0.5)
arm.edit_rotation(yaw=90)  # degrees

# Move a joint by name
joint_names = arm.joints.list()
if joint_names:
    arm.set_joints({joint_names[0]: -0.2})  # radians
    print(arm.get_joints())

# Drive a locomotion twin in simulation
cw.affect("simulation")          # or cw.affect("live") for the real robot
rover = cw.twin("unitree/go2")
rover.move_forward(0.3)

cw.disconnect()

The same script targets real hardware by switching cw.affect("live"), no other changes.

Core Concepts

  • Twins — virtual representations of robots and sensors. You develop and test against a twin, then deploy to hardware with identical code. Instantiate any catalog asset with cw.twin("vendor/slug").
  • Environments — scenes your twins live in. Validate quickly in the browser-based Playground, or use MuJoCo for high-fidelity physics and RL.
  • Simulation vs. livecw.affect("simulation") and cw.affect("live") switch where commands and state go. The same code drives both.
  • Edge & cloud — stream camera/sensor data and run AI models on the edge or in the cloud, without managing the infrastructure in between.

Demos

Watch the SDK in action with our demos.

Build a natural language voice agent on SO101
Build a natural language voice agent on SO101
Controlling a DJI Mini 4 Pro with the Cyberwave Python SDK
Controlling a DJI Mini 4 Pro with the Cyberwave Python SDK

Examples

Runnable scripts live in examples/ and see the examples index for the full list.

Example Shows
quickstart.py Create a twin, scene layout, joints, locomotion
joints.py Read and write joint positions by name
locomotion.py Velocity-style locomotion commands
capture_frame.py Grab a single camera frame from a twin
camera_stream.py Stream a camera feed over WebRTC
drone_hovering.py Takeoff, hover, and land a flying twin
workflows.py List, trigger, and monitor workflows
ai/yolo.ipynb Run YOLO vision models (Colab)

Documentation

Full guides and the complete API reference are at docs.cyberwave.com (overview · API reference).

Recording readiness

Recording list items expose the server's playback assessment when it is available. Use is_playback_ready before downloading artifacts, or request unready entries explicitly while building a retry UI:

items = cw.environments.recordings.list(
    environment_id="acme/envs/floor",
    include_unready=True,
)

for item in items:
    print(item.uuid, item.readiness, item.is_playback_ready)

item.readiness is None when connected to a server that predates this feature. If get() receives a materializing response, it raises CyberwaveError with the server's suggested retry interval instead of returning an empty recording.

Contributing

Contributions are welcome. Please open an issue or a pull request.

Support

License

Released under the MIT License.

Download files

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

Source Distribution

cyberwave-0.6.4.tar.gz (1.1 MB view details)

Uploaded Source

Built Distribution

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

cyberwave-0.6.4-py3-none-any.whl (1.8 MB view details)

Uploaded Python 3

File details

Details for the file cyberwave-0.6.4.tar.gz.

File metadata

  • Download URL: cyberwave-0.6.4.tar.gz
  • Upload date:
  • Size: 1.1 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.4.1 CPython/3.10.20 Linux/6.17.0-1022-azure

File hashes

Hashes for cyberwave-0.6.4.tar.gz
Algorithm Hash digest
SHA256 ead1216fbeb513a51205e7e1d815f090ed0e8fd58d85752d5cf94bbe23ec12cd
MD5 8d7c286ab4073f009b3def435ff9eda1
BLAKE2b-256 661b599e1d8e73ac625174416f12c5e633a51f2200c86f9be8903ab5e9fd593f

See more details on using hashes here.

File details

Details for the file cyberwave-0.6.4-py3-none-any.whl.

File metadata

  • Download URL: cyberwave-0.6.4-py3-none-any.whl
  • Upload date:
  • Size: 1.8 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.4.1 CPython/3.10.20 Linux/6.17.0-1022-azure

File hashes

Hashes for cyberwave-0.6.4-py3-none-any.whl
Algorithm Hash digest
SHA256 f7d3bf1f221222218c86607de43e90e6a647e18a19da2d5f9ff4bcbd0a49dc5a
MD5 f2e27e7c1c1683c01bcdd533f37ba835
BLAKE2b-256 7af20f0af05d2a227040f24c07fe38d02985a6d07a5cc003916836ddd28b38bd

See more details on using hashes here.

Release history Release notifications | RSS feed

Supported by

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