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
Sign in to Cyberwave
Go to cyberwave.com and sign in to your account.
Navigate to Profile
Click your profile icon and select Profile or go directly to cyberwave.com/profile.
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:| Variable | Description |
|---|---|
CYBERWAVE_API_KEY | Your API token for authentication |
CYBERWAVE_BASE_URL | API base URL (default: https://api.cyberwave.com) |
CYBERWAVE_ENVIRONMENT_ID | Default environment UUID |
CYBERWAVE_WORKSPACE_ID | Default workspace UUID |
CYBERWAVE_MQTT_HOST | MQTT broker host (default: mqtt.cyberwave.com) |
CYBERWAVE_MQTT_PORT | MQTT broker port (default: 8883) |
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 - Generate a new token from your profile page if needed
No CYBERWAVE_API_KEY found
No CYBERWAVE_API_KEY found
The SDK couldn’t find credentials. Either:
- Set the
CYBERWAVE_API_KEYenvironment variable - Pass
api_keydirectly toCyberwave()
MQTT connection failed
MQTT connection failed
- 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
Next Steps
Quick Start
Create your first digital twin
Python SDK
Full SDK documentation