{"full_name":"darkzOGx/youtube-automation-agent","owner":"darkzOGx","name":"youtube-automation-agent","shard":"1","url":"https://github.com/darkzOGx/youtube-automation-agent","description":"🎬 Open-source, self-hosted AI agent that runs a YouTube channel end to end: researches topics, writes scripts, generates narration, visuals and video, optimizes SEO, and publishes after your approval, then learns from analytics. Works with Gemini, OpenAI, OpenRouter, DeepSeek and more.","homepage":"https://github.com/darkzOGx/youtube-automation-agent#readme","topics":["ai-agents","automation","content-automation","content-creation","content-strategy","google-gemini","javascript","nodejs","openai","seo-optimization","social-media-automation","thumbnail-generator","video-generation","youtube-api","youtube-automation"],"tag_pages":["ai-agents","automation","content-creation","javascript","nodejs","openai","video-generation"],"language":"JavaScript","license":"MIT","avatar":"https://avatars.githubusercontent.com/u/128010917?u=2470514469e882508caa6eae57ba700fbba1b032&v=4","created_at":"2025-08-14T19:35:56Z","pushed_at":"2026-10-27T00:50:41Z","metrics":{"stars":5223,"forks":1665,"watchers":78,"issues":33,"prs":44,"releases":5,"issues_open":1,"issues_closed":32,"prs_open":24,"prs_closed":10,"prs_merged":10,"discussions":14},"growth":{"day":{"stars":19,"forks":3,"base_day":"2026-11-15"}},"history":{"dates":["2026-11-11","2026-11-12","2026-11-13","2026-11-14","2026-11-15","2026-11-16"],"stars":[5143,5164,5175,5190,5204,5223],"forks":[1644,1652,1654,1659,1662,1665],"watchers":[76,77,77,78,78,78],"issues_open":[1,1,1,1,1,1],"prs_open":[23,24,24,24,24,24]},"boards":{},"same_owner":[],"issues":[{"number":92,"title":"Arara sobrevoando a Floresta","comments":0,"created_at":"2026-11-08T16:40:27Z"}],"discussions":[{"number":94,"title":"Question / Feature Request: How to completely disable automatic local caption generation and burn-in?","comments":1,"category":"Q&A","created_at":"2026-11-09T20:58:54Z"},{"number":93,"title":"Slideshow video is always simulated: chromium_headless_shell never finishes unpacking on Windows","comments":1,"category":"Q&A","created_at":"2026-11-09T03:19:50Z"},{"number":89,"title":"How to Solve \"npx Playwrite install\" problem","comments":0,"category":"Ideas","created_at":"2026-10-31T00:44:14Z"},{"number":87,"title":"Would multi-channel support fit the project direction?","comments":0,"category":"Ideas","created_at":"2026-10-27T08:00:50Z"},{"number":83,"title":"100% free youtube automation no API is paid version.","comments":2,"category":"Ideas","created_at":"2026-10-25T06:20:28Z"},{"number":75,"title":"Cheap video models","comments":0,"category":"General","created_at":"2026-10-17T22:20:00Z"},{"number":74,"title":"Error loading sharp module on Android","comments":2,"category":"Q&A","created_at":"2026-10-16T17:41:43Z"},{"number":73,"title":"Light Blue Screen Layer on VDO","comments":1,"category":"General","created_at":"2026-10-15T13:45:56Z"}],"latest_release":{"name":"v2.11.0 — Whole-channel analytics, clearer failures, safer defaults","tag":"v2.11.0","published_at":"2026-10-14T03:34:15Z","body":"## 📈 New: whole-channel stats in Analytics\n\nAnalytics used to show only videos that AgentTube had analyzed itself, so an established channel could read as **0**. A new **Channel snapshot** panel now reads straight from YouTube:\n\n- **Lifetime:** subscribers, views and videos, including videos published outside AgentTube\n- **Last 28 days:** views, watch hours, subscribers gained and lost, and net change (YouTube Analytics lags about two days)\n- **No fake zeroes:** if the YouTube Analytics API isn't enabled for your Google Cloud project, the panel says so and links straight to the page that turns it on. Hidden subscriber counts show as hidden, not 0.\n\nIt loads when you open Analytics, caches results for about 3 minutes, and has its own **Refresh** button.\n\n## 🐛 Fixed\n\n- **Readiness check failed on the default Gemini model** (#63). Thinking models like `gemini-3.7-flash` and `gemini-3.1-pro-preview` spent the 16-token test budget on reasoning and returned nothing, and the failed check then blocked publishing. The check now leaves room for thinking. Any Gemini call that runs out of tokens before writing text is retried once with a bigger budget, and the error no longer blames your API key.\n- **Image generation failed with no reason** (#65). The default `.env` sets `NODE_ENV=production`, and that mode hid the error, so logs showed `Visual asset generation failed:` with nothing after it. Every error line now shows the cause and a concrete fix, for example: `Gemini image generation (gemini-3.1-flash-image) failed [429 RESOURCE_EXHAUSTED]. Fix: this key has no quota … turn on billing for the Google Cloud project that owns this API key`. Invalid keys, unavailable models, region limits and OpenAI organization verification are covered too.\n- **One broken image provider no longer hides a working one** (#65). If OpenAI image generation fails and a Gemini key is configured, Gemini is tried next, and the reverse. Placeholder visuals are only used when every provider fails.\n- **Looped video clips are capped in FFmpeg** (#66). A short provider clip looped to fill its slot in the timeline is now stopped once the slot is full, so FFmpeg no longer keeps decoding it.\n- **Reliability fixes from September 21:** DarkzSEO works without Python, regenerated narration keeps correct timing, CTA metadata and placeholders stay out of speech, configured visual styles are respected, YouTube OAuth uses the exact loopback redirect, and a missing `strategyContext` no longer crashes generation.\n\n## 🗓️ Scheduling controls\n\nReview Studio can now **reschedule** a production, **publish it now**, or **delete its schedule** without deleting the generated content.\n\n## 🔒 Safer by default\n\n- **The dashboard listens on `127.0.0.1` only** (#66). Generation, approval and publishing routes are open when `API_KEY` is unset, so the server no longer accepts connections from your network unless you ask it to.\n- **Credentials and OAuth tokens are owner-only.** `config/credentials.json` and `config/tokens.json` are written with `0600` permissions, and files from older versions are tightened on the next save.\n\n## Upgrading\n\n```bash\ngit pull && npm install\n```\n\n**If you open the dashboard from another device** (another computer, a phone, a VPS), add this to `.env`:\n\n```\nHOST=0.0.0.0\nAPI_KEY=some-long-random-string\n```\n\nAgentTube prints a warning at startup if `HOST` exposes the dashboard without `API_KEY`. Nothing changes if you only use it on the same machine.\n\n**Tests:** 48/48 passing.\n\n**Full changelog:** [`CHANGELOG.md`](https://github.com/darkzOGx/youtube-automation-agent/blob/master/CHANGELOG.md)\n","is_prerelease":false},"readme":true,"readme_zh":false,"news":[],"stale":false,"snapshot_at":"2026-11-16T09:23:14Z","history_start":"2026-09-06"}