Skip to main content
Use the repository’s .env.example as the source of truth for local setup. This page summarizes the variables operators most often need to understand.
Secrets such as provider API keys, auth tokens, signing keys, and encryption keys must be configured only in backend or deployment secret stores. Do not expose them through VITE_ variables.

Shared app URLs and secrets

VariableUsed byNotes
APP_BASE_URLConvexPublic web app URL used for redirects such as Google Calendar OAuth.
SITE_URLConvexPublic web app URL used by auth and billing links.
CONVEX_URLServer/runtimeConvex deployment URL.
CONVEX_SITE_URLServer/runtimeConvex HTTP actions URL.
VOICE_GATEWAY_BASE_URLConvex, voice gatewayPublic HTTPS URL for the voice gateway.
INTERNAL_SERVICE_TOKENConvex, voice gatewayShared secret for internal HTTP calls between the voice gateway and Convex.
SESSION_ENCRYPTION_KEYConvexRequired for encrypted Google Calendar token storage.
DEPLOYMENT_MODEConvex, voice gatewayDeployment mode label used by runtime and telemetry.

Web dashboard build variables

VariableNotes
VITE_CONVEX_URLRequired by the React dashboard.
VITE_CONVEX_SITE_URLUsed for HTTP endpoints and downloads.
VITE_APP_NAMEDisplay name; defaults to LobbyStack in .env.example.
VITE_DEPLOYMENT_MODEClient-side deployment mode label.
VITE_POSTHOG_KEY, VITE_POSTHOG_HOST, VITE_POSTHOG_UI_HOSTOptional web analytics settings.

Voice gateway

VariableNotes
PORTPort the voice gateway listens on. Defaults to 3001.
OPENAI_API_KEYRequired for live OpenAI Realtime voice calls.
OPENAI_REALTIME_MODELDefaults to gpt-realtime.
OPENAI_REALTIME_VOICEDefaults to marin.
OPENAI_TRANSCRIPTION_MODELDefaults to gpt-4o-mini-transcribe.
Optional OpenAI cost fallback variables exist in .env.example for telemetry when automatic model pricing is unavailable.

Twilio

VariableNotes
TWILIO_ACCOUNT_SIDTwilio account SID.
TWILIO_AUTH_TOKENTwilio auth token.
TWILIO_VERIFY_SERVICE_SIDRequired for onboarding phone verification.
TWILIO_ALERT_SMS_FROMShared hosted alert SMS sender or messaging service SID.
TWILIO_API_KEY, TWILIO_API_SECRET, TWILIO_MESSAGING_SERVICE_SIDPresent in .env.example for Twilio features, but not required by every deployment path.

Google Calendar

VariableNotes
GOOGLE_CLIENT_IDGoogle OAuth client ID.
GOOGLE_CLIENT_SECRETGoogle OAuth client secret.
GOOGLE_REDIRECT_URIOptional if CONVEX_SITE_URL can derive /integrations/google/callback.
Google Calendar token storage also requires SESSION_ENCRYPTION_KEY.

Knowledge and AI text providers

VariableNotes
FIRECRAWL_API_KEYEnables website import.
GOOGLE_GENERATIVE_AI_API_KEYEnables Gemini text and embeddings.
GEMINI_TEXT_MODELDefaults to gemini-3.1-flash-lite-preview.
GEMINI_EMBEDDING_MODELDefaults to gemini-embedding-001.

Billing and SMS compliance

VariableNotes
POLAR_SERVERproduction or sandbox.
POLAR_ORGANIZATION_TOKENRequired for Polar API calls.
POLAR_WEBHOOK_SECRETUsed to verify Polar webhooks.
POLAR_PRO_PRODUCT_IDEnables Pro checkout.
POLAR_AI_SMS_ADDON_PRODUCT_IDAI SMS recurring add-on product.
POLAR_AI_SMS_SETUP_PRODUCT_IDAI SMS setup fee product.
TWILIO_PRIMARY_CUSTOMER_PROFILE_SIDRequired for hosted 10DLC registration.
TWILIO_A2P_STATUS_EMAILRequired for hosted 10DLC registration callbacks.

Email

VariableNotes
RESEND_API_KEYSends password reset and email-change emails.
EMAIL_FROM_ADDRESSVerified sender address used by auth emails.

Telemetry

VariableNotes
POSTHOG_KEY, POSTHOG_HOSTBackend telemetry.
POSTHOG_PRIVACY_MODEPrivacy-mode toggle in .env.example.
UNIT_ECONOMICS_MONTHLY_CONVEX_COST_USD, UNIT_ECONOMICS_MONTHLY_FLY_COST_USDOptional unit-economics rollup inputs.