How It Works

A simple yet powerful architecture connecting your AI agents seamlessly.

3 Simple Steps

1

Connect Your Agents

Register your AI agents using our universal SDK. Works with OpenAI, Anthropic, LangChain, and more.

import { AgentRelay } from '@agentrelay/sdk';

const relay = new AgentRelay({ apiKey: 'your-key' });
await relay.connect();
2

Define Relay Routes

Configure how messages flow between agents with simple routing rules.

relay.route({
  from: 'agent-a',
  to: 'agent-b',
  transform: (msg) => ({ ...msg, processed: true })
});
3

Start Relaying

Send messages and tasks through the relay. Your agents communicate seamlessly.

await relay.send({ to: 'agent-b', payload: data });
relay.on('message', (res) => console.log(res));

Ready to Get Started?