JMAI OPS
First-run setup

Finish configuring JMAI OPS

The app needs its Supabase project and encryption keys before it can run.

Copy .env.example to .env.local and fill in the values below.
  1. Create a Supabase project

    Copy the project URL, anon key and service-role key into NEXT_PUBLIC_SUPABASE_URL, NEXT_PUBLIC_SUPABASE_ANON_KEY and SUPABASE_SERVICE_ROLE_KEY.

  2. Generate the crypto keys

    Run `npm run gen:keys` and paste the output into ENCRYPTION_KEY and TOKEN_HASH_SECRET.

  3. Apply the migrations

    Run `npx supabase link` then `npm run db:push`, and enable the Customize Access Token hook in Authentication → Hooks.

Full instructions, including the seed script for a first super admin, are in the project README.