Quick Start
Make sure you have the prerequisites
You need:
- Node.js 20.9+
- pnpm as your package manager
- A PostgreSQL database (local or hosted — see below)
Run the bootstrap wizard
pnpm install, walks you through setting your env vars, runs pnpm db:migrate as soon as your DATABASE_URL is confirmed, and then saves the rest of your config.Start the dev server
Database Setup
Supabase PostgreSQL is the recommended default for both local dev and production. It’s free to start and works great with this stack.
Database Workflow
Your day-to-day database commands:- Schema source of truth:
lib/db/schema/* - Migration history:
drizzle/*
What You Need for Each Feature
Not every feature works with zero config. Here’s what different features need:Core (always needed)
Core (always needed)
DATABASE_URL— Your PostgreSQL connection stringBETTER_AUTH_SECRET— For session encryption- At least one LLM provider key (OpenAI, Anthropic, Google, etc.)
Chat with PDFs / Document RAG
Chat with PDFs / Document RAG
- Storage provider config (for file uploads)
OPENAI_API_KEY(for embeddings)- A Postgres host that supports
pgvector
Voice Studio
Voice Studio
ELEVENLABS_API_TOKEN- Storage provider config (generated audio is persisted)
Video Studio
Video Studio
REPLICATE_API_TOKEN- Storage provider config (source images and final videos are persisted)
Image Studio
Image Studio
- Storage provider config (generated images are persisted)
REPLICATE_API_TOKENfor Replicate-backed modelsOPENAI_API_KEYfor GPT Image
Analytics
Analytics
- PostHog, Plausible, or DataFast credentials
Payments
Payments
- Polar, Stripe, or LemonSqueezy keys and webhook secrets
The Local-First Reality
“The app boots locally” does not mean “every feature works locally.” Many features depend on third-party APIs, so you’ll need the right provider keys for whatever you’re testing.
- Next.js dev server
- Your PostgreSQL database (local or hosted)
- All UI and routing
- LLM providers (OpenAI, Anthropic, Google, etc.)
- Storage (for file uploads)
- Voice, video, and some image generation
- Email sending
- Payment processing
- Analytics tracking

