src/shared/config/env.schema.ts. Missing required fields prevent the server from booting
so we never run with half-configured dependencies.
Server & Runtime
Database (MongoDB)
Redis / Caching
URLs & Security
Auth0 (Identity)
AI Providers
OpenAI
Anthropic
Other AI Services
Vector Database (Pinecone)
Supermemory (Conversation Memory)
RAG Configuration
LangFuse (Observability)
Messaging (SMS/Email)
Exotel (OTP via SMS)
Twilio & SendGrid (Fallback)
Google Cloud Storage
Usage & Billing
Tips
- Keep secrets in
.env.development.local; Bun loads it automatically. - When switching Redis providers, only set the fields relevant to that provider to satisfy the schema refinements.
- If validation fails on boot, Bun logs every missing field—fix them before retrying.
- For
AI_PROVIDER=multi, both OpenAI and Anthropic keys are required.