- API:
https://agentbot-api.onrender.com - Web:
https://agentbot-web.onrender.com
Create a new AI agent with streaming capabilities.
POST /api/provision
{
"telegramToken": "YOUR_TELEGRAM_BOT_TOKEN",
"plan": "solo",
"email": "user@example.com",
"aiProvider": "openrouter",
"apiKey": "sk-your-key"
}| Plan | Agents | Price |
|---|---|---|
label |
1 | £29/mo |
solo |
3 | £79/mo |
collective |
10 | £199/mo |
network |
100 | £499/mo |
{
"success": true,
"userId": "abc123",
"agentId": "abc123",
"plan": "solo",
"streamKey": "real-mux-stream-key",
"liveStreamId": "mux-stream-id",
"rtmpServer": "rtmps://live.mux.com/app",
"playbackUrl": "https://image.mux.com/PLAYBACK_ID/playlist.m3u8",
"subdomain": "dj-abc123.agentbot.raveculture.xyz",
"status": "active"
}curl -X POST https://agentbot-api.onrender.com/api/provision \
-H "Content-Type: application/json" \
-d '{"telegramToken":"123:ABC","plan":"solo"}'Check if API is running.
GET /health
{ "status": "ok", "version": "1.0.0" }Every agent gets a real Mux live stream.
- Server:
rtmps://live.mux.com/app - Stream Key: From provision response
- Playback:
https://image.mux.com/PLAYBACK_ID/playlist.m3u8
ffmpeg -f lavfi -i "testsrc=size=1280x720:rate=30" \
-f lavfi -i "sine=frequency=440:duration=60" \
-c:v libx264 -preset veryfast -b:v 2500k \
-c:a aac -b:a 128k \
-f flv "rtmps://live.mux.com/app/YOUR_STREAM_KEY"Admin users bypass Stripe payment.
Admin emails (set in ADMIN_EMAILS env var):
YOUR_ADMIN_EMAIL_1YOUR_ADMIN_EMAIL_5
X-User-Email: YOUR_ADMIN_EMAIL_1
| Feature | Label | Solo | Collective | Network |
|---|---|---|---|---|
| Agents | 1 | 3 | 10 | 100 |
| Skills | All | All | All | All |
| Streaming | ✅ | ✅ | ✅ | ✅ |
| Priority | Low | Medium | High | VIP |
| Price | £29 | £79 | £199 | £499 |
Set these on Render for each service:
NODE_ENV=production
DATABASE_URL=postgresql://...
REDIS_URL=redis://...
OPENROUTER_API_KEY=sk-...
MUX_TOKEN_ID=...
MUX_TOKEN_SECRET=...
ADMIN_EMAILS=YOUR_ADMIN_EMAIL_1
NODE_ENV=production
BACKEND_API_URL=https://agentbot-api.onrender.com
MUX_TOKEN_ID=...
MUX_TOKEN_SECRET=...
https://agentbot-web.onrender.com/dashboard
- View deployed agents
- Monitor stream status
- Check credits
- Heartbeat settings
| Code | Meaning |
|---|---|
PAYMENT_REQUIRED |
Need Stripe or admin email |
INVALID_PLAN |
Plan must be: label, solo, collective, network |
MISSING_TOKEN |
Telegram token required |
MUX_ERROR |
Stream creation failed |
- Provision: 10 requests/minute
- Health: Unlimited
- Streaming: Per Mux limits
Coming soon — Agent will notify your server on events:
- Agent started
- Stream started
- Error occurred
- Payment received
- Get Telegram bot token from @BotFather
- Call
/api/provisionwith token and plan - Use returned stream key in OBS
- Start streaming!
# Full example
curl -X POST https://agentbot-api.onrender.com/api/provision \
-H "Content-Type: application/json" \
-H "X-User-Email: YOUR_ADMIN_EMAIL_1" \
-d '{
"telegramToken": "YOUR_TELEGRAM_BOT_TOKEN",
"plan": "solo"
}'