selfhost.directory

The index of self-hostable projects — ranked, categorized and served with live updates.
Own your data and stop giving it to big tech.

stack-auth logo

Self-host stack-auth

dashboard-v1.0.135

Open-source user infrastructure: auth, teams, billing

BetaOpen CoreOther
docker run -d --name hexclave-postgres --network hexclave -e POSTGRES_USER=postgres -e POSTGRES_PASSWORD=password -e POSTGRES_DB=stackframe -p 5432:5432 postgres:latest
Updatedlast week
LanguageTypescript
Setup difficultyAdvanced
Stars
6 887
Ports
8101 (Admin dashboard), 8102 (API backend used by the dashboard and your applications)
Requires
ClickHouse, Cron scheduler, PostgreSQL, Reverse proxy / load balancer, SMTP email provider
Docker
stackauth/server
Authentication app screen of the Hexclave dashboard

What is stack-auth?

stack-auth alternatives

Should you self-host stack-auth?

stack-auth scores 66/100 on selfhost.directory (how scoring works) and ranks #9 of 40 in Authentication. It has 6 887 GitHub stars, +27 in the last 30 days.

It shipped 91 stable releases in the past year. The latest, dashboard-v1.0.135, came out on 30 October 2026. New versions land roughly every 1 days.

Setup is advanced: plan for several services and some ongoing maintenance. An official Docker image is available. It is Other-licensed and written mostly in Typescript.

Its closest alternative on selfhost.directory is keycloak (86/100, 37 754 stars). It scores higher overall, so compare the two before you pick. See stack-auth vs keycloak side by side.

Features

  • Admin Dashboard
  • API Key Management
  • CLI
  • Encrypted secret storage for end users
  • Fraud protection
  • Launch checklist
  • Passwordless and social authentication
  • Payments and subscriptions
  • Product Analytics
  • REST API
  • Role-based Access Control
  • SDKs for JavaScript frameworks
  • Teams and workspaces
  • Transactional and marketing email
  • Webhooks

stack-auth README

Hexclave

Hexclave

The user infrastructure platform.

Hexclave handles everything around your users: authentication, teams, payments, emails, analytics, and much more. Get started with our AI prompt below.

Website · Docs · Dashboard · Discord

License SDKs Deploy


Where Hexclave fits in the infrastructure stack

How to install stack-auth

Install stack-auth with Docker

Environment variables
NEXT_PUBLIC_STACK_API_URL, NEXT_PUBLIC_STACK_DASHBOARD_URL, HEXCLAVE_TRUSTED_PROXY, STACK_DATABASE_CONNECTION_STRING, STACK_SERVER_SECRET, CRON_SECRET, STACK_CLICKHOUSE_URL
docker network create hexclave

docker run -d \
  --name hexclave-postgres \
  --network hexclave \
  -e POSTGRES_USER=postgres \
  -e POSTGRES_PASSWORD=password \
  -e POSTGRES_DB=stackframe \
  -p 5432:5432 \
  postgres:latest

docker run -d \
  --name hexclave-clickhouse \
  --network hexclave \
  -e CLICKHOUSE_DB=analytics \
  -e CLICKHOUSE_USER=stackframe \
  -e CLICKHOUSE_PASSWORD=password \
  -e CLICKHOUSE_DEFAULT_ACCESS_MANAGEMENT=1 \
  -p 8123:8123 \
  clickhouse/clickhouse-server:25.10
docker run -d \
  --name hexclave \
  --network hexclave \
  --env-file hexclave.env \
  -p 8101:8101 \
  -p 8102:8102 \
  stackauth/server:latest

Create the env file from the server environment template, then put both published ports behind an HTTPS reverse proxy and run a cron scheduler against the internal endpoints.

How to configure stack-auth

  • NEXT_PUBLIC_STACK_API_URLPublic, browser-reachable URL of the self-hosted API backend.
  • NEXT_PUBLIC_STACK_DASHBOARD_URLPublic URL of the self-hosted dashboard.
  • STACK_DATABASE_CONNECTION_STRINGPostgres connection string the server reads its database URL from.
  • STACK_SERVER_SECRETStable 32-byte base64url secret; also used to derive internal project keys.
  • CRON_SECRETBearer token that authenticates internal maintenance/cron requests.

stack-auth releases & version history

@ Every self-hosted release, weekly

One Monday email with the week's stable releases across the directory.

More in Authentication

Rate this project

Click to rate — no account needed.

0 comments

Posting as guest
Loading comments…