youtube-automation-agent README

The project's README from github.com/darkzOGx/youtube-automation-agent. As one markdown file: README.md.

YouTube Automation Agent

The open-source AI agent that runs a YouTube channel end to end, with you approving every video before it goes out.

It spots outlier topics, ingests URLs or GitHub repos, writes scripts, generates narration and visuals, assembles real MP4s with kinetic captions and motion, dubs into 10 languages, exports multi-platform distribution packs, schedules approved videos, and learns from analytics and comments. It runs on your own machine with your own API keys—or 100% locally with Ollama and local TTS.

CI MIT License Node.js 18.17+ Releases

What's New

Latest Patch Notes

Previous release notes (v2.12.0)
  • Latest models across every provider: Upgraded defaults and selectors to Gemini 4 Hydrogen (free tier) / 4 Neon / 4 Carbon, GPT-6.2 Sol / 6.2 Astra / 6.1 Terra, Claude Fable 5.2 & Sonnet 5.5 (via OpenRouter), Kimi K3.1 Pro, MiMo V2.6, GLM-5.3, Eleven v4 TTS, GPT Image 2.6 Flare/Sunburst, Gemini Omni 1.2 Flash (up to 15s), Kling 4.0 (up to 30s), and Alibaba Wan 3.0 (up to 30s).
  • Two new text providers & model overrides: Added DeepSeek (DEEPSEEK_API_KEY) and MiniMax M3 text (MINIMAX_TEXT_API_KEY, kept separate from MINIMAX_API_KEY for H3 video), plus .env model overrides (AI_MODEL, GEMINI_MODEL, OPENAI_MODEL, OPENAI_IMAGE_MODEL, WAN_VIDEO_MODEL) and a fix so OpenAI credentials saved by the walkthrough load properly at runtime.
  • Cleaner slideshow & thumbnail rendering: Removed hard-coded placeholder text from chapter slides and end cards, improved generated image visibility, and kept the designer's real thumbnail whenever AI thumbnail generation falls back.
  • Dashboard & platform polish: Removed ambient dashboard motion, fixed doubled mobile/rail nav labels, read the live app version from the server, and upgraded sharp to 0.34 for WebAssembly support on Android/Termux.
  • Full details: See the changelog and AI providers guide.

The operator console: videos waiting for your decision, a generation job in progress, and the publishing calendar

Content review: quality checks, metadata, and the approve, save, reject, and regenerate actions for one video Autonomous operator: the channel mandate, the current run, and the editorial plan the agent decided to make
Content review: quality checks and approval for one video Autonomous operator: your mandate and the agent's plan

Screenshots use sample data so every panel is populated. Regenerate them with npm run docs:screenshots.

Why it's different

Quick start (60 seconds — no YouTube OAuth required to build your first MP4)

Option A: Explore the interactive dashboard in 5 seconds (zero API keys)

git clone https://github.com/darkzOGx/youtube-automation-agent.git
cd youtube-automation-agent
npm install
npm run demo

Opens http://localhost:3456 on an isolated temporary sandbox database so you can click through Review Studio, Outlier Radar, YouTube Feed Simulator, Run Receipts, Multi-Platform Export Packs, and Localization & Dubbing Studio immediately (publishing is disabled in demo mode).

Option B: Generate real MP4s locally (Step 1 — no Google Cloud Console required)

You only need Node.js 18.17+ and any one text provider—including 100% free local Ollama (OLLAMA_MODEL=llama3.3) or free-tier Google Gemini (GEMINI_API_KEY):

git clone https://github.com/darkzOGx/youtube-automation-agent.git
cd youtube-automation-agent
npm install
npx playwright install chromium   # renders local motion videos; on Linux add --with-deps
npm run walkthrough               # pick Gemini, Ollama, OpenAI, etc. — skip YouTube for now!
npm start

Or run straight from the CLI or Docker:

# CLI one-liner (topic, niche recipe, or any GitHub repo / blog URL)
npx youtube-automation-agent create "Why the Concorde failed" --short --recipe faceless-history
npx youtube-automation-agent create --from-url https://github.com/darkzOGx/youtube-automation-agent --short

# Docker (Node + Chromium + FFmpeg pre-baked; add `--profile local` to bundle Ollama)
docker compose up -d

Then open http://localhost:3456. Videos save locally to data/videos/, Shorts to data/shorts/, and multi-platform export packs to data/exports/. FFmpeg is installed automatically with npm install via ffmpeg-static.

Step 2 (Optional): Connect YouTube for auto-scheduling & analytics

When you're ready to publish directly to YouTube, pull live retention curves, or scan competitor outliers:

  1. Create a project in Google Cloud Console.
  2. Enable YouTube Data API v3, and YouTube Analytics API for retention and outcome data.
  3. Create an OAuth 2.0 client of type Desktop app (not Web application) and save the JSON as config/credentials.json.
  4. Under Google Auth Platform → Audience, add the Google account that owns your channel as a test user. Otherwise sign-in fails with Error 403: access_denied. While the app is in Testing mode, Google expires the sign-in after 7 days.
  5. Run npm run walkthrough to finish OAuth sign-in, then open Production readiness → Run verified check before activating scheduled publishing.

Use from Claude Code, Cursor, Windsurf, or Antigravity (MCP Server)

Add the built-in MCP server (mcp/server.js, skill in skills/youtube-automation-agent/SKILL.md) to control your channel pipeline directly from chat:

{
  "mcpServers": {
    "youtube-automation-agent": {
      "command": "node",
      "args": ["mcp/server.js"]
    }
  }
}

Ask your coding agent: "Ingest this GitHub release URL, build a video draft + 3 kinetic Shorts, and export a TikTok/Reels/X distribution pack."

How it works

Stage What the agent does What you control
Research Finds topics and builds a content strategy Niche, audience, blocked topics
Script Writes the hook, narrative, CTA, and metadata Voice, format, length, brand direction
Production Generates narration and visuals, then assembles a real MP4 Provider choice and media fallbacks
Review Runs quality checks and opens the video for review Facts, media rights, edits, approval
Publish Schedules and uploads approved content Privacy, timing, final decision
Learn Captures 24-hour and 7-day evidence, measures your chosen outcome, then proposes the next move Choose the KPI and approve or reject each lesson

Features

Each item links to its walkthrough in the feature guide.

Plan

Produce

Review & Distribute

Learn

Engage

AI providers

One key—or zero keys with Ollama + Kokoro/Edge-TTS—gets you started. Pick a text provider in npm run walkthrough or .env:

Starter stack Keys needed Best for
100% Local / $0 forever None (OLLAMA_MODEL + KOKORO_TTS_URL or EDGE_TTS_VOICE + optional free PEXELS_API_KEY) Running a complete pipeline privately on your own hardware with zero API bills
Free cloud tier GEMINI_API_KEY + local Ken Burns / stock B-roll Testing end-to-end with Gemini 4 Hydrogen scripts and Gemini 3.8 Flash TTS narration
Balanced polish Any text provider + ELEVENLABS_API_KEY + OPENAI_API_KEY (or billed Gemini) Studio-grade Eleven v4 narration and GPT Image 2.6 / Gemini 3.1 AI visuals
Cinematic hybrid Above + Seedance 2.5, MiniMax H3, Gemini Omni 1.2 Flash, Kling 4.0, or Wan 3.0 Generated AI video clips for the hook and key beats with a VIDEO_MAX_GENERATED_SECONDS cap

Exact API model IDs, env vars, clip limits, and .env essentials are in the providers guide.

Automation

The scheduler starts with npm start and uses the server's local time.

When What runs
Daily at 06:00 Content generation, following the active channel strategy's cadence
Every 15 minutes Publishing queue
Daily at 09:00 Analytics collection
Daily at 22:00 Optimization
Every 4 hours Comment sync and growth-experiment refresh
Sundays at 08:00 Weekly strategy review

Details are in the feature guide.

Docs

The three problems people hit most:

Problem Fix
Missing credentials for: an AI provider Configure any one text provider (including local Ollama) with npm run walkthrough, or explore with npm run demo. OpenAI isn't required.
Google sign-in shows Error 403: access_denied Add your Google account as a test user under Google Auth Platform → Audience.
No video is produced, or it's marked simulated Read the ✗ lines in the startup capability check, and make sure you ran npx playwright install chromium.

Questions and setup help go in Discussions.

Contributing

See CONTRIBUTING.md for ground rules, project structure, and how to add a provider. Short version: one focused concern per PR, no lockfile churn, lint and tests must pass. Issues are for bugs.

git clone <your-fork>
cd youtube-automation-agent
npm install
npm run lint   # CI runs this on every PR
npm test

Made something real with it? Share verified output in examples.

Built by

@darkzOGx, a solo builder shipping AI automation and developer tools. Find me on X and laderalabs.io. If YouTube Automation Agent saves you time, a star helps it reach more developers.

License

MIT. See LICENSE. Model and API acknowledgments are in the providers guide.

This tool is for legitimate content creation. Comply with YouTube's Terms of Service and Community Guidelines.


More from darkzOGx:

youtube-automation-agent (darkzOGx/youtube-automation-agent)

Searching Database…

What is this?AgentTube (youtube-automation-agent) is an open-source AI agent that runs a YouTube channel end to end: it researches topics, writes scripts, generates narration and visuals, assembles videos, optimizes metadata, runs review gates, schedules, publishes, and learns from analytics.
Is this a cloud service or something I run myself?It is a self-hosted Node.js application with its own local dashboard, not a cloud SaaS — your credentials, media, and channel data stay on your own machine while it drives the whole pipeline.
How do I get it running?Follow the in-app Quick Start walkthrough, which picks AI providers, tests credentials, and guides YouTube authorization; if you already know the stack, 'npm run setup' runs a shorter classic flow and .env.example documents every setting.
What do I need before I can run it?Node.js 18+, a Google account with YouTube Data API credentials, and at least one AI text provider key (e.g. Gemini or OpenAI). FFmpeg installs automatically via ffmpeg-static, and Python 3.9+ is only needed if you point to an optional external DarkzSEO checkout.
Can it publish a video without anyone checking it first?No — publishing is fail-closed: missing, simulated, stale, or failed narration blocks approval, and unresolved factual claims or unconfirmed media rights also stop a production from being scheduled or published.
Where does my channel data and media end up?Everything stays local to your own self-hosted instance — credentials, generated media, and channel data are not sent to a third-party backend run by the project.
What AI providers can power the text and video generation?Text generation works with Gemini, OpenAI, OpenRouter, Kimi, MiMo, GLM, or any other OpenAI-compatible endpoint. Video can come from Seedance, MiniMax H3, Gemini Omni Flash, Kling, Wan, or be assembled locally with FFmpeg.
What is the Scene Repair Studio?It lets you edit a single scene's narration or visuals, reorder it, lock it, upload a licensed replacement asset, or regenerate it alone instead of rebuilding the whole video; editing narration automatically invalidates that scene's factual review.
Can it turn a finished video into Shorts automatically?Yes — the Shorts Repurposing Studio picks self-contained windows from an approved video's scene timeline and renders real 9:16 MP4s with burned captions, reusing the existing narration so no extra image, video, or TTS credits are spent by default.
What is DarkzSEO used for?It is a bundled discoverability auditor that checks an assembled content package against GEO/AIO/AEO/web-search rules and stores the findings in SQLite for operator review; it works without Python unless you point it at a separate external DarkzSEO checkout.
Creator
darkzOGx
Size
2.1 MB
Stars
5.3K
Age
1y
Commits · 90 Days