Skip to content

What ownauth is

ownauth is an authentication backend and an admin console that you run yourself. It is not a service you sign up for, and your users never visit it.

There are two halves, and they live in different places:

Half Runs on Who touches it
The API — accounts, sessions, 2FA, passkeys, organizations, API keys, JWKS your server, your Postgres your application
The console — users, sessions, bans, audit trail, configuration your server you, the operator
The screens — sign in, sign up, profile, organization settings your app, installed from the registry your users

That split is the whole design. You get the ergonomics of a hosted auth product without handing anyone your user table.

  • No hosted anything. There is no ownauth cloud, no license check, no telemetry. If this repository disappeared, your users would still exist in your database.
  • No iframes, no redirects to a vendor domain. The screens are source files installed into your app, on your domain, in your styling.
  • No control plane. ownauth never holds another deployment’s credentials.
  • Docker and Docker Compose
  • A Postgres 16 database (the compose file brings one)
  • A hostname, if you want browsers to reach it
Terminal window
git clone https://github.com/TariqJandaly/ownauth.git
cd ownauth/docker
cp .env.example .env

Set three values in .env — BETTER_AUTH_SECRET, BASE_URL, POSTGRES_PASSWORD — then:

Terminal window
docker compose up -d

Open /setup, create the first administrator, and you have a working instance. The console is at /admin; the API is at /api/auth/*.

If you would rather verify than trust, bash scripts/cleanroom.sh clones the repository into /tmp, installs it against an empty database with a random password, and asserts the entire first run. It is the gate every release passes.