Skip to main content

Environment Variables

All environment variables for Project Nexus. Copy .env.example to .env.local at the project root to get started.

cp .env.example .env.local

Web Dashboard (apps/web)​

VariableRequiredDescription
NEXT_PUBLIC_SUPABASE_URL✅Your Supabase project URL (e.g., https://[PROJECT_ID].supabase.co).
NEXT_PUBLIC_SUPABASE_ANON_KEY✅The Supabase anonymous (public) key from your project's API settings.
NEXT_PUBLIC_SITE_URL✅The base URL of the Next.js app. http://localhost:3000 for local dev; your domain in production.

Browser Extension (apps/extension)​

VariableRequiredDescription
PLASMO_PUBLIC_SUPABASE_URL✅Same as NEXT_PUBLIC_SUPABASE_URL. Plasmo requires the PLASMO_PUBLIC_ prefix for client-accessible env vars.
PLASMO_PUBLIC_SUPABASE_ANON_KEY✅Same as NEXT_PUBLIC_SUPABASE_ANON_KEY.
PLASMO_PUBLIC_SITE_URL✅Same as NEXT_PUBLIC_SITE_URL.

Server-Side AI Keys (Optional)​

These are not needed for the standard BYOK free tier, where all AI calls happen client-side using keys stored in browser local storage.

They are only required if you are building server-side AI features (e.g., a managed hosting tier where the server routes AI requests).

VariableDescription
OPENAI_API_KEYOpenAI API key for server-side calls.
ANTHROPIC_API_KEYAnthropic API key for server-side calls.
GOOGLE_GENERATIVE_AI_API_KEYGoogle Gemini API key for server-side calls.

BYOK Keys (Not in .env)​

For the standard free tier, AI provider keys are stored in browser local storage (not in .env files):

Storage KeyProvider
openai-keyOpenAI
anthropic-keyAnthropic
gemini-keyGoogle Gemini
active-providerSelected provider (openai / anthropic / gemini)
sb-*-auth-tokenSupabase session (managed automatically by Supabase SDK)

These are set via the extension's Options page. See BYOK Setup.