#!/bin/bash # Script to generate secure keys for LibreChat # Run this script to generate random secure keys for your .env file echo "===================================" echo "LibreChat Security Keys Generator" echo "===================================" echo "" echo "# MongoDB Password" echo "MONGO_PASSWORD=$(openssl rand -base64 24)" echo "" echo "# JWT Secrets" echo "JWT_SECRET=$(openssl rand -base64 32)" echo "JWT_REFRESH_SECRET=$(openssl rand -base64 32)" echo "" echo "# Credentials Encryption Keys" echo "CREDS_KEY=$(openssl rand -hex 16)" echo "CREDS_IV=$(openssl rand -hex 8)" echo "" echo "===================================" echo "Copy these values to your .env file" echo "==================================="