BeekKon Bridge is a peer-to-peer communication protocol designed specifically for AI agents. It provides:
- 🔐 Zero-knowledge authentication (based on CryptoLogin V2)
- 🔒 End-to-end encryption (AES-256-GCM via Curve25519)
- ✍️ Message signatures (Ed25519)
- 🔍 Automatic peer discovery (UDP broadcast)
- 🤖 Simple high-level API (5 lines of code)
🚀 Quick Start
Install
pip install beekon-bridge
Create an Agent
from beekkon import BeekKonAgent
# Create agent
agent = BeekKonAgent(
name="my_agent",
secret="my-super-secret-key-1234567890", # min 32 chars
capabilities=["parse_data", "generate_report"]
)
# Register handler
@agent.handler("process_request")
async def handle_request(data):
return {"result": "processed", "input": data}
# Start agent
agent.start()
Request Another Agent
from beekkon import BeekKonAgent
agent = BeekKonAgent(
name="client_agent",
secret="client-secret-0987654321",
capabilities=[]
)
agent.start(blocking=False)
# Send request
response = agent.request(
target="my_agent",
task="process_request",
data={"value": 42}
)
print(response) # {'success': True, 'data': {'result': 'processed', ...}}
🎬 Real-World Example: 3-Agent Workflow
See the examples/ folder for a complete workflow with 3 specialized agents:
- CRM Officer (
agent_crm.py): Client relationship management - Legal Officer (
agent_juridique.py): Contract validation & compliance - Accounting Clerk (
agent_comptable.py): Invoice generation & VAT calculation
Run the demo
# Terminal 1: Start Accounting Clerk
python examples/agent_comptable.py
# Terminal 2: Start Legal Officer
python examples/agent_juridique.py
# Terminal 3: Start CRM Officer
python examples/agent_crm.py
# Terminal 4: Trigger workflow
python examples/run_workflow.py
What happens
- Client requests onboarding via CRM
- CRM asks Legal to validate the contract
- Legal validates and stores contract in shared memory
- CRM asks Accounting to generate invoice
- Accounting retrieves contract, calculates VAT, issues invoice
- CRM validates payment
- Workflow completes ✅
🔐 Security Model
- Zero-knowledge: Server never stores master secrets, only derived user_ids
- E2E encryption: All messages encrypted with AES-256-GCM
- Forward secrecy: Session keys derived via Curve25519 Diffie-Hellman
- Message integrity: Ed25519 signatures on all messages
- Local-first: No cloud, no central server, 100% P2P
📊 Architecture
┌─────────────────────────────────────────────────────┐
│ BeekKonAgent (API) │
│ - agent.start() │
│ - agent.request(target, task, data) │
│ - @agent.handler("task") │
└─────────────────────────────────────────────────────┘
↓
┌─────────────────────────────────────────────────────┐
│ BeekKonDiscovery (UDP) │
│ - Automatic peer discovery │
│ - Capability-based filtering │
└─────────────────────────────────────────────────────┘
↓
┌─────────────────────────────────────────────────────┐
│ BeekKonProtocol (TCP) │
│ - Handshake (zero-knowledge auth) │
│ - Encrypted communication (AES-256-GCM) │
│ - Request/Response pattern │
└─────────────────────────────────────────────────────┘
↓
┌─────────────────────────────────────────────────────┐
│ BeekKonAuth (Crypto) │
│ - Ed25519 signatures │
│ - Curve25519 key exchange │
│ - PBKDF2-HMAC-SHA512 key derivation │
└─────────────────────────────────────────────────────┘
🧪 Tests
pytest tests/ -v
# 36 tests passed
📄 License
MIT License - See LICENSE file for details.
🤝 Contributing
Contributions welcome! Please read CONTRIBUTING.md for guidelines.
📧 Contact
Metadata
Release files for beekkon-bridge 1.1.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| beekkon_bridge-1.1.2.tar.gz | 28.0 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| beekkon_bridge-1.1.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 52.4 kB
Release files / beekkon_bridge-1.1.2.tar.gz
| Download URL | beekkon_bridge-1.1.2.tar.gz |
|---|---|
| Size | 28.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e0226d9ff5c03a83c7365057f5087ade1252223d52185a9e8035d3aabc7b9918
|
|
BLAKE2b-256 checksum How to use checksums |
313d5603a284143b817e9d85777762ed90549ca47b088f5faaf685ea88d957d4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.11.0
|
Release files / beekkon_bridge-1.1.2-py3-none-any.whl
| Download URL | beekkon_bridge-1.1.2-py3-none-any.whl |
|---|---|
| Size | 24.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
9b77bf98a5b76f7755a9f37553c6a30d3f789b29bff4d5251de9040611bee610
|
|
BLAKE2b-256 checksum How to use checksums |
e6c0003a58dbb40921bb015fb2603f063e7816e17ee55638057a50a80d474800
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.11.0
|