Setup
Configuration
Complete guide to environment variables and configuration settings for the NotebookLLM frontend.
Overview
The frontend uses environment variables to configure API endpoints, authentication providers, and feature flags. Create a .env.local file in the frontend directory.
Required Variables
Supabase
| Variable | Description |
|---|---|
NEXT_PUBLIC_SUPABASE_URL | Your Supabase project URL (e.g., https://xxx.supabase.co) |
NEXT_PUBLIC_SUPABASE_ANON_KEY | Supabase anon key (public, safe to expose) |
API Backend
| Variable | Description |
|---|---|
NEXT_PUBLIC_API_URL | Backend API URL (default: http://localhost:8000) |
Optional Variables
Authentication
| Variable | Default | Description |
|---|---|---|
NEXT_PUBLIC_LOGIN_PAGE | false | Show login page before app |
NEXT_PUBLIC_ALLOW_SIGNUP | true | Allow new user registration |
Features
| Variable | Default | Description |
|---|---|---|
NEXT_PUBLIC_GOOGLE_DRIVE_ENABLED | false | Enable Google Drive integration |
NEXT_PUBLIC_NOTE_TAKING_ENABLED | true | Enable note-taking feature |
NEXT_PUBLIC_ASK_ENABLED | true | Enable ask/chat feature |
NEXT_PUBLIC_STUDIO_ENABLED | true | Enable studio content generation |
UI/UX
| Variable | Default | Description |
|---|---|---|
NEXT_PUBLIC_APP_NAME | NotebookLLM | Application name displayed in UI |
NEXT_PUBLIC_APP_URL | http://localhost:3000 | Production URL for OAuth redirects |
NEXT_PUBLIC_SHOW_BRANDING | true | Show NotebookLLM branding |
Example Configuration
Development (.env.local)
# Supabase (Required) NEXT_PUBLIC_SUPABASE_URL=http://localhost:54321 NEXT_PUBLIC_SUPABASE_ANON_KEY=your-anon-key # Backend API NEXT_PUBLIC_API_URL=http://localhost:8000 # Features NEXT_PUBLIC_GOOGLE_DRIVE_ENABLED=false NEXT_PUBLIC_NOTE_TAKING_ENABLED=true NEXT_PUBLIC_ASK_ENABLED=true NEXT_PUBLIC_STUDIO_ENABLED=true
Production (.env.production)
# Supabase (Required) NEXT_PUBLIC_SUPABASE_URL=https://your-project.supabase.co NEXT_PUBLIC_SUPABASE_ANON_KEY=your-anon-key # Backend API NEXT_PUBLIC_API_URL=https://api.yourdomain.com # Features NEXT_PUBLIC_GOOGLE_DRIVE_ENABLED=true NEXT_PUBLIC_NOTE_TAKING_ENABLED=true NEXT_PUBLIC_ASK_ENABLED=true NEXT_PUBLIC_STUDIO_ENABLED=true # App NEXT_PUBLIC_APP_NAME=NotebookLLM NEXT_PUBLIC_APP_URL=https://app.yourdomain.com NEXT_PUBLIC_LOGIN_PAGE=false NEXT_PUBLIC_ALLOW_SIGNUP=true
Backend Configuration
The frontend also needs certain backend environment variables to be configured. See the backend configuration docs for the complete list.
Important Backend Variables
DATABASE_URL- PostgreSQL connection stringSUPABASE_URL&SUPABASE_SERVICE_ROLE_KEY- SupabaseQDRANT_HOST&QDRANT_API_KEY- Vector databaseGEMINI_API_KEY- Google Gemini APICOHERE_API_KEY- Cohere for reranking
AI Provider Configuration
Configure AI providers for the backend. At minimum, you need one LLM provider.
| Provider | Variable |
|---|---|
| Google Gemini | GEMINI_API_KEY |
| OpenAI | OPENAI_API_KEY |
| Groq | GROQ_API_KEY |
| Cohere (Reranking) | COHERE_API_KEY |