git clone https://github.com/Nextbasedev/super-proxy.git
cd super-proxy
cp .env.example .env
sed -i.bak "s/^SESSION_SECRET=.*/SESSION_SECRET=$(openssl rand -hex 32)/" .env
sed -i.bak "s/^DEV_ADMIN_KEY=.*/DEV_ADMIN_KEY=$(openssl rand -hex 32)/" .env
rm -f .env.bakThe values must be independent. Keep .env private: SESSION_SECRET signs
browser sessions, while DEV_ADMIN_KEY grants bootstrap administrator access.
With Node.js 20+:
npm ci
npm run build
npm startOr with Docker Compose:
docker compose up --build -dVerify readiness:
curl -fsS http://127.0.0.1:8080/health- Visit
http://127.0.0.1:8080/. - Expand Use dev admin key instead.
- Paste the
DEV_ADMIN_KEYvalue from.envand press Enter. - Open Identity, create a user, and issue that user an API token.
- Copy the displayed token immediately. The raw token is shown only once.
The dev key uses the x-admin-key request header. It does not create a browser
session and should not be shared with regular users.
export SUPER_PROXY_URL=http://127.0.0.1:8080
export SUPER_PROXY_API_KEY=sp_your_token_here
bash examples/basic-chat.shProvider requests require a corresponding upstream account or credential. Configure providers from the dashboard after bootstrap.
Compose persists the database in the super-proxy-data named volume, mounted
at /app/data for the unprivileged uid/gid 10001:10001 runtime user.
Stop the service without deleting data:
docker compose downDelete the service and its data only when intentional:
docker compose down --volumes