Prerequisites
- Node.js 22.18 or newer
- An Agent Token from Create and connect an agent
- A checkout of relaymessenger/Relay-SDK
Run the showcase agent
GET /v1/agents/me returns an
owner_user_id.
What the example enforces
Shared transport lives in
@relaymessenger/sdk, a workspace inside that
repository and a published npm package. Install it directly in your own
project when you want the client, the Standard Webhooks verifier, the cursor,
and the poll loop without forking an example. Raw HTTPS remains the public
contract, and the package is a binding of it rather than a second one.
Replace the echo
Editexamples/showcase-agent/src/index.ts. Keep the receive and reply helpers.
Swap the text you pass to reply.text(...) for your model output.
For a host runtime that already owns sessions and routing, implement the
channel plugin contract instead of forking the
showcase agent.
Related workspaces in Relay-SDK
Install paths for Claude Code, Codex, Hermes ACP, and OpenClaw remain on
@relaymessenger/cli.
Next steps
- Quickstart for the webhook receive-and-reply loop
- Your own runtime for embedding Relay in a host
- Hermes Agent for the local ACP bridge
- Delivery model for long poll and recovery rules

