Skip to main content

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

Metadata

Release files for beeos-bridge-client 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for beeos-bridge-client 0.1.0
File Size Uploaded
beeos_bridge_client-0.1.0.tar.gz 8.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for beeos-bridge-client 0.1.0
File Interpreter ABI Platform
beeos_bridge_client-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 15.4 kB

Release files / beeos_bridge_client-0.1.0.tar.gz

Download URL beeos_bridge_client-0.1.0.tar.gz
Size 8.4 kB
Tags Source
SHA-256 checksum
How to use checksums
ed29a6b809dce5d21c9e47e99c6ca65f61597e4596fccb64db0136c22a93a1e8
BLAKE2b-256 checksum
How to use checksums
7681039ff555dac7096d0027475eaf26b613304903730b5cfe33b9dede7cf4a2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.7

Release files / beeos_bridge_client-0.1.0-py3-none-any.whl

Download URL beeos_bridge_client-0.1.0-py3-none-any.whl
Size 7.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
cf68f2d450ad2327792f99ab54164f5fb35e8f1d057d80ee3ba3034eafbc5af9
BLAKE2b-256 checksum
How to use checksums
74cbf8675ebb3c080cb4ffc7d097f0a10f86d996167d8f0a1fc7f8e040f2f64e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.7

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page