Skip to main content

Overview

Cyberwave uses API tokens to authenticate requests. You’ll need a token to:
  • Connect the Python SDK
  • Make REST API calls
  • Establish MQTT connections
Each token is scoped to a specific workspace, giving you isolated access per workspace.

Creating an API Token

1

Sign in to Cyberwave

Go to cyberwave.com and sign in to your account.
2

Navigate to Profile

Click your profile icon and select Profile or go directly to cyberwave.com/profile.
3

Create a Token

In the API Tokens section, click Create Token. Select the workspace you want the token scoped to, then copy the token immediately — it won’t be shown again.
Keep your API token secure. Don’t commit it to version control or share it publicly.

Using Your API Token

Set your API token as an environment variable:
The SDK automatically reads this variable:

Direct Configuration

Pass the API token directly when initializing the client:

Environment Variables

The SDK supports these environment variables:

Example .env File

Load with python-dotenv:

MQTT Authentication

For real-time features (video streaming, teleoperation, live joint updates), the SDK connects to MQTT automatically using your API token. The MQTT connection is lazily initialized — it connects on the first call that requires it (e.g., subscribing to joint updates).
The default MQTT connection uses TLS on port 8883.

Custom MQTT Settings

Override MQTT connection settings if needed:

REST API Authentication

For direct REST API calls, include your API token in the Authorization header:
Both Bearer and Token prefixes are accepted.

Troubleshooting

  • Verify your API token is correct and hasn’t been revoked - Check that the environment variable is set: echo $CYBERWAVE_API_KEY - Generate a new token from your profile page if needed
The SDK couldn’t find credentials. Either: - Set the CYBERWAVE_API_KEY environment variable - Pass api_key directly to Cyberwave()
  • Check your network allows outbound connections on port 8883 (TLS) - Verify your API token is valid and not revoked - The MQTT client connects lazily — call a subscription method to trigger the connection

Connectivity Requirements for Running an Edge

If you’re running the Cyberwave Edge runtime (Edge Core plus drivers) on your own hardware, here’s every connection it needs. All of these are outbound-initiated from the edge — you generally don’t need to open any inbound ports on your network.
For the full picture of why each protocol is used, see Architecture → Video Streaming (WebRTC) and Architecture → Local Data Bus (Zenoh).

Next Steps

Quick Start

Create your first digital twin

Python SDK

Full SDK documentation