The core component of the Cyberwave Edge Node
Project description
Cyberwave Edge-Core
Cyberwave Edge Core acts as the orchestrator of the Cyberwave edge drivers.
Quickstart
SSH to the edge device where you want to install Edge Core, then install the Cyberwave CLI and run the installer:
# Install the Cyberwave CLI (one-time setup)
curl -fsSL https://cyberwave.com/install.sh | bash
# Run the edge installer (interactive)
sudo cyberwave edge install
The installer will prompt you to log in with your Cyberwave account, select a workspace and environment, and persist configuration under /etc/cyberwave/ (on Linux) or ~/.cyberwave/ (on macOS). You can override the config directory via the CYBERWAVE_EDGE_CONFIG_DIR environment variable.
Don't have a Cyberwave account? Get one at cyberwave.com
Config files created
The installer and Edge Core create these files in the config directory:
| File | Description |
|---|---|
credentials.json |
API token and workspace information |
fingerprint.json |
Device fingerprint (generated by Edge Core) |
environment.json |
Selected environment and twin UUIDs |
Edge Core requires credentials.json to operate. fingerprint.json is produced by Edge Core; environment.json is written by the CLI during setup.
How Edge Core works
On startup (service or direct run), Edge Core performs the following steps:
- Validate credentials from
credentials.json. - Connect to the backend MQTT broker and verify connectivity.
- Register the edge device and record a unique
edge_fingerprint. - Download the selected environment and resolve twins linked to the fingerprint.
- Start drivers for linked twins. Special handling for attached camera child twins:
- If a twin is a camera child (has
attach_to_twin_uuid), Edge Core does not start a separate driver for it. - Camera child UUIDs are passed to the parent driver via
CYBERWAVE_CHILD_TWIN_UUIDS.
- If a twin is a camera child (has
Remote restart (Edge REST API)
Request a remote restart of Edge Core via the REST API:
POST /api/v1/edges/{uuid}/restart-core
The API will publish an MQTT message to the edge's command topic:
Topic: edges/{edge_uuid}/command
Example payload:
{"command": "restart_edge_core"}
When Edge Core receives this command it performs a graceful restart consisting of:
- Removing cached twin JSON files from the edge config directory.
- Stopping and removing any edge-managed driver containers, then pruning stopped containers.
- Re-downloading the selected environment and restarting drivers.
The restart is intended to preserve durable state where possible. If connectivity is available before shutdown, Edge Core will attempt to sync any twin JSON changes back to the backend.
Writing compatible drivers
A Cyberwave driver is a Docker image that interacts with device hardware and the Cyberwave backend. When Edge Core starts a driver container it sets the following environment variables (provided to the container):
CYBERWAVE_TWIN_UUIDCYBERWAVE_API_KEYCYBERWAVE_TWIN_JSON_FILE(writable file path)CYBERWAVE_CHILD_TWIN_UUIDS(optional, comma-separated)
CYBERWAVE_CHILD_TWIN_UUIDS is present when child camera twins are attached to the driver twin; drivers can use this to coordinate cameras without additional prompts.
Driver failure handling
Drivers must exit with a non-zero code when they cannot access required hardware (for example, missing /dev/video* or disconnected peripherals). This allows Edge Core to detect startup failures and trigger restart logic.
Edge Core alerts and behavior:
driver_start_failure: raised if a driver container cannot reach a stable running state.driver_restart_loop: raised when a driver restarts more than the configured threshold (default 4 restarts within 60 seconds). The container is stopped and marked as flapping.
Optional environment variables to tune restart behavior:
CYBERWAVE_DRIVER_RESTART_LOOP_THRESHOLD(default:4)CYBERWAVE_DRIVER_RESTART_LOOP_WINDOW_SECONDS(default:60)CYBERWAVE_DRIVER_TROUBLESHOOTING_URL(default:https://docs.cyberwave.com)
Twin JSON file
CYBERWAVE_TWIN_JSON_FILE is an absolute path to a JSON file provided to the driver. The file contains the digital twin instance object (including its metadata) and the associated catalog twin data, matching the API schema: TwinSchema and AssetSchema.
Drivers may modify this file; Edge Core will sync changes back to the backend when connectivity is available.
Twin metadata
Use the official Cyberwave SDK to interact with the API and MQTT; it abstracts authentication, retries, and handshake logic.
Register a driver by adding its configuration to a twin's metadata (or the catalog twin's metadata if you control the catalog twin). Use the environment view's Advanced editing to edit metadata.
Note: changing a catalog twin's metadata affects all subsequently created digital twins derived from that catalog twin.
Example driver metadata (JSON):
{
"drivers": {
"default": {
"docker_image": "cyberwaveos/so101-driver",
"version": "0.0.1",
"params": ["--network", "local", "--add-host", "host.docker.internal:host-gateway"]
}
}
}
To inject environment variables into a driver container, list -e flags inside params: each -e must be a separate element followed by its KEY=value string. Example:
{
"drivers": {
"default": {
"docker_image": "cyberwaveos/go2-native-driver",
"params": ["-e", "MY_VAR=value", "-e", "ANOTHER_VAR=value2"]
}
}
}
Each -e must be its own element in the array, followed by the KEY=value string as the next element. This is equivalent to passing -e MY_VAR=value on the docker run command line.
This is useful for driver-specific configuration that varies per device, such as IP addresses, credentials, or feature flags that cannot be stored in the twin's edge_configs metadata.
Runtime configuration for drivers (metadata["edge_configs"])
Drivers and edge services should treat metadata["edge_configs"] as the source of truth for per-device runtime configuration.
Edge identity should be stored at metadata["edge_fingerprint"] (not duplicated inside edge_configs).
Runtime access: The core passes the full twin JSON (including
metadata) to every driver via theCYBERWAVE_TWIN_JSON_FILEenvironment variable. Drivers can readedge_configsfrom that file at startup to obtain per-device settings — for example, selecting the right camera source or IP address for the current machine. This is the recommended way to pass device-specific configuration to a driver without hardcoding values in the image.
- Type: object/dictionary
- Value: binding object (
object)
Canonical shape:
{
"edge_fingerprint": "macbook-pro-a1b2c3d4e5f6",
"edge_configs": {
"camera_config": {
"camera_id": "front",
"source": "rtsp://user:pass@192.168.1.20/stream",
"fps": 10,
"resolution": "VGA",
"camera_type": "cv2"
}
}
}
Field notes:
edge_fingerprint: fingerprint of the edge serving this twin (recommended).camera_config: per-device camera/runtime config consumed by drivers.
Avoid storing transient runtime state such as edge_uuid, registered_at, last_sync, last_ip_address, or status_data inside edge_configs.
Backward compatibility:
- Older records may use a legacy map shape (
edge_configs[fingerprint] = {...}). - Older records may store camera settings in
cameras[0]or as top-level fields. - New writers should prefer
camera_configunderedge_configs. - Do not rely on
PUT /api/v1/edges/{uuid}/twins/{twin_uuid}/camera-config; it is deprecated. Update twin metadata instead.
Advanced usage
Manual install and troubleshooting
# Install the Buildkite package signing key
curl -fsSL "https://packages.buildkite.com/cyberwave/cyberwave-edge-core/gpgkey" | gpg --dearmor -o /etc/apt/keyrings/cyberwave_cyberwave-edge-core-archive-keyring.gpg
# Configure the Apt source
echo -e "deb [signed-by=/etc/apt/keyrings/cyberwave_cyberwave-edge-core-archive-keyring.gpg] https://packages.buildkite.com/cyberwave/cyberwave-edge-core/any/ any main\ndeb-src [signed-by=/etc/apt/keyrings/cyberwave_cyberwave-edge-core-archive-keyring.gpg] https://packages.buildkite.com/cyberwave/cyberwave-edge-core/any/ any main" \
> /etc/apt/sources.list.d/buildkite-cyberwave-cyberwave-edge-core.list
# Run Edge Core (performs startup checks and starts drivers)
cyberwave-edge-core
# Show status, credentials and MQTT connectivity (read-only)
cyberwave-edge-core status
# Show version
cyberwave-edge-core --version
Environment variables
Run against a different environment/base URL:
export CYBERWAVE_ENVIRONMENT="yourenv"
export CYBERWAVE_BASE_URL="https://yourbaseurl"
cyberwave-edge-core
Control log verbosity (default: INFO):
export CYBERWAVE_EDGE_LOG_LEVEL="DEBUG"
cyberwave-edge-core
Or pass env vars to the CLI installer:
sudo CYBERWAVE_ENVIRONMENT="yourenv" CYBERWAVE_BASE_URL="https://yourbaseurl" cyberwave edge install
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file cyberwave_edge_core-0.0.32.tar.gz.
File metadata
- Download URL: cyberwave_edge_core-0.0.32.tar.gz
- Upload date:
- Size: 40.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ff9eef4fc4ad9a7787082420e2201021935c8cec62f008af6fc5b511021317d0
|
|
| MD5 |
455d0b919bd91f4f56341eae33bb43c5
|
|
| BLAKE2b-256 |
008472f9461c61450120f024590f10f1750dc1adc4a692d3437eece38cd171d2
|
Provenance
The following attestation bundles were made for cyberwave_edge_core-0.0.32.tar.gz:
Publisher:
release-pypi.yml on cyberwave-os/cyberwave-edge-core
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
cyberwave_edge_core-0.0.32.tar.gz -
Subject digest:
ff9eef4fc4ad9a7787082420e2201021935c8cec62f008af6fc5b511021317d0 - Sigstore transparency entry: 1056859237
- Sigstore integration time:
-
Permalink:
cyberwave-os/cyberwave-edge-core@0bfd7fb28177bfca624d85b900d5ed8e5e190141 -
Branch / Tag:
refs/tags/v0.0.32 - Owner: https://github.com/cyberwave-os
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release-pypi.yml@0bfd7fb28177bfca624d85b900d5ed8e5e190141 -
Trigger Event:
push
-
Statement type:
File details
Details for the file cyberwave_edge_core-0.0.32-py3-none-any.whl.
File metadata
- Download URL: cyberwave_edge_core-0.0.32-py3-none-any.whl
- Upload date:
- Size: 26.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1966a099853a9595a9884707597d2c23d3715694b9b9547c049df930359b2852
|
|
| MD5 |
6a0f8a70283f9f728b2bed23616aa5d4
|
|
| BLAKE2b-256 |
8aef5edebc1d993a2e777c586d0459e1e742321331774ef4064424994d885128
|
Provenance
The following attestation bundles were made for cyberwave_edge_core-0.0.32-py3-none-any.whl:
Publisher:
release-pypi.yml on cyberwave-os/cyberwave-edge-core
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
cyberwave_edge_core-0.0.32-py3-none-any.whl -
Subject digest:
1966a099853a9595a9884707597d2c23d3715694b9b9547c049df930359b2852 - Sigstore transparency entry: 1056859238
- Sigstore integration time:
-
Permalink:
cyberwave-os/cyberwave-edge-core@0bfd7fb28177bfca624d85b900d5ed8e5e190141 -
Branch / Tag:
refs/tags/v0.0.32 - Owner: https://github.com/cyberwave-os
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release-pypi.yml@0bfd7fb28177bfca624d85b900d5ed8e5e190141 -
Trigger Event:
push
-
Statement type: