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.
What it does not do
Section titled “What it does not do”- 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.
What you need
Section titled “What you need”- Docker and Docker Compose
- A Postgres 16 database (the compose file brings one)
- A hostname, if you want browsers to reach it
Five minutes, honestly
Section titled “Five minutes, honestly”git clone https://github.com/TariqJandaly/ownauth.gitcd ownauth/dockercp .env.example .envSet three values in .env — BETTER_AUTH_SECRET, BASE_URL, POSTGRES_PASSWORD — then:
docker compose up -dOpen /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.