Use Any Agent, Anywhere, As If Local
Call connect(address) to create a proxy to a remote agent. Same interface as local agents, works across networks.
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: Start a Serving 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!
