Installation
Prerequisites
- Node.js 20+ (22 recommended)
- Docker (for the PostgreSQL + pgvector database) — or your own Postgres 16 with the
vectorextension - An AI provider API key (OpenAI, Anthropic or Google) to use the chat. Google Gemini has a free tier and is the default.
One-command setup (recommended)
npm run setup is idempotent and:
- Creates
.envfrom.env.exampleand generates aBETTER_AUTH_SECRET. - Starts the database container.
- Waits for it to be healthy.
- Applies migrations.
- Seeds the demo account.
Then start the app:
Open .
Manual setup
If you prefer to run the steps yourself:
Generate an auth secret for .env:
Verify it works
- Visit
/and click View live demo → you land on the dashboard as the demo user. - Or sign up at
/signupwith your own email. - Add an AI provider key to
.env(see ) to chat.
Troubleshooting
- Port 5432 already in use — a local Postgres is running. Set
DB_POSTGRES_PORTin.env(e.g.5433) and update the port inDATABASE_URL. npm run setupfails — make sure Docker Desktop is running.- Env validation error on boot — a required variable is missing; check
.envagainst .