Keycloak Ops
Flat isometric illustration of a pink pillar on a glowing octagon pad with a padlock and a floating key, cubes and cylinders linked on a purple slab.
comparisons

Authelia vs authentik vs Keycloak: Self-Hosted SSO in 2026

Authelia 4.39, authentik 2026.8 and Keycloak 26.8 compared from their docs: OIDC, SAML, LDAP, forward auth, license and host size.

By Keycloak Ops Editorial · ·Updated · 7 min read

Authelia, authentik and Keycloak come in three different shapes. Keycloak is open source identity and access management with OpenID Connect, OAuth 2.0 and SAML, LDAP and Active Directory federation, and isolated realms. authentik offers OIDC and SAML providers, plus outposts for forward auth and an LDAP interface. Authelia is “a companion of reverse proxies like Traefik”. Our view of the fit: Keycloak for federation or separate user populations, authentik for a mix of modern and older apps, Authelia where one proxy already fronts everything.

Evidence note: this comparison draws on each project’s documentation and its GitHub release and license pages, checked on 19 November 2026. None of the three was deployed or benchmarked for it.

For a two-way look, see authentik vs Keycloak. Our self-hosted single-sign-on guides connect this choice with realm design and reverse-proxy configuration.

What Each One Actually Is

Keycloak says it “provides support for OpenID Connect, OAuth 2.0, and SAML”, has “built-in support to connect to existing LDAP or Active Directory servers”, and brokers to “OpenID Connect or SAML 2.0 IdPs” (keycloak.org). Users, credentials, roles and groups live in realms, and the Server Administration Guide says “Realms are isolated from one another and can only manage and authenticate the users that they control.” It needs a relational database to “store user, client, and realm data”, and its dev-file database “is not suitable for production use-cases” (database guide). The concepts are covered in Keycloak realms, clients and token design fundamentals.

authentik covers single sign-on with its own components. Its architecture page describes a server with two sub-components. Its core “handles most of authentik’s logic, such as API requests, flow executions, any kind of SSO requests, etc.”, and its embedded outpost “allows using Proxy providers without deploying a separate outpost”. A worker “executes background tasks, such as sending emails, the event notification system”, and PostgreSQL holds all configuration and other data except uploaded files. Its OAuth 2.0 provider “supports both OAuth 2.0 and OpenID Connect (OIDC)”, and its SAML provider integrates “with Service Providers using the SAML2 protocol.”

Authelia is described by its introduction as “a 2FA & SSO authentication server which is dedicated to the security of applications and users”. The same page lists several two-factor methods, identity verification when registering second-factor devices, self-service password reset, and banning accounts after repeated failed attempts. Per its architecture page, the proxy sends an authentication request to Authelia for each incoming request, and Authelia tells the proxy whether to allow or block it.

Its first-factor backend is one of two options. With LDAP, “users are stored in remote servers like OpenLDAP, OpenDJ, FreeIPA, or Microsoft Active Directory”. With a file, “users are stored in YAML file with a hashed version of their password”. Its storage backends are SQLite (configured as local), PostgreSQL and MySQL. On OpenID Connect, the provider docs say: “Authelia currently supports the OpenID Connect 1.0 Provider role as an open beta feature.” They add: “Authelia is OpenID Certified™ to conform to the OpenID Connect™ protocol.”

In short: Keycloak and authentik both act as OIDC and SAML providers; Authelia extends a reverse proxy and adds an OpenID Connect provider in open beta.

Comparison at a Glance

Keycloak authentik Authelia
Primary shape Open source identity and access management OIDC and SAML providers with proxy outposts Companion of reverse proxies
Latest release on GitHub (19 Nov 2026) 26.8.2 (5 Nov 2026) 2026.8.5 (21 Oct 2026) v4.39.28 (17 Sep 2026)
License Apache License 2.0 MIT, with authentik/enterprise/ under its own license Apache-2.0
Documented pieces Server plus a relational database (PostgreSQL, MySQL, MariaDB and others) Server, worker and PostgreSQL Server plus SQLite, PostgreSQL or MySQL storage, and an LDAP or file user backend
OIDC provider Yes Yes Yes, open beta
SAML provider Yes (SAML 2.0) Yes (SAML2) No; a SAML 2.0 Provider is listed under Planning on the roadmap
LDAP or AD as user source Yes Yes, LDAP source Yes, LDAP first-factor backend
Documented host size 2 GB recommended memory limit for smaller production deployments A host with at least 2 CPU cores and 2 GB of RAM None on its architecture page

The Keycloak figure comes from the containers guide: “For smaller production-ready deployments, the recommended memory limit is 2 GB.” The authentik figure is the Docker Compose requirement of “A host with at least 2 CPU cores and 2 GB of RAM”. One is a container limit and the other a host requirement, so they are not a like-for-like comparison.

