Finish setup

A few settings are needed before the app can start.

  1. 1

    Create your settings file

    In the project folder, run:

    cp .env.example .env
  2. 2

    Fill in the settings below

    Open .env in a text editor and set each value listed under “Required”.

  3. 3

    Create the database tables

    With DATABASE_URL set, run:

    npx prisma migrate deploy
  4. 4

    Restart the app

    Stop it (Ctrl+C) and start it again. This page closes once everything is set.

    npm run build && npm start

Required

Database

Set DATABASE_URL to your PostgreSQL connection URL, then run `npx prisma migrate deploy` to create the tables.

Auth secret

Set BETTER_AUTH_SECRET. Type this command in your mac terminal. It should give you a key: openssl rand -base64 32

AI key encryption

Set AI_KEYS_ENCRYPTION_KEY — it encrypts the AI provider API keys your workspaces save and the secrets in portal settings. Generate one in your terminal with: openssl rand -base64 32 (keep it safe; changing it later invalidates saved keys).

0 of 3 complete