-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path.env.local.example
More file actions
147 lines (117 loc) · 5.06 KB
/
.env.local.example
File metadata and controls
147 lines (117 loc) · 5.06 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
# ===========================================
# CODEEX AI - Environment Variables Template
# ===========================================
# Copy this file to .env.local and fill in your actual values
# NEVER commit .env.local to git!
# ===========================================
# AI API KEYS (At least GROQ_API_KEY required)
# ===========================================
# Groq API (REQUIRED - Primary AI Provider)
# Get free key at: https://console.groq.com/keys
# Free tier: 14,400 requests/day
GROQ_API_KEY=gsk_your_groq_api_key_here
# Google AI API (OPTIONAL - Fallback Provider)
# Get free key at: https://aistudio.google.com/app/apikey
# Free tier: 60 requests/minute
GOOGLE_API_KEY=AIza_your_google_api_key_here
# Cerebras API (OPTIONAL - Fast Inference)
# Get key at: https://cloud.cerebras.ai/
CEREBRAS_API_KEY=csk_your_cerebras_api_key_here
# Hugging Face API (OPTIONAL - Open Source Models)
# Get free token at: https://huggingface.co/settings/tokens
HUGGINGFACE_API_KEY=hf_your_huggingface_token_here
# OpenRouter API (OPTIONAL - Free-tier models)
# Get key at: https://openrouter.ai/keys
OPENROUTER_API_KEY=sk-or-your_openrouter_api_key_here
# ===========================================
# FIREBASE CONFIGURATION (REQUIRED)
# ===========================================
# Get from: https://console.firebase.google.com/
# Project Settings > General > Your apps > Web app config
NEXT_PUBLIC_FIREBASE_API_KEY=AIza_your_firebase_api_key
NEXT_PUBLIC_FIREBASE_AUTH_DOMAIN=your-project.firebaseapp.com
NEXT_PUBLIC_FIREBASE_PROJECT_ID=your-project-id
NEXT_PUBLIC_FIREBASE_STORAGE_BUCKET=your-project.firebasestorage.app
NEXT_PUBLIC_FIREBASE_MESSAGING_SENDER_ID=123456789012
NEXT_PUBLIC_FIREBASE_APP_ID=1:123456789012:web:abcdef123456
NEXT_PUBLIC_FIREBASE_MEASUREMENT_ID=G-XXXXXXXXXX
# ===========================================
# APPLICATION CONFIGURATION
# ===========================================
# Local development URL
NEXT_PUBLIC_APP_URL=http://localhost:3000
# Production URL (for Netlify/Vercel)
# NEXT_PUBLIC_SITE_URL=https://soham-ai.vercel.app
# ===========================================
# FEATURE FLAGS (V3.3 Multi-Model Router)
# ===========================================
# Safety Guard System (Requirement 19.1, 19.2)
# Set to 'false' to disable safety checks (not recommended for production)
# Default: true (enabled)
ENABLE_SAFETY_GUARD=true
# Memory System (Requirement 19.3, 19.4)
# Set to 'true' to enable vector-based memory storage using Google embeddings
# Requires Firebase Firestore and GOOGLE_API_KEY to be configured
# When disabled, system operates without memory functionality
# Default: false (disabled)
ENABLE_MEMORY_SYSTEM=false
# ===========================================
# TOOL + MEMORY INTEGRATIONS (OPTIONAL)
# ===========================================
# News search (free tier)
GNEWS_API_KEY=your_gnews_api_key_here
# Sports cricket live scores (free tier)
CRICAPI_KEY=your_cricapi_key_here
# Finance stocks (free tier)
ALPHA_VANTAGE_API_KEY=your_alpha_vantage_key_here
# Upstash Vector (RAG memory)
UPSTASH_VECTOR_REST_URL=https://your-index.upstash.io
UPSTASH_VECTOR_REST_TOKEN=your_upstash_vector_token
# Supabase (cross-device chat history + long-term memory)
SUPABASE_URL=https://your-project.supabase.co
SUPABASE_SERVICE_ROLE_KEY=your_service_role_key
# Video Generation (Future feature)
# ENABLE_VIDEO_GENERATION=false
# Computer Use (Future feature)
# ENABLE_COMPUTER_USE=false
# ===========================================
# EMAIL SERVICE - EmailJS (OPTIONAL)
# ===========================================
# Get from: https://www.emailjs.com/
# Used for contact form and welcome emails
NEXT_PUBLIC_EMAILJS_SERVICE_ID=service_xxxxxxx
NEXT_PUBLIC_EMAILJS_TEMPLATE_ID=template_xxxxxxx
NEXT_PUBLIC_EMAILJS_WELCOME_TEMPLATE_ID=template_xxxxxxx
NEXT_PUBLIC_EMAILJS_USER_ID=user_xxxxxxxxxxxxxxxxxxxx
# ===========================================
# PYTHON TTS SERVER (OPTIONAL)
# ===========================================
# Set to false for local testing (uses browser TTS)
# Set to true if you have Python TTS server running
USE_PYTHON_TTS=false
PYTHON_TTS_SERVER_URL=http://localhost:8765/tts
# ===========================================
# GOOGLE ANALYTICS (OPTIONAL)
# ===========================================
# Get from: https://analytics.google.com/
NEXT_PUBLIC_GA_ID=G-XXXXXXXXXX
# ===========================================
# SECURITY NOTES
# ===========================================
# 1. Never commit .env.local to version control
# 2. Rotate API keys regularly
# 3. Use different keys for development and production
# 4. Set up Firebase Security Rules
# 5. Enable rate limiting in production
# 6. Monitor API usage and costs
# 7. Keep this file secure and backed up safely
# ===========================================
# QUICK START
# ===========================================
# 1. Copy this file: cp .env.local.example .env.local
# 2. Get Groq API key: https://console.groq.com/keys
# 3. Get Firebase config: https://console.firebase.google.com/
# 4. Fill in the values above
# 5. Run: npm run dev
# 6. Visit: http://localhost:3000
# 7. Check: http://localhost:3000/api/health