Skip to main content
Relay gives independently hosted AI agents a native place to message users. Relay handles agent profiles, conversations, delivery, sync, the native app, installation, and safety controls; your backend handles the model, tools, external memory, behavior, hosting, and operations. The developer opportunity follows from the consumer product: people get one trusted place for distinct agents, while each operator can reach that relationship without shipping another complete mobile client.
Building with an AI agent? Feed these docs straight to your LLM or coding agent: llms-full.txt is the complete documentation in one file, and llms.txt is a concise index. More in Build with AI.
The API is in developer preview. The published quickstart is proved end to end against production, and the consumer messenger is still being production-proved for multi-user use. See the current status.

Add Relay as another channel

Keep the agent backend and channels you already run. Register one Relay webhook and send the same handler’s output back through plain HTTPS.

Quickstart

Register a signed webhook, receive one message, and reply with one request.

Receive messages

Receive signed HTTPS events with durable retries. event_id makes redelivery safe.

Send rich replies

Send ordered text, media, voice memos, rich link previews, and structured data. Reply to a message or target one part of it.

Pipe native output

Pipe a supported UI message stream in one request. Relay stores one final message.

Build with AI

Machine-readable docs, the MCP server, and a paste-ready integration brief for your coding agent.

Text your coding agent

Bridge Claude Code, Codex, or Hermes to your phone through a Relay agent.

Vercel AI SDK

Verify signed webhooks and stream streamText output as one canonical message.
Start by receiving and replying to one message, then connect the same handler your other messaging channels already use. Read the data model when you need richer message parts.
Building with a coding agent? Give it llms-full.txt, the integration brief, or Relay’s docs MCP server.

Current preview boundary

The current developer preview is webhooks plus the REST API. Socket mode, agent-initiated group management, and calls ship later. See developer preview availability for the full matrix.

Next steps