$selfhostrecipes.com

Self-hosted alternatives to Auth0 and Okta

Self-hosted identity providers for single sign-on.

Facts below come from each project's own documentation; every claim links to the page it came from. We have not benchmarked these apps. Facts checked 2026-11-27. Features you rely on may differ, so check the project docs before migrating.

authentik

authentik is an open-source Identity Provider (IdP) for modern SSO supporting SAML, OAuth2/OIDC, LDAP, RADIUS and more.

Licence
MIT (authentik/enterprise/ directory under a separate license)
Needs
Docs: host with 2 CPU cores and 2 GB RAM; Compose setup generates a PostgreSQL password and secret key

Documented features

  • Supports SAML, OAuth2/OIDC, LDAP and RADIUS [source]
  • Install via Docker Compose, Kubernetes Helm chart, AWS CloudFormation or DigitalOcean [source]
  • Designed for self-hosting from small labs to large production clusters [source]

What to know / what you give up

  • An enterprise offering exists; code under authentik/enterprise/ has a separate license [source]
  • Docker Compose is described as for test setups and small-scale production [source]

Keycloak

Open Source Identity and Access Management: add authentication to applications and secure services with minimum effort.

Licence
Apache-2.0
Needs
Production needs an external database installed in place of the default dev-file one

Documented features

  • Provides user federation, strong authentication, user management and fine-grained authorization [source]
  • Run from a downloaded distribution or the quay.io/keycloak/keycloak Docker image [source]
  • A realm is equivalent to a tenant, isolating groups of applications and users [source]

What to know / what you give up

  • Default dev-file database is for development only and must be replaced before production [source]
  • The quick start command (start-dev) creates an initial admin user admin/admin [source]

What you give up by self-hosting

Head-to-head: authentik vs Keycloak