Documentation

Get Started

hRAG is self-hosted and open source. You own the data, the infrastructure, and the intelligence pipeline.

Quick Start (Local)

01

Clone the repository

git clone https://github.com/smicapplab/hRAG.git
cd hRAG/
02

Install dependencies

npm install
03

Configure environment

cp .env.example .env
# Set HRAG_MASTER_PASSPHRASE and DATABASE_URL
04

Run migrations

npm run hrag:update
05

Start the Control Room

npm run dev
# Open http://localhost:5173

Environment Variables

VariableRequiredDescription
HRAG_MASTER_PASSPHRASEAlwaysAES-GCM key derivation passphrase. Node enters LOCKED mode without it.
DATABASE_URLAlwayssqlite://./data.db or postgresql://user:pass@host/db
S3_ENDPOINTSelf-hostedGarage or MinIO endpoint, e.g. http://localhost:3900
S3_ACCESS_KEYSelf-hostedS3 access key ID
S3_SECRET_KEYSelf-hostedS3 secret access key
HRAG_PRIMARYEnterpriseSet to true on the designated primary node for vector writes
REDIS_URLEnterpriseRedis connection string for BullMQ ingestion queue
NODE_ENVProductionSet to production to enable strict security mode