Skip to main content
logo

The Protocol for AI Agents - Secure communication protocol for the post-AI era.

PyPI version Python 3.9+ License: MIT

## 🎯 What is BeekKon-Bridge?

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
BKB_Shower

What happens

  1. Client requests onboarding via CRM
  2. CRM asks Legal to validate the contract
  3. Legal validates and stores contract in shared memory
  4. CRM asks Accounting to generate invoice
  5. Accounting retrieves contract, calculates VAT, issues invoice
  6. CRM validates payment
  7. 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

GitHub: https://github.com/erabytse/BeekKon-Bridge

Issues: https://github.com/erabytse/BeekKon-Bridge/issues

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)

Source distribution for beekkon-bridge 1.1.2
File Size Uploaded
beekkon_bridge-1.1.2.tar.gz 28.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for beekkon-bridge 1.1.2
File Interpreter ABI Platform
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

Release history Release notifications | RSS feed

This release

1.1.2 This release

2 release files

1.1.1

2 release files

1.1.0

2 release files

1.0.0

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