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)是一个开源 AI 智能体,可以端到端地运营 YouTube 频道:它研究选题、撰写脚本、生成旁白和画面、组装视频、优化元数据、执行审核关卡、安排排期、发布,并从分析数据中学习。
这是云服务,还是需要我自己运行的东西?它是一个自带本地控制台的自托管 Node.js 应用,而不是云端 SaaS——在它驱动整个流程的同时,你的凭据、媒体和频道数据都保留在自己的机器上。
如何让它跑起来?按照应用内的快速上手引导操作,它会选择 AI 服务商、测试凭据并引导你完成 YouTube 授权;如果你已经熟悉这套技术栈,可以运行 npm run setup 走更简短的经典流程,.env.example 中记录了每一项设置。
运行之前我需要准备什么?需要 Node.js 18 或更高版本、一个配有 YouTube Data API 凭据的 Google 账号,以及至少一个 AI 文本服务商密钥(例如 Gemini 或 OpenAI)。FFmpeg 会通过 ffmpeg-static 自动安装,只有当你指向可选的外部 DarkzSEO 检出目录时才需要 Python 3.9 或更高版本。
它能在无人事先审核的情况下发布视频吗?不能——发布采用默认阻止机制:旁白缺失、属于模拟、过时或未通过都会阻止审批;未解决的事实性陈述或未确认的媒体版权也会阻止作品被排期或发布。
我的频道数据和媒体最终会到哪里?一切都保留在你自己的自托管实例本地——凭据、生成的媒体和频道数据不会被发送到该项目运营的第三方后端。
哪些 AI 服务商可以驱动文本和视频生成?文本生成支持 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 天