Connect to Agents
Use any agent, anywhere, as if local. Create a proxy to a remote agent with the same interface.
Why connect? Access specialized agents from anywhere, build distributed workflows, scale horizontally across multiple machines.
60-Second Quick Start
Connect to a remote agent with one function call:
What Just Happened?
wss://oo.openonion.ai/ws/announceComplete Example: Two Terminals
Terminal 1: Host an Agent
Terminal 2: Connect and Use
Common Patterns
1. Connect to Multiple Agents
Build workflows with specialized remote agents:
2. Retry on Connection Failure
Handle network failures gracefully:
3. Agent Pool (Load Balancing)
Distribute load across multiple identical agents:
Multi-Turn Conversations
Remote agents maintain conversation state across multiple input() calls:
Real-World: Distributed Workflow
Local orchestrator using remote specialized agents:
Configuration
Default Relay (Production)
Local Relay (Development)
Environment-Based
Local vs Remote Agents
Local Agent
+ No network latency
+ Works offline
− Limited to one machine
− No sharing
Remote Agent
+ Access from anywhere
+ Share across team
− Network latency
− Requires connectivity
Ready to Use Remote Agents?
Just call connect(address) and start building distributed workflows!
