.env file at the root of your project or passed in at container runtime.
Quick Start
Copy the example file and fill in your values:Environment Variable Reference
Core Configuration
The environment the application is running in.Options:
development, test, productionRequired: No (defaults to development)Docker Configuration
Port to expose the container on. Only used for Docker deployments.Required: NoExample:
3000Configuration by Category
Environment variables are organized into the following categories:Authentication
Configure authentication providers and settings
Database
Configure PostgreSQL database connection
AI Providers
Configure OpenAI-compatible AI providers
Configure email service for notifications
Blob Storage
Configure file upload and storage
Validation
All environment variables are validated at runtime using Zod schemas defined insrc/env/server.ts. If required variables are missing or invalid, the application will fail to start with a clear error message.
Validation Behavior
- Development: All environment variables are validated on application start
- Production: Environment variables are validated unless
CI=trueorDOCKER=trueis set - Empty strings: Automatically converted to
undefinedfor cleaner validation
Security Best Practices
Generating Secure Secrets
Generate a secure random secret forAUTH_SECRET: