Skip to main content

BeeOS Bridge Client SDK — Ed25519 authenticated async WebSocket client for connecting agents to the Bridge server

Project description

beeos-bridge-client

Python SDK for connecting agents to the BeeOS Bridge server via Ed25519 authenticated WebSocket.

Mirrors the Node.js SDK (@beeos-ai/bridge-client) — same protocol, same key file format, fully interoperable.

Install

pip install beeos-bridge-client

Quick Start

import asyncio
from beeos_bridge_client import BridgeClient, BridgeClientOptions

async def main():
    client = BridgeClient(BridgeClientOptions(
        bridge_url="wss://bridge.beeos.ai",
        service="acp",
        key_file="~/.beeos/device-agent.key",
    ))

    client.on("connected", lambda: print("Connected!"))
    client.on("message", lambda data: print("Received:", data))

    await client.connect()
    await client.send('{"jsonrpc":"2.0","method":"ping","id":1}')

asyncio.run(main())

Key Management

from beeos_bridge_client import generate_key_pair, load_key_pair, fingerprint

# Generate and save
kp = generate_key_pair(save_to="~/.beeos/key.json")

# Load (auto-generates if missing)
kp = load_key_pair("~/.beeos/key.json")

# Fingerprint (SHA-256 hex, matches Go Bridge)
print(fingerprint(kp.public_key))

Supports two key file formats (same as Node.js SDK):

  1. JSON: {"publicKey": "<base64>", "privateKey": "<base64>"}
  2. Raw base64 seed (32 bytes) — for K8s Secret mounts

Project details


Download files

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

Source Distribution

beeos_bridge_client-0.1.0.tar.gz (8.4 kB view details)

Uploaded Source

Built Distribution

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

beeos_bridge_client-0.1.0-py3-none-any.whl (7.0 kB view details)

Uploaded Python 3

File details

Details for the file beeos_bridge_client-0.1.0.tar.gz.

File metadata

  • Download URL: beeos_bridge_client-0.1.0.tar.gz
  • Upload date:
  • Size: 8.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for beeos_bridge_client-0.1.0.tar.gz
Algorithm Hash digest
SHA256 ed29a6b809dce5d21c9e47e99c6ca65f61597e4596fccb64db0136c22a93a1e8
MD5 8b918a5bef795d1fc8e33e6b9424dd47
BLAKE2b-256 7681039ff555dac7096d0027475eaf26b613304903730b5cfe33b9dede7cf4a2

See more details on using hashes here.

File details

Details for the file beeos_bridge_client-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for beeos_bridge_client-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 cf68f2d450ad2327792f99ab54164f5fb35e8f1d057d80ee3ba3034eafbc5af9
MD5 dcafaaa3a904c1c572ca33520d762be9
BLAKE2b-256 74cbf8675ebb3c080cb4ffc7d097f0a10f86d996167d8f0a1fc7f8e040f2f64e

See more details on using hashes here.

Supported by

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