Real-time messaging between AI agents. Sub-5ms latency, any CLI, any language.
Quick install (recommended - no Node.js required!):
curl -fsSL https://raw.githubusercontent.com/AgentWorkforce/relay/main/install.sh | bashThis downloads a standalone binary that works without any dependencies.
Or via npm:
npm install -g agent-relayThe npm method requires Node.js 18+
agent-relay up --dashboardNavigate to http://localhost:3888 to:
- π€ Spawn and chat with agents using your locally installed CLI tools
- π View real-time agent presence and status
- π¬ Message history and threading
- π Log streaming from all agents
| Command | Description |
|---|---|
agent-relay <cli> |
Start daemon + coordinator (claude, codex, gemini, etc.) |
agent-relay up |
Start daemon + dashboard |
agent-relay down |
Stop daemon |
agent-relay status |
Check daemon status |
agent-relay spawn <name> <cli> "task" |
Spawn a worker agent |
agent-relay bridge <projects...> |
Bridge multiple projects |
agent-relay doctor |
Diagnose issues |
Define roles by adding markdown files to your project:
.claude/agents/
βββ lead.md # Coordinator
βββ implementer.md # Developer
βββ reviewer.md # Code review
βββ designer.md # UI/UX
Names automatically match roles (case-insensitive). Create agents using either method:
Option A: Dashboard (recommended for interactive use)
- Open http://localhost:3888
- Click "Spawn Agent"
- Enter name "Lead" and select CLI "claude"
Option B: CLI (for scripting/automation)
agent-relay spawn Lead claude "Your task instructions"Agents with matching names automatically assume the corresponding role from your .claude/agents/ directory.
Give AI agents native relay tools via Model Context Protocol:
npx @agent-relay/mcp installSupports Claude Desktop, Claude Code, Cursor, VS Code, Windsurf, Zed, OpenCode, Gemini CLI, and Droid.
Once configured, agents get access to: relay_send, relay_inbox, relay_who, relay_spawn, relay_release, and relay_status.
Orchestrate agents across repositories:
# Start daemons in each project
cd ~/auth && agent-relay up
cd ~/frontend && agent-relay up
# Bridge from anywhere
agent-relay bridge ~/auth ~/frontend ~/apiCross-project messaging uses project:agent format:
cat > $AGENT_RELAY_OUTBOX/msg << 'EOF'
TO: auth:Lead
Please review the token refresh logic
EOFThen output: ->relay-file:msg
For team collaboration and cross-machine messaging, use agent-relay cloud:
agent-relay cloud link # Link your machine
agent-relay cloud status # Check cloud status
agent-relay cloud agents # List agents across machines
agent-relay cloud send AgentName "Your message"Connect your CLI tool to your own private workspace and unlock agents working 24/7 against your GitHub repository in their own private sandbox.
Note: On
agent-relay upinitialization this step happens automatically. If there is already an existingAGENTS.md,CLAUDE.md, orGEMINI.md, it will append the protocol instructions to that file.
Install the messaging protocol snippet for your agents via prpm:
npx prpm install @agent-relay/agent-relay-snippet
# for Claude
npx prpm install @agent-relay/agent-relay-snippet --location CLAUDE.mdPrefer skills?
npx prpm install @agent-relay/using-agent-relayView all packages on our prpm organization page.
Paste this into your LLM agent session:
curl -s https://raw.githubusercontent.com/AgentWorkforce/relay/main/docs/guide/agent-setup.mdOr read the full Agent Setup Guide.
The easiest way to develop against relay:
# Install globally and start daemon
npm install -g agent-relay
agent-relay up
# In your project
npm install agent-relayimport { RelayClient } from 'agent-relay';
const client = new RelayClient({ name: 'MyApp' });
await client.connect();
// Spawn a worker agent
await client.spawn({ name: 'Worker', cli: 'claude', task: 'Wait for instructions' });
// Send it a message
await client.send('Worker', 'Hello from my app');Do one thing well: Real-time agent messaging with sub-5ms latency.
agent-relay is a messaging layer, not a framework. It works with any CLI tool, any orchestration system, and any memory layer.
Apache-2.0 β Copyright 2025 Agent Workforce Incorporated
Links: Documentation Β· Issues Β· Cloud Β· Discord