Skip to main content

Backend (Convex)

These go in packages/backend/.env.local:

Core

Embeddings Service

Authentication (OAuth)

OTP via Twilio (Optional)

Email via Resend (Optional)

Billing via Polar (Optional)

Frontend (Dashboard)

These go in apps/dashboard/.env:

Embeddings Service

These go in apps/embeddings/.env:

Model Options

Example Complete Setup

packages/backend/.env.local:
apps/dashboard/.env:

Security Notes

Never commit .env files to version control. Add .env to your .gitignore.
  • Use strong, random values for secrets
  • Rotate keys periodically
  • Use different values for development and production
  • Consider using a secrets manager in production