Installation Guide
This comprehensive guide covers everything you need to install, configure, and deploy the YouTube Automation Agent.Prerequisites
Node.js 18+
JavaScript runtime required for the application
Google Account
For YouTube Data API access
AI Provider Account
OpenAI or Google AI Studio account
10 Minutes
Initial setup and configuration time
System Requirements
- Minimum
- Recommended
- OS: Windows 10+, macOS 10.15+, Ubuntu 20.04+
- CPU: 2 cores
- RAM: 2 GB available
- Storage: 5 GB free space
- Network: Stable internet connection
Step 1: Install Node.js
1
Download Node.js
Visit nodejs.org and download the LTS version.
2
Verify Installation
Step 2: Clone Repository
Step 3: Install Dependencies
Install all required npm packages:Core Dependencies
Core Dependencies
AI Providers
AI Providers
Automation Tools
Automation Tools
Media Processing
Media Processing
Step 4: Configure API Credentials
YouTube Data API Setup
1
Create Google Cloud Project
- Navigate to Google Cloud Console
- Click “Select a project” → “New Project”
- Enter project name:
YouTube Automation Agent - Click “Create”
Project creation takes 10-30 seconds. Wait for the notification before proceeding.
2
Enable YouTube Data API v3
- In the left sidebar: “APIs & Services” → “Library”
- Search for:
YouTube Data API v3 - Click on the API in results
- Click “Enable” button
3
Create OAuth 2.0 Credentials
- Navigate to: “APIs & Services” → “Credentials”
- Click “Create Credentials” → “OAuth client ID”
- If prompted, configure OAuth consent screen:
- User Type: External
- App name:
YouTube Automation Agent - Support email: Your email
- Scopes: Add
youtube.upload,youtube.readonly
- Back to credentials, choose application type: Desktop app
- Name it:
YouTube Automation Desktop - Click “Create”
4
Download Credentials
- Click the download icon (⬇️) next to your new OAuth client
- Save the JSON file
- Rename to
credentials.json - Move to
config/credentials.jsonin your project:
AI Provider Setup
Choose one of the following AI providers:- OpenAI (Recommended)
- Google Gemini (FREE)
- Custom (Advanced)
OpenAI Setup
1
Create Account
Visit platform.openai.com/signup and create an account.
2
Generate API Key
- Go to API Keys
- Click “Create new secret key”
- Name it:
YouTube Automation - Copy the key (starts with
sk-proj-)
3
Add Credits
- Go to Billing
- Click “Add payment method”
- Add $5-10 to start (lasts 20-50 videos)
4
Configure in .env
- GPT-4: $0.01 per 1K tokens (~750 words)
- DALL-E 3: $0.040 per image (1024x1024)
- Total per video: ~$0.10-0.30
Step 5: Run Setup Wizard
The interactive setup wizard configures everything:Setup Wizard Flow
1
Create Directories
2
Initialize Database
3
Configure Credentials
Interactive prompts for:
- YouTube channel selection
- AI provider preference
- API keys validation
- Content preferences
- Posting schedule
4
Generate Environment File
5
Validate Setup
Step 6: Start the Application
Launch the automation agent:Deployment Options
Local Development
Run on your computer during development:Production Deployment
- PM2 (Recommended)
- Docker
- VPS (DigitalOcean/Linode)
Configuration Reference
Environment Variables
Application Settings
Application Settings
YouTube Settings
YouTube Settings
Content Settings
Content Settings
Automation Settings
Automation Settings
Verification
Confirm everything is working:1
Health Check
2
Test Content Generation
3
Check Logs
Next Steps
API Reference
Explore available API endpoints
Configuration
Advanced configuration options
Agents
Learn about each AI agent
Troubleshooting
Common issues and solutions
Installation Complete! Your YouTube Automation Agent is now running and will automatically generate and publish content according to your schedule.