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, peers=["100.91.215.113: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
- Relay via tracker — nodes behind NAT/Docker can communicate through a tracker
- Zero infra — no Kafka, Redis, NATS, or central server
- Native CLI —
python -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
Key Concepts
peers=is required for outbound connections. Without it the node only listens.send_task()auto-fallback: direct → InterestTable → QUERY → tracker relay → NO_PEER- HELLO_ACK with known_peers: tracker shares all peers on handshake (v0.4.4+)
discover_peers_network()— QUERY broadcast across the mesh
Changelog
| Version | Highlights |
|---|---|
| 0.4.5 | Multi-response discover, tracker returns all peers on query |
| 0.4.4 | HELLO_ACK with known_peers, send_task auto-fallback tracker |
| 0.4.3 | Relay via tracker, send_task_via_tracker() |
| 0.4.0 | Initial release |
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
- Hermes Agent — autonomous agent runtime
- Honcho — persistent memory for agents
Project details
Release history Release notifications | RSS feed
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.9.tar.gz
(25.2 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
elo_node-0.4.9-py3-none-any.whl
(23.5 kB
view details)
File details
Details for the file elo_node-0.4.9.tar.gz.
File metadata
- Download URL: elo_node-0.4.9.tar.gz
- Upload date:
- Size: 25.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9cf0066f8ec2520aa6dd8e4b82f00f847c414397ca7f4cc9943ec042f6aff673
|
|
| MD5 |
8bbeb3a0919fccac614ecb6e32d3d6f7
|
|
| BLAKE2b-256 |
79f7d59f3750342cae2ec5821a5b93e535b0ae976fb2468cbab300b2ad4aeec8
|
File details
Details for the file elo_node-0.4.9-py3-none-any.whl.
File metadata
- Download URL: elo_node-0.4.9-py3-none-any.whl
- Upload date:
- Size: 23.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f19d4bf7fbaf61dbd657476337656bef017c483a1766a08014beb6f01f036ad1
|
|
| MD5 |
8a80736d2127a3e429740693f34703be
|
|
| BLAKE2b-256 |
ed130a5ea267f101063ecf5989ff989d06e81088c5f5ab1df79829b6288bddfd
|