.env file in the project root.
Setup
Required Variables
These variables must be set for the system to function:OpenAI Configuration
Required for content generation, DALL-E image creation, and text-to-speech features.
Application Settings
Control the core behavior of the application:Node Environment
Available Values
Available Values
development- Enables verbose logging and debug featuresproduction- Optimized for deploymenttest- For running tests
Server Port
3456
Logging Level
Available Levels
Available Levels
error- Only errorswarn- Warnings and errorsinfo- General information (recommended)debug- Detailed debugging informationverbose- Everything including API calls
Channel Settings
Configure your YouTube channel identity:YouTube Settings
Control YouTube-specific behavior:Region
Common Region Codes
Common Region Codes
US- United StatesGB- United KingdomCA- CanadaAU- AustraliaIN- IndiaDE- GermanyFR- FranceJP- Japan
Default Privacy Status
- public
- unlisted
- private
Videos are visible to everyone and appear in search results and recommendations.
Content Settings
Control how content is processed and formatted:Content Processing
| Variable | Type | Default | Description |
|---|---|---|---|
AUTO_SHORTEN_CONTENT | boolean | true | Automatically trim content to optimal length |
AUTO_ADD_BACKLINKS | boolean | true | Add channel links in video descriptions |
PRESERVE_FORMATTING | boolean | true | Maintain original text formatting |
Image Processing
| Variable | Type | Default | Description |
|---|---|---|---|
AUTO_RESIZE_IMAGES | boolean | true | Automatically resize images to optimal dimensions |
MAX_IMAGE_WIDTH | number | 1280 | Maximum image width in pixels |
MAX_IMAGE_HEIGHT | number | 720 | Maximum image height in pixels |
IMAGE_QUALITY | number | 90 | JPEG quality (1-100) |
Rate Limiting
Prevent API quota exhaustion:| Variable | Type | Default | Description |
|---|---|---|---|
GLOBAL_RATE_LIMIT_PER_HOUR | number | 50 | Maximum API requests per hour |
DEFAULT_DELAY_BETWEEN_POSTS | number | 60000 | Delay between operations in milliseconds |
Text-to-Speech Settings
Available Azure Voices
Available Azure Voices
Female Voices:
en-US-JennyNeural- Friendly, professionalen-US-AriaNeural- Clear, expressiveen-US-AmberNeural- Warm, conversational
en-US-GuyNeural- Professional, authoritativeen-US-DavisNeural- Clear, trustworthyen-US-TonyNeural- News-style delivery
Security
Analytics & Monitoring
| Variable | Type | Default | Description |
|---|---|---|---|
ENABLE_ANALYTICS | boolean | true | Track video performance metrics |
ANALYTICS_DB_PATH | string | ./data/analytics.db | SQLite database location |
File Upload Settings
| Variable | Type | Default | Description |
|---|---|---|---|
MAX_FILE_SIZE | number | 52428800 | Maximum upload size in bytes (50MB) |
UPLOAD_PATH | string | ./uploads | Directory for uploaded files |
YouTube supports videos up to 256GB, but initial uploads are limited to 15 minutes (or 128GB for verified accounts).
Error Handling
| Variable | Type | Default | Description |
|---|---|---|---|
RETRY_ATTEMPTS | number | 3 | Number of retry attempts for failed operations |
RETRY_DELAY | number | 5000 | Delay between retries in milliseconds |
Automation Settings
These are generated by the setup script but can be manually configured:- Content Automation
- Publishing
- Optimization
DAILY_CONTENT_ENABLEDEnable daily content generation pipeline.CONTENT_BUFFER_DAYSNumber of days of content to keep in the buffer (queue).MAX_DAILY_POSTSMaximum number of videos to publish per day.
Notification Settings
Debug Settings
| Variable | Type | Default | Description |
|---|---|---|---|
DEBUG_MODE | boolean | false | Enable detailed debugging |
VERBOSE_LOGGING | boolean | false | Log all API requests/responses |
SAVE_SCREENSHOTS | boolean | false | Save screenshots during video generation |
SCREENSHOT_PATH | string | ./debug/screenshots | Screenshot storage location |
Optional API Keys
These can be set as environment variables instead of incredentials.json:
Example Complete Configuration
Next Steps
AI Providers
Configure OpenAI, Gemini, and other AI services
YouTube Setup
Complete YouTube API configuration and authentication