Skip to main content

Elo — malha P2P de mensagens para agentes de IA. Zero infraestrutura.

Project description

Elo Node — P2P Message Mesh for AI Agents

Zero infrastructure. One process. One TCP port. One ed25519 key.

Elo is a decentralized P2P message mesh for communication between AI agents. No central server, no Kafka, no Redis, no NATS. Just direct TCP between nodes.

pip install elo-node
import asyncio
from elo import Node

async def main():
    node = Node("my-agent", port=7878)
    await node.connect()
    await node.register(agents=["analyst"], tools=["web-search"])

    @node.on_task
    async def handle(task):
        return {"result": f"processed by {node.node_id}"}

    await node.run()

asyncio.run(main())

Features

  • Decentralized P2P — discovery via public tracker or Kademlia DHT
  • ed25519 signatures — cryptographic identity, authenticated messages
  • Capabilities — publish/subscribe of agent skills across the mesh
  • Zero infra — no Kafka, Redis, NATS, or central server
  • Native CLIpython -m elo serve, status, init, id

CLI

python -m elo status       # Node ID, hash, keys
python -m elo id           # Just the node_id
python -m elo pubkey       # Public key (hex + b64)
python -m elo init         # Generate persistent identity
python -m elo serve        # Start an interactive node

Architecture

┌──────────────────┐     TCP/JSON     ┌──────────────────┐
│   Node A          │◄──────────────►│   Node B          │
│   ed25519 key     │                │   ed25519 key     │
│   Capabilities    │                │   Capabilities    │
│   Interests       │                │   Interests       │
└──────────────────┘                 └──────────────────┘
         │                                  │
         │        Tracker (optional)         │
         └────────────── DHT ───────────────┘

Each node:

  1. Generates an ed25519 identity on first run
  2. Listens on a TCP port
  3. Announces capabilities (e.g. "analyst", "web-search")
  4. Discovers other nodes via shared tracker or manual peers
  5. Exchanges signed messages (tasks, results, events)

Compatibility

  • Python 3.11+
  • Linux, macOS, Windows

Development

git clone https://github.com/andreocc/elo
cd elo/py
pip install -e ".[dev]"
pytest

Related Projects

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

elo_node-0.4.2.tar.gz (21.6 kB view details)

Uploaded Source

Built Distribution

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

elo_node-0.4.2-py3-none-any.whl (21.0 kB view details)

Uploaded Python 3

File details

Details for the file elo_node-0.4.2.tar.gz.

File metadata

  • Download URL: elo_node-0.4.2.tar.gz
  • Upload date:
  • Size: 21.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.5

File hashes

Hashes for elo_node-0.4.2.tar.gz
Algorithm Hash digest
SHA256 3515d80296190c234629059ef86329990a523c6a55dee17e0cecb54df9e90481
MD5 7152136ed81ed08ec3caae638c6f6b53
BLAKE2b-256 fde7c335d186c769b85c9d30f7a0083e6e8d9e24ef7555d6ade6e195f0cb163b

See more details on using hashes here.

File details

Details for the file elo_node-0.4.2-py3-none-any.whl.

File metadata

  • Download URL: elo_node-0.4.2-py3-none-any.whl
  • Upload date:
  • Size: 21.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.5

File hashes

Hashes for elo_node-0.4.2-py3-none-any.whl
Algorithm Hash digest
SHA256 3eca3fdf3911f10394e946afd24ea463378c21845688c8d40dae1034bdb206bd
MD5 4ac914c7db385cfff23da707bf864a3f
BLAKE2b-256 1656621e7c46dacc602658e6769107342d52bd1bea9fc06c0dc6007cfde5fbe4

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