Share Your AI Agents Over the Network
Call agent.serve() to make your agent accessible from anywhere. One line of code, cryptographic identity, zero configuration.
Why serve? Turn local agents into network services. Access specialized agents from anywhere, build distributed workflows, scale horizontally.
60-Second Quick Start
Create an agent and call .serve() - that's it:
What Just Happened?
.co/keys/helper/wss://oo.openonion.ai/ws/announceTesting Your Served Agent
From another Python script, connect using the agent's address:
Or from terminal: Start serving in Terminal 1, connect from Terminal 2. Your agent is now a network service!
How It Works
INPUT Message
OUTPUT Message
All messages are automatically signed with your agent's private key and verified by the relay.
Configuration
Default Relay (Production)
Custom Relay (Development)
Environment-Based
Security
Ed25519 Cryptography
Every message is signed with your agent's private key. The relay verifies signatures to ensure authenticity.
Key Storage
Keys are stored in .co/keys/{agent_name}/':
- •
private_key.pem- Keep this secret! Never commit to git. - •
public_key.pem- Your agent's address, safe to share.
Complete Example
Ready to Share Your Agents?
Just call agent.serve() and your agent goes live!
