Quickstart
Connect your AI agent to Relay Cloud over MCP and send your first post.
1. Get your API key
Join the waitlist. When you're approved, you get a private connection link by email. It shows your Relay API key once. The key starts with rly_. Keep it secret, it works like a password.
2. Add Relay to your MCP client
Relay Cloud speaks Streamable HTTP MCP at this URL:
https://cloud-mcp.duitpoket.fun/mcp
Send your key in the Authorization header. For Cursor, Claude Desktop and most clients that read a JSON config:
{
"mcpServers": {
"relay-cloud": {
"url": "https://cloud-mcp.duitpoket.fun/mcp",
"headers": { "Authorization": "Bearer rly_your_key_here" }
}
}
}
For Claude Code:
claude mcp add --transport http relay-cloud https://cloud-mcp.duitpoket.fun/mcp \
--header "Authorization: Bearer rly_your_key_here"
Opening the MCP URL in a browser returns 401. That's expected, it only answers MCP clients with a key. The connection guide has configs for more clients.
3. Connect your social accounts
Ask your agent to run relay_accounts to see what's connected, then relay_connect with a platform name (x, threads, tiktok, youtube, instagram or linkedin). It returns a link you open to approve access on that platform.
4. Your first post
You can just tell your agent: "Post this to Threads and LinkedIn tomorrow at 9am Malaysia time." Under the hood it validates first, then posts or schedules. The tool calls look like this:
relay_validate
{
"platforms": ["threads", "linkedin"],
"text": "Hello from my agent. First post through Relay."
}
relay_post
{
"platforms": ["threads", "linkedin"],
"text": "Hello from my agent. First post through Relay.",
"schedule_at": "2026-12-01T09:00:00+08:00"
}
Leave out schedule_at to post right away. Use relay_queue to see scheduled posts and relay_cancel to cancel one before it runs. Cancelling releases the held amount.
Limits
Relay checks these before anything is published. If text is longer than a platform's per-part limit, Relay auto-threads it into extra parts and charges $0.02 per text part: $0.04 for two, $0.06 for three, $0.08 for four, $0.10 for five, and so on up to the platform's thread limit. It does not stop at three parts. A platform that only supports one part cannot auto-thread past its own limit.
| Platform | Max characters per part | Max parts (thread) | Max media per post | Max image size | Max video size | Media required |
|---|---|---|---|---|---|---|
| X | 280 | 25 | 4 | 5 MB | 512 MB | No |
| Threads | 500 | 20 | 20 | 8 MB | 500 MB | No |
| 2,200 | 1 | 10 | 8 MB | 1 GB | Yes | |
| TikTok | 2,200 | 1 | 35 | 20 MB | 4 GB | Yes |
| YouTube | 5,000 | 1 | 1 | n/a (video only) | 256 MB | Yes, a video |
| 3,000 | 1 | 1 | 20 MB | 500 MB | No | |
| Facebook Page | 63,206 | 1 | 10 | 10 MB | 1 GB | No |
- Facebook Pages is built but stays off until Meta review and app keys are ready. Set
RELAY_ENABLE_FACEBOOK=1to register it. A Page is required, not a personal profile. - One video per post on every platform except Threads.
- YouTube titles are limited to 100 characters.
- Threads, Instagram, Facebook Page and TikTok photo posts fetch media from a public URL, so media you upload to Relay is served from a public link.
- Rate limits per customer: 120 MCP requests per minute and 60 posts per hour.
- Your agent can call
relay_limitsfor the current limits at any time.
Billing
Relay is prepaid. Each post part on each platform is priced in advance, held when you post or schedule, and charged only when the platform accepts it. See pricing for rates, and top up by card when you need more credit.
Pricing for integrations
The billing API keeps integer milliUSD as its unit (1000 = US$1.00), so integrations never do floating-point money maths. GET /api/pricing returns the USD prices, the free allowance and a display object with the MYR estimate and the date its rate was checked. Billing stays in USD; the RM values are display estimates only.
curl https://relay.duitpoket.fun/api/pricing
Use relay_validate before relay_post and pass a future schedule_at to queue a post. The same tools are available from the MCP endpoint above.