authentik vs Authelia, head to head

Both can protect an application through forward auth, and both can issue OpenID Connect tokens. The rows below cover where they differ.

Requirement authentik Authelia
Forward auth Proxy provider and outpost; documented for Caddy, Envoy, HAProxy, nginx and Traefik, in single-application or domain-level mode Answers the proxy’s per-request authentication check; documented proxies include Caddy, Envoy, HAProxy, NGINX, SWAG, NGINX Proxy Manager, Skipper and Traefik
Existing LDAP directory LDAP source synchronizes users and groups into authentik LDAP first-factor backend authenticates against an external directory
Serving LDAP to applications LDAP provider lets Service Providers integrate using LDAP The documented LDAP feature is a user backend, not an LDAP server for applications
Local user data Users and configuration reside in PostgreSQL File-based users are an alternative to LDAP; application storage is configured separately

The authentik forward auth docs say “Single-application mode works for one application hosted on its own domain or subdomain”, while “Domain-level mode works for multiple applications under the same parent domain.”

Who each one suits

Our view, based on the documented features above. No ranking is implied.

Keycloak

  • Suits: setups that need SAML 2.0 alongside OIDC, federation with LDAP or Active Directory, brokering to outside OIDC or SAML identity providers, or isolated realms for separate user populations.
  • Skip it if: you only need a login gate in front of one reverse proxy and do not want to run and size a relational database and a container with JVM heap settings.
  • Start with: realm and client design, then Keycloak hostname and proxy errors for reverse-proxy setup.

authentik

  • Suits: a mix of OIDC or SAML applications and older apps that need forward auth through an outpost, or apps that need an LDAP interface.
  • Skip it if: a server, a worker and PostgreSQL are more pieces than you want to run.

Authelia

  • Suits: an environment where one of its documented reverse proxies already fronts every app, and users live in LDAP or a YAML file.
  • Skip it if: you need a SAML provider, an LDAP server for applications, or an OpenID Connect provider that is not in open beta.

The Decisions That Actually Separate Them

Do you need to be an identity provider for third parties? All three offer an OpenID Connect provider, so check the application’s exact protocol requirements. Keycloak and authentik also document SAML provider support; Authelia lists a SAML 2.0 Provider only under Planning on its roadmap.

Is your user store already authoritative somewhere else? All three can authenticate against LDAP. authentik’s LDAP source has a User password writeback option to “write password changes that are made in authentik back to LDAP”, and an option to update its internal password on login.

How many applications cannot be modified? For an application that cannot be given an OIDC client, authentik’s outposts and Authelia’s proxy integration both document proxy-based protection.

What is the operational budget? Keycloak’s sizing guide says: “The base memory usage for a Pod including caches of Realm data and 10,000 cached sessions is 1250 MB of RAM.” For CPU it says: “For each 15 password-based user logins per second, allocate 1 vCPU to the cluster”. The containers guide sets the maximum heap to 70 percent of total container memory. Keycloak memory usage and heap sizing works through the arithmetic, Keycloak resource requirements covers host sizing, and the sizing calculator runs the memory estimate for a given peak session count.

Migration Is Not Symmetrical

Our view: plan any move between these three around three artefacts: the client registrations, the user store, and the authorization rules.

  • Client registrations: Keycloak keeps user, client and realm data in its relational database (database guide), and authentik keeps its configuration in PostgreSQL (architecture page).
  • The user store: all three can authenticate against LDAP, while Authelia’s file backend keeps users “in YAML file with a hashed version of their password”.

Our view: if users already live in an LDAP directory, that directory can stay in place while the identity server in front of it changes.

Sources

  1. Keycloak: Project home page and features
  2. Keycloak: Server Administration Guide
  3. Keycloak: Configuring the database
  4. Keycloak: Concepts for sizing CPU and memory resources
  5. Keycloak: Running Keycloak in a container
  6. Keycloak: Releases (GitHub)
  7. Keycloak: LICENSE.txt (GitHub)
  8. authentik: Architecture
  9. authentik: Install with Docker Compose
  10. authentik: Forward auth
  11. authentik: OAuth 2.0 provider
  12. authentik: SAML provider
  13. authentik: LDAP source
  14. authentik: LDAP provider
  15. authentik: Releases (GitHub)
  16. authentik: LICENSE (GitHub)
  17. Authelia: Introduction
  18. Authelia: Architecture
  19. Authelia: Proxy integration
  20. Authelia: OpenID Connect 1.0 provider
  21. Authelia: Roadmap
  22. Authelia: First factor authentication backends
  23. Authelia: Storage backends
  24. Authelia: Repository (GitHub)
  25. Authelia: Releases (GitHub)

Related