Skip to content

Self-host authentik

updated Jul 2026prices checked · Jul 2026Install verified on Ubuntu 26.04 · Aug 2026 · how we test
We earn commissions when you shop through the links below. Full disclosure →

An open-source identity provider supporting SAML, OAuth2/OIDC, and LDAP — a flexible, self-hostable alternative to Auth0, Okta, and Azure AD with a visual flow-based login builder.

Auth0 / yr$420
Self-hosted / yr~$283
You keep$137/yr
Pocket the difference — spin it up on a cheap VPS in minutes.Start free on Kamatera → (opens in new tab)

Key facts

LicenseMIT
StackPython, Go, TypeScript
Min RAM2048 MB
Official imageyes
Measured idle RAM516 MB
Difficulty
Our recommendation

Pick authentik when you want a modern, full identity provider you can shape to almost any login flow — SAML, OAuth2/OIDC, LDAP, SCIM, and a built-in proxy for apps that have no auth of their own. It's the self-hoster's favourite full IdP; if you only need to gate a few existing apps behind SSO and 2FA, Authelia is far less to run.

Follow the authentik deploy guide →

What you need

  • Any VPS with at least 2048 MB of RAM
  • A domain you control — most self-hosted setups need HTTPS in front of them
  • About an afternoon — budget time for troubleshooting
Where to host itaffiliate disclosure
Hetzner Cloudrun it on
From $23.59/mo · 2 vCPU / 4 GB / 80 GB · EU + US
Get Hetzner Cloud (opens in new tab)
Kamaterafree trial
From $4/mo · 1 vCPU / 1 GB / 20 GB · US + EU + Asia
Start free on Kamatera → (opens in new tab)
DigitalOceanalso works on
From $6/mo · 1 vCPU / 1 GB / 25 GB · US + EU + Asia
Deploy on DigitalOcean → (opens in new tab)

Paid link — we earn a commission if you shop through it.

Install

Run these commands on your server:

# authentik — official compose.yml + generated secrets
wget https://docs.goauthentik.io/compose.yml
echo "PG_PASS=$(openssl rand -base64 36 | tr -d '\n')" >> .env
echo "AUTHENTIK_SECRET_KEY=$(openssl rand -base64 60 | tr -d '\n')" >> .env
docker compose up -d  #  →  http://SERVER_IP:9000

What you take on

authentik is powerful because it's a real identity platform — which is exactly why it demands care:

non-negotiableIt's open-core. The core is MIT and generous, but some features sit in an enterprise tier — check the split matches what you need before you build on it.
non-negotiablePostgres is required. It's not a single container — a server, a worker, and PostgreSQL (Redis was dropped in 2025.10); give it a proper database and back it up — it holds every user and credential.
non-negotiableIt's security-critical. An IdP is the key to every app behind it — keep it patched, restrict admin access, and treat its upgrades as maintenance windows, not afterthoughts.

An alternative to

Head-to-head

More in SSO & Identity

We use analytics cookies (Google Analytics, PostHog) to see which guides are useful. No ad networks, no cross-site tracking. See our privacy policy.