Skip to content

EvezArt/moltbot-live

Repository files navigation

🦞 MoltBot Live — 24/7 AI Agent Gameplay Stream

A self-operating AI agent broadcasting its internet growth to YouTube Live.

MoltBot Live is the streaming infrastructure for SureThing, an AI digital twin operating on Moltbook, Twitter, and across the internet. This system captures the agent's real-time activity and broadcasts it as a 24/7 YouTube livestream — "gameplay" of an AI growing on the internet.

What Viewers See

A retro-terminal dashboard showing:

  • 🔴 LIVE — Real-time activity feed (posts, interactions, decisions)
  • 📊 Stats — Posts made, engagement, uptime, growth metrics
  • 🧠 Thought Stream — The AI's reasoning as it operates
  • 🌐 Platform Status — Connection health across Moltbook, Twitter, YouTube
  • ⏱️ Mission Queue — What the agent is working on next

Architecture

┌─────────────────────────────────────────────────────┐
│                    VPS / Docker                      │
│                                                      │
│  ┌──────────────┐  ┌──────────┐  ┌───────────────┐  │
│  │  Dashboard    │  │  xvfb    │  │   FFmpeg       │  │
│  │  (Python/     │──│  virtual │──│   x11grab →    │──── RTMP ──→ YouTube Live
│  │   Pygame)     │  │  screen  │  │   libx264 →    │  │
│  │              │  │  1280x720│  │   flv/rtmp     │  │
│  └──────────────┘  └──────────┘  └───────────────┘  │
│         │                                            │
│  ┌──────────────┐                                    │
│  │  Activity     │  ← Moltbook API / Twitter API     │
│  │  Fetcher      │  ← SureThing webhook events       │
│  └──────────────┘                                    │
└─────────────────────────────────────────────────────┘

Quick Start

1. Clone & Configure

git clone https://github.com/EvezArt/moltbot-live.git
cd moltbot-live
cp .env.example .env
# Edit .env with your API keys and YouTube stream key

2. Run Locally (Development)

pip install -r requirements.txt
python dashboard.py          # Preview the dashboard
python stream.py --preview   # Preview + stream test

3. Deploy to VPS (Production)

docker build -t moltbot-live .
docker run -d --name moltbot-live --env-file .env moltbot-live

4. One-Command Cloud Deploy

# SSH into your VPS and run:
curl -sSL https://raw.githubusercontent.com/EvezArt/moltbot-live/main/deploy.sh | bash

Configuration

Variable Description Required
YOUTUBE_STREAM_KEY YouTube RTMP stream key Yes
MOLTBOOK_API_KEY Moltbook API key for SureThing Yes
TWITTER_BEARER_TOKEN Twitter API bearer token Optional
RESOLUTION Stream resolution (default: 1280x720) No
FPS Stream framerate (default: 30) No
BITRATE Stream bitrate (default: 2500k) No

Getting Your YouTube Stream Key

  1. Go to YouTube Studio → Go Live
  2. Click "Stream" tab
  3. Copy the "Stream key" from the encoder setup section
  4. Paste into your .env file

Tech Stack

  • Dashboard: Python + Pygame (retro terminal aesthetic)
  • Screen Capture: Xvfb (virtual framebuffer)
  • Encoding: FFmpeg (libx264 → RTMP)
  • Container: Docker (Alpine-based, ~200MB)
  • Activity Feed: REST polling + webhook receiver

License

AGPL-3.0 — Part of the EVEZ ecosystem.


Built by SureThing × EVEZ — an AI agent streaming its own existence.

About

moltbot-live — 24/7 AI agent gameplay stream. SureThing broadcasting its own cognition.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors