youtube-automation-agent README

README проекта с github.com/darkzOGx/youtube-automation-agent. Одним файлом markdown: 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)

Ищем в базе…

Что это?AgentTube (youtube-automation-agent) — open-source ИИ-агент, который полностью ведёт YouTube-канал: изучает темы, пишет сценарии, генерирует озвучку и визуал, собирает видео, оптимизирует метаданные, проходит контрольные проверки, планирует, публикует и учится на аналитике.
Это облачный сервис или то, что я запускаю сам?Это self-hosted приложение на Node.js со своим локальным дашбордом, а не облачный SaaS — ваши учётные данные, медиа и данные канала остаются на вашей машине, пока он ведёт весь пайплайн.
Как его запустить?Пройдите встроенный Quick Start, который выбирает ИИ-провайдеров, проверяет учётные данные и ведёт через авторизацию YouTube; если вы уже знакомы со стеком, 'npm run setup' запускает более короткий классический сценарий, а .env.example описывает все настройки.
Что нужно, прежде чем его запустить?Node.js 18+, Google-аккаунт с учётными данными YouTube Data API и хотя бы один ключ ИИ-провайдера текста (например, Gemini или OpenAI). FFmpeg ставится автоматически через ffmpeg-static, а Python 3.9+ нужен только если подключать опциональную внешнюю копию DarkzSEO.
Может ли он опубликовать видео без предварительной проверки?Нет — публикация устроена по принципу fail-closed: отсутствующая, симулированная, устаревшая или провалившаяся озвучка блокирует одобрение, а неурегулированные фактические утверждения или неподтверждённые права на медиа также не дают запланировать или опубликовать продукт.
Где в итоге оказываются мои данные канала и медиа?Всё остаётся локально в вашем собственном self-hosted экземпляре — учётные данные, сгенерированные медиа и данные канала не отправляются на сторонний бэкенд проекта.
Какие ИИ-провайдеры поддерживаются для генерации текста и видео?Генерация текста работает с Gemini, OpenAI, OpenRouter, Kimi, MiMo, GLM или любым другим OpenAI-совместимым эндпоинтом. Видео может приходить из Seedance, MiniMax H3, Gemini Omni Flash, Kling, Wan или собираться локально через FFmpeg.
Что такое Scene Repair Studio?Она позволяет отредактировать озвучку или визуал одной сцены, изменить её порядок, заблокировать её, загрузить лицензионную замену или перегенерировать только её, не пересобирая всё видео; правка озвучки автоматически отменяет фактическую проверку этой сцены.
Он может автоматически превращать готовое видео в Shorts?Да — Shorts Repurposing Studio выбирает самодостаточные отрезки из таймлайна сцен одобренного видео и рендерит настоящие 9:16 MP4 с вшитыми субтитрами, переиспользуя существующую озвучку, так что по умолчанию не тратятся кредиты на изображения, видео или TTS.
Для чего используется DarkzSEO?Это встроенный аудитор находимости, который проверяет собранный контент-пакет по правилам GEO/AIO/AEO/веб-поиска и сохраняет результаты в SQLite для просмотра оператором; он работает без Python, если не указывать на отдельную внешнюю копию DarkzSEO.
Автор
darkzOGx
Размер
2.1 MB
Звёзды
5.3K
Возраст
1 г
Коммиты · 90 дней