$selfhostrecipes.com

authentik vs Keycloak

Compared from each project's own documentation; every claim links to its source. We have not benchmarked either app, so this page makes no performance claims. Facts checked 2026-11-27.

AspectauthentikKeycloak
LicenceMIT (authentik/enterprise/ directory under a separate license)Apache-2.0
NeedsDocs: host with 2 CPU cores and 2 GB RAM; Compose setup generates a PostgreSQL password and secret keyProduction needs an external database installed in place of the default dev-file one

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]

Which to pick