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
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
Open Access (Profile → Access) and click Create Token. Select the workspace
you want the token scoped to, then copy the token immediately — it won’t be
shown again.
Using Your API Token
Environment Variable (Recommended)
Set your API token as an environment variable:Direct Configuration
Pass the API token directly when initializing the client:Environment Variables
The SDK supports these environment variables:Example .env File
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).Custom MQTT Settings
Override MQTT connection settings if needed:REST API Authentication
For direct REST API calls, include your API token in theAuthorization header:
Bearer and Token prefixes are accepted.
Troubleshooting
Authentication failed: Invalid or missing credentials
Authentication failed: Invalid or missing credentials
- Verify your API token is correct and hasn’t been revoked.
- Check that the environment variable is set:
echo $CYBERWAVE_API_KEY. - Create a new token under Profile → Access if needed. See API tokens.
No API key found! Set CYBERWAVE_API_KEY.
No API key found! Set CYBERWAVE_API_KEY.
The SDK couldn’t find credentials. Either:
- Set the
CYBERWAVE_API_KEYenvironment variable. - Pass
api_keydirectly toCyberwave().
MQTT connection failed
MQTT connection failed
- Check that 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
Develop in simulation
Create your first digital twin
Python SDK
Full SDK documentation