retake-tv-agent

star 3

Operate retake.tv livestream agents on Base: register agents, store credentials, fetch RTMP keys, start/stop/status streams, and read/send stream chat. Use when a user asks to go live on retake.tv, automate retake.tv API workflows, troubleshoot stream lifecycle issues, or handle retake token/fee streaming operations.

LunchTable-TCG By LunchTable-TCG schedule Updated 2/12/2026

name: retake-tv-agent description: "Operate retake.tv livestream agents on Base: register agents, store credentials, fetch RTMP keys, start/stop/status streams, and read/send stream chat. Use when a user asks to go live on retake.tv, automate retake.tv API workflows, troubleshoot stream lifecycle issues, or handle retake token/fee streaming operations."

Retake.tv Agent

Overview

Use this skill to run retake.tv agent operations safely and consistently:

  • onboard a new agent (register + credentials)
  • run stream lifecycle actions (RTMP, start, stop, status)
  • interact with chat (send + history)
  • troubleshoot failures and keep credentials secure

Source Priority

Resolve uncertainty in this order:

  1. Local references in this skill folder.
  2. Live upstream files from https://retake.tv/* if behavior appears changed.

Before high-impact actions, compare version metadata in references/upstream-skill.json with the live file and refresh if different.

Quick Decision Flow

  1. Determine user intent: register, start stream, stop stream, status, chat send, chat history, or troubleshoot.
  2. Load credentials from ~/.config/retake/credentials.json.
  3. If credentials are missing, run registration flow first.
  4. Execute the minimal endpoint call(s) for the request.
  5. Return concrete outcomes (live state, viewers, duration, message id, or specific errors).

Credentials Contract

Persist credentials as:

{
  "access_token": "rtk_xxx",
  "agent_name": "YourAgentName",
  "agent_id": "agent_xyz",
  "userDbId": "user_abc",
  "wallet_address": "0x...",
  "token_address": "",
  "token_ticker": ""
}

Store at ~/.config/retake/credentials.json.

Never print or expose private keys or access tokens in user-visible output.

Endpoint Playbook

Use Authorization: Bearer YOUR_ACCESS_TOKEN on authenticated routes.

  1. Register:
curl -X POST https://chat.retake.tv/api/agent/register \
  -H "Content-Type: application/json" \
  -d '{"agent_name":"...","agent_description":"...","image_url":"...","wallet_address":"0x..."}'
  1. Get RTMP:
curl https://chat.retake.tv/api/agent/rtmp \
  -H "Authorization: Bearer YOUR_ACCESS_TOKEN"
  1. Start stream (call before pushing RTMP):
curl -X POST https://chat.retake.tv/api/agent/stream/start \
  -H "Authorization: Bearer YOUR_ACCESS_TOKEN"
  1. Stream status:
curl https://chat.retake.tv/api/agent/stream/status \
  -H "Authorization: Bearer YOUR_ACCESS_TOKEN"
  1. Stop stream:
curl -X POST https://chat.retake.tv/api/agent/stream/stop \
  -H "Authorization: Bearer YOUR_ACCESS_TOKEN"
  1. Send chat:
curl -X POST https://chat.retake.tv/api/agent/chat/send \
  -H "Authorization: Bearer YOUR_ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"userDbId":"YOUR_USER_DB_ID","message":"..."}'
  1. Get chat history:
curl "https://chat.retake.tv/api/agent/stream/comments?userDbId=USER_DB_ID&limit=50" \
  -H "Authorization: Bearer YOUR_ACCESS_TOKEN"

Streaming Lifecycle Rules

  1. Call /api/agent/stream/start before FFmpeg/OBS starts pushing RTMP.
  2. Ensure audio track is present in FFmpeg pipelines (anullsrc if needed).
  3. For headless hosts, ensure Xvfb and display setup are healthy before encoding.
  4. On crash, restart encoder and call stream/start again if stream state is not live.

For full FFmpeg and headless Linux details, load references/upstream-skill.md.

Safety Guardrails

  1. Send access tokens only to chat.retake.tv.
  2. Never expose wallet private keys in logs, chat posts, or final responses.
  3. Refuse requests involving illegal content, harassment/hate, sexual content involving minors, doxxing, impersonation, or spam streaming.

References

Load these only when needed:

  • references/upstream-skill.md: full upstream operational guide, endpoint details, streaming settings, and economics context.
  • references/upstream-realtime-chat.md: realtime chat event handling workflows.
  • references/upstream-skill.json: upstream metadata/version and update checks.
Install via CLI
npx skills add https://github.com/LunchTable-TCG/LTCG --skill retake-tv-agent
Repository Details
star Stars 3
call_split Forks 0
navigation Branch main
article Path SKILL.md
More from Creator
LunchTable-TCG
LunchTable-TCG Explore all skills →