The project's README from github.com/darkzOGx/youtube-automation-agent. As one markdown file: README.md.
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.
.ass captions (kinetic-pop, karaoke-bold, clean-bottom, classic-srt) with active-word highlighting for Shorts and videos, paired with standard .srt tracks.zoompan Ken Burns motion and varied xfade transitions (VIDEO_MOTION_EFFECT=kenburns).PEXELS_API_KEY, PIXABAY_API_KEY) with automatic Evidence Desk license provenance.BGM_TRACK_PATH, BGM_VOLUME) with FFmpeg sidechaincompress auto-ducking under narration.npx CLI & Zero-Key SandboxOLLAMA_MODEL, OLLAMA_BASE_URL) and LM Studio / vLLM (LOCAL_LLM_BASE_URL) local LLMs plus zero-key local narration via Kokoro / OpenAI-compatible TTS (KOKORO_TTS_URL), Edge-TTS (EDGE_TTS_VOICE), and Piper (PIPER_MODEL_PATH).npm run demo — an isolated temporary SQLite sandbox pre-populated across every studio (publishing hard-blocked) so anyone can explore the dashboard in 5 seconds with zero API keys.Dockerfile, docker-compose.yml (with an optional --profile local Ollama service), render.yaml, and a full npx youtube-automation-agent CLI (create, demo, recipes, export-pack, receipt, mcp).Outlier radar view + /api/opportunities/*): detects competitor breakout videos (2.5x–10x above channel median), mines audience-requested themes, scores demand/fit/freshness/gap transparently without inventing missing signals, and feeds approved opportunities into Autonomous Operator planning./api/content/:id/localizations): translates titles, descriptions, tags, scripts, and captions into 10 languages (Spanish, Hindi, Portuguese, French, German, Arabic, Japanese, Korean, Indonesian, Italian), muxes standalone dubbed MP4s reusing original visuals at zero extra video spend, enforces separate per-language approval, publishes localized metadata & captions via YouTube APIs, and generates a YouTube Studio multi-audio handoff checklist.mcp/server.js) and reusable agent skill (skills/youtube-automation-agent/SKILL.md) for Claude Code, Cursor, Windsurf, and Antigravity (and fixed the legacy agents/content-strategy-agent-mcp.js entrypoint)./api/ingest-url, --from-url) with SSRF protection and automatic Evidence Desk provenance, plus 5 one-click Viral Channel Recipes (faceless-history, ai-tech-digest, storytime-shorts, github-repo-explainer, quiz-did-you-know).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.sharp to 0.34 for WebAssembly support on Android/Termux.
![]() |
![]() |
|---|---|
| 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.
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).
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.
When you're ready to publish directly to YouTube, pull live retention curves, or scan competitor outliers:
config/credentials.json.Error 403: access_denied. While the app is in Testing mode, Google expires the sign-in after 7 days.npm run walkthrough to finish OAuth sign-in, then open Production readiness → Run verified check before activating scheduled publishing.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."
| 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 |
Each item links to its walkthrough in the feature guide.
Plan
Produce
.ass captions (kinetic-pop, karaoke-bold), FFmpeg Ken Burns motion + transitions, free Pexels/Pixabay B-roll with license provenance, and sidechaincompress auto-ducked music beds.Review & Distribute
Learn
Engage
One key—or zero keys with Ollama + Kokoro/Edge-TTS—gets you started. Pick a text provider in npm run walkthrough or .env:
llama3.3, qwen2.5:14b, gemma3, 100% local), or LM Studio / vLLM (LOCAL_LLM_BASE_URL).gpt-4o-mini-tts), Gemini (gemini-3.8-flash-tts), Kokoro / Local OpenAI-compatible TTS (KOKORO_TTS_URL), Edge-TTS (EDGE_TTS_VOICE), or Piper (PIPER_MODEL_PATH). A video without working narration can't be approved.PEXELS_API_KEY / PIXABAY_API_KEY).| 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.
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.
POST /generate with x-api-key.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.
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.
@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.
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: