A fully automated YouTube channel management system that creates, optimizes, and publishes content daily using AI agents. No coding required - just configure and let the AI agents handle your YouTube channel 24/7!
This system runs 24/7 to:
- π― Research trending topics in your niche
- βοΈ Write engaging video scripts automatically
- π¨ Generate eye-catching thumbnails
- π Optimize SEO for maximum reach
- π Upload and schedule videos
- π Analyze performance and improve over time
You do NOT need Claude to use this system! The YouTube Automation Agent is designed to work with multiple AI providers, giving you flexibility and cost control.
-
OpenAI (Recommended)
- GPT-4 for intelligent content generation
- DALL-E 3 for stunning thumbnails
- Whisper for speech processing
- Cost: ~$0.10-0.30 per video
- Best for: Professional creators wanting highest quality
-
Google Gemini (Budget-Friendly)
- Free tier: 60 requests/minute
- Can generate multiple videos daily at no cost
- Cost: FREE for most users
- Best for: Beginners and hobby creators
-
Custom AI Integration
- Support for Anthropic Claude (if you prefer)
- Local models via Ollama
- Any OpenAI-compatible API
// Content Strategy Agent
β Analyzes YouTube trends via API
β Identifies viral topics in your niche
β Plans content calendar automatically
// Script Writer Agent
β Writes engaging scripts with hooks
β Adds storytelling and call-to-actions
β Optimizes for watch time
// Thumbnail Designer Agent
β Generates eye-catching thumbnails
β A/B tests different designs
β Optimizes for click-through rate
// SEO Optimizer Agent
β Researches high-performing keywords
β Optimizes titles and descriptions
β Manages tags and metadata
// Publishing Agent
β Uploads videos automatically
β Schedules for optimal times
β Manages playlists and end screens
Component | Free Tier | Paid Usage |
---|---|---|
YouTube API | β 10,000 units/day | β Same |
OpenAI | β None | ~$0.20/video |
Google Gemini | β 60 req/min | $0.00035/1k chars |
Hosting | β Local PC | $5-20/month VPS |
Total Monthly | $0 | $6-50 |
- Local Computer: Run on your PC/Mac (free)
- Raspberry Pi: Low-power home automation (~$50 one-time)
- Cloud VPS: DigitalOcean, Linode ($5/month)
- Free Cloud: Railway, Render (with limitations)
- Serverless: Vercel, Netlify (pay-per-use)
- Node.js 18+ (Download here)
- Google Account (for YouTube API)
- AI Provider Account (choose one):
- OpenAI account (Sign up) OR
- Google AI Studio account (Sign up - FREE)
- 10 minutes for initial setup
-
Clone the repository
git clone https://github.com/darkzOGx/youtube-automation-agent.git cd youtube-automation-agent npm install
-
Configure your credentials
# Copy example files cp .env.example .env cp config/credentials.example.json config/credentials.json # Run interactive setup npm run setup
The setup wizard will help you:
- Get YouTube API credentials (step-by-step guide included)
- Choose and configure AI provider
- Set your channel preferences
- Configure automation schedule
-
Start the system
npm start
-
Access the dashboard Open http://localhost:3456 in your browser
- Educational Channels: Automate tutorial and explainer videos
- News Channels: Auto-generate daily news summaries
- Story Channels: Create animated story content
- Gaming Channels: Generate game guides and tips
- Tech Channels: Automate product reviews and comparisons
- Kids Content: Create educational kids videos
- Meditation/Relaxation: Generate ambient content
- Compilation Channels: Automate "Top 10" style videos
- Go to Google Cloud Console
- Click "Create Project" (name it "YouTube Automation")
- In the left menu, go to "APIs & Services" β "Library"
- Search for "YouTube Data API v3" and click "Enable"
- Go to "Credentials" β "Create Credentials" β "OAuth client ID"
- Choose "Desktop app" as application type
- Download the JSON file and save as
config/credentials.json
Visual Guide: YouTube API Setup Tutorial
- Visit OpenAI Platform
- Click "API Keys" in sidebar
- Click "Create new secret key"
- Copy key to
.env
file asOPENAI_API_KEY
- Add $5-10 credits to get started
Pricing: ~$0.01 per 1K tokens (approx 750 words)
- Visit Google AI Studio
- Click "Get API Key"
- Create API key for new or existing project
- Copy key to
.env
file asGEMINI_API_KEY
Pricing: FREE for 60 requests/minute, perfect for most users!
# Core Settings
NODE_ENV=production
PORT=3456
LOG_LEVEL=info
# AI Provider (choose one)
OPENAI_API_KEY=your-key-here
# OR
GEMINI_API_KEY=your-key-here
# YouTube Settings
YOUTUBE_REGION=US
DEFAULT_PRIVACY_STATUS=public
# Content Settings
CHANNEL_NAME=Your Channel Name
TARGET_AUDIENCE=Your target audience
POSTING_FREQUENCY=daily
After setup, here's how to generate your first video:
# Test content generation
npm run test
# Generate a single video manually
curl -X POST http://localhost:3456/generate \
-H "Content-Type: application/json" \
-d '{"topic": "Top 10 Life Hacks", "style": "listicle"}'
# Start full automation
npm start
Once configured, the system runs automatically:
- 6:00 AM: Generates new content (strategy, script, thumbnail, SEO)
- Every 15 minutes: Processes publishing queue
- 9:00 AM: Collects analytics data
- 10:00 PM: Runs optimization tasks
- Weekly: Strategy review and performance analysis
curl -X POST http://localhost:3456/generate \
-H "Content-Type: application/json" \
-d '{"topic": "Your Topic", "style": "tutorial"}'
curl http://localhost:3456/schedule
curl http://localhost:3456/analytics
To use Claude instead of OpenAI:
// utils/ai-service.js
class ClaudeAIService {
async generateContent(prompt) {
return await anthropic.complete({
model: 'claude-3-sonnet',
prompt: prompt,
max_tokens: 1000
});
}
}
// agents/content-strategy-agent.js
const contentTypes = {
'podcast': {
duration: '10-15 minutes',
style: 'conversational',
thumbnail: 'podcast-style'
},
// Add your custom type here
};
Content Strategy Agent
β
Script Writer Agent
β
Thumbnail Designer Agent β Production Management Agent
β β
SEO Optimizer Agent β Publishing & Scheduling Agent
β β
Analytics & Optimization Agent β YouTube Upload
youtube-automation-agent/
βββ agents/ # AI agent implementations
βββ config/ # Configuration files
βββ database/ # Database management
βββ data/ # Generated content and assets
βββ logs/ # Application logs
βββ schedules/ # Automation schedulers
βββ utils/ # Utility functions
βββ workflows/ # Content workflows
βββ uploads/ # Temporary upload files
- All API keys are stored locally in encrypted configuration
- No content is sent to external services except configured APIs
- Local database with automatic backups
- Rate limiting to respect API quotas
- Error logging without sensitive data exposure
- Trend Analysis: Real-time monitoring of trending topics
- Competitor Research: Automated analysis of successful channels
- Audience Insights: Performance-based audience targeting
- Seasonal Optimization: Content timing based on seasonal trends
- Thumbnail A/B Testing: Automatic testing of different designs
- Title Optimization: SEO-optimized titles with power words
- Publishing Time: Data-driven optimal scheduling
- Keyword Research: Performance-based keyword optimization
- Educational Channel: 50K subscribers in 3 months
- Story Channel: 1M+ views per month on autopilot
- News Channel: 24/7 automated news coverage
- Kids Channel: $5K/month ad revenue, fully automated
Q: Do I need coding knowledge? A: No! Just follow the setup wizard and you're ready to go.
Q: Can I use this for multiple channels? A: Yes! Run multiple instances with different configurations.
Q: Is this against YouTube ToS? A: No, as long as you create original content and follow YouTube guidelines.
Q: How much does it cost to run? A: Can be completely FREE with Gemini, or ~$10-50/month with OpenAI.
Q: Can I customize the content style? A: Yes! Full control over tone, style, topics, and format.
- Check your Google Cloud Console quotas
- Implement additional rate limiting if needed
- Consider upgrading your quota limits
- Verify AI service API keys and credits
- Check internet connectivity
- Review error logs in
logs/
directory
- Confirm YouTube OAuth tokens are valid
- Check video file sizes and formats
- Verify channel permissions
Enable detailed logging:
NODE_ENV=development DEBUG_MODE=true npm start
curl http://localhost:3456/health
- Fork the repository
- Create a feature branch
- Make your changes
- Add tests for new functionality
- Submit a pull request
git clone <your-fork>
cd youtube-automation-agent
npm install
npm run dev
This project is licensed under the MIT License - see the LICENSE file for details.
- OpenAI for GPT models
- Google for YouTube Data API and Gemini
- YouTube Creator Community for inspiration and feedback
- Issues: GitHub Issues
- Discussions: GitHub Discussions
- Wiki: Setup Guides & Tutorials
# Quick start commands
git clone https://github.com/darkzOGx/youtube-automation-agent.git
cd youtube-automation-agent
npm install
npm run setup
npm start
β Star this repository if it helps you automate your YouTube success!
π Watch this repo to get notified of new features and updates!
Built with β€οΈ by the community. Making YouTube automation accessible to everyone.