SU
Supabase
RequiredDatabase, channel snapshots and agent state
NEXT_PUBLIC_SUPABASE_URL + SERVICE_ROLEDatabase, channel snapshots and agent state
NEXT_PUBLIC_SUPABASE_URL + SERVICE_ROLERead-only channel and Analytics access
GOOGLE_CLIENT_ID / GOOGLE_CLIENT_SECRETTrend discovery via OAuth or API key
YOUTUBE_API_KEY (optional)Research, fact-checking and structured Story Agent
GEMINI_API_KEYPortrait stock-video search with source attribution
PEXELS_API_KEYAES-256-GCM encryption for OAuth secrets
TOKEN_ENCRYPTION_KEYTemporary single-admin protection before SaaS auth
DOUVI_ADMIN_KEY / ADMIN_SESSION_SECRETYouTube OAuth remains read-only. Story Agent consumes already fact-checked research, while Asset Director stores Pexels source/creator metadata alongside every candidate so the renderer can keep provenance intact.
Run migrations 001 → 002 → 003. Pexels is optional for build/runtime: without its key, Story Studio keeps AI image prompts as the fallback plan.