Keycloak vs authentik vs Authelia: which fits which situation
Keycloak fits SAML and OpenID Connect estates that need identity brokering and LDAP or Active Directory federation, authentik fits a PostgreSQL-only identity provider with proxy and LDAP providers and a paid tier for enterprise-directory features, and Authelia fits reverse-proxy apps that need two-factor authentication without SAML. A team that must pick one platform should start with that split, then test it against two questions: where user accounts live today, and whether any application requires SAML 2.0. Those two answers remove most of the shortlist before cost and features enter the discussion, so treat the split as a first filter rather than a final decision.
Keycloak has the heaviest production baseline of the three. It needs a relational database in production, with PostgreSQL 14 to 18 among the supported engines, and its default dev-file database is for development only. High availability depends on a synchronously replicated database, and the Keycloak Operator, installed through Operator Lifecycle Manager, is one supported route for Kubernetes. authentik has fewer moving parts: a server container with an embedded outpost, a worker container, and PostgreSQL holding configuration and data. Its 2025.10 release dropped Redis entirely, but the release notes warned of roughly 50% more PostgreSQL connections after upgrading, so check connection limits first. Google Workspace and Microsoft Entra ID integrations, mTLS and enhanced audit logging are Enterprise-only, and the authentik pricing page lists that edition at $5 per user per month billed annually.
Authelia has the narrowest scope. It sits beside a reverse proxy such as Traefik, Caddy, NGINX or HAProxy, which asks Authelia whether to allow each request, and it works only over HTTPS. Users come from an LDAP directory such as FreeIPA or Active Directory, or from a YAML file of hashed passwords, and second factors include one-time passwords, passkeys and Duo mobile push. It is OpenID Certified for several OpenID Connect profiles, but its support chart lists no SAML, so one SAML-only application can rule it out for a mixed estate. Before you choose, confirm in your own environment which applications need SAML, which directory holds identities, and whether each app can sit behind your proxy, then run a proof of concept with one application on your shortlisted platform.
Keycloak vs authentik vs Authelia: which fits which team
This table matches common team situations to the platform that fits best, with the reason tied to a supported capability. Read each row as a starting point: the scenarios are illustrative, and each reason names the condition under which that platform fits. The main takeaway: Keycloak leads on protocol breadth and directory federation, authentik on a broad provider set with a paid tier for enterprise code, and Authelia on MFA in front of proxied apps.
| Scenario | Best fit | Why |
|---|---|---|
| SAML 2.0 partner access (illustrative: a vendor portal that accepts only SAML) | Keycloak for SAML 2.0 clients | Supports SAML 2.0 alongside OpenID Connect and brokers logins to external SAML identity providers. Authelia has no SAML support. |
| Active Directory users reaching web apps (illustrative: staff signing in with existing AD accounts) | Keycloak for AD-backed SSO | Federates users from Active Directory and brokers SSO to apps. Authelia reads AD too, but only gates proxied apps. |
| Reverse-proxy apps that need MFA (illustrative: admin tools behind Traefik or NGINX) | Authelia for proxied apps | Works as a companion to Traefik, Caddy, NGINX and others, with one-time passwords, passkeys and Duo mobile push. Requires HTTPS for every protected site. |
| Multi-site high availability (illustrative: two data centers) | Keycloak with a synchronously replicated database | Documents designs spanning availability zones and multiple clusters. Both supported designs need a synchronously replicated database, so plan that layer first. |
| One IdP for OIDC, SAML, LDAP and proxy apps (illustrative: a platform team serving mixed app types) | authentik if you accept a paid subscription for enterprise code | Core is MIT licensed, but code in the enterprise directory needs a paid subscription for production. Providers cover OAuth2/OIDC, SAML, LDAP and proxy in one product. |
| Small team with few apps and file-based users (illustrative: a handful of internal tools) | Authelia for small, file-based teams | Authenticates against a YAML file of hashed passwords under Apache-2.0. Suits a small user base, but has no SAML support. |
How each architecture changes what your team runs
Keycloak changes your team's work most at the database layer. In production it needs a relational database, and the Keycloak database guide lists PostgreSQL 14 to 18, MariaDB, MySQL, Microsoft SQL Server, Oracle Database and Amazon Aurora PostgreSQL as supported options. The development file database is for development only. The Keycloak high availability overview documents three designs: a single cluster that can span availability zones, multi-cluster deployments (v2) that do not use an external Infinispan cluster, and the deprecated multi-cluster v1 design, which runs a separate Infinispan cluster per site. Both supported designs need a database that replicates synchronously. Before you choose one, ask your database team whether your platform can replicate synchronously across the sites you plan to use, and confirm that the chosen database version is on the supported list.
authentik has fewer moving parts, but its 2025.10 release changed what PostgreSQL must handle. A standard deployment is a server container, which runs the core application with an embedded outpost, a worker container for background tasks, and PostgreSQL, which stores all configuration and data except uploaded files. Since 2025.10, authentik no longer uses Redis. Caching, tasks, sessions and WebSocket functions moved into PostgreSQL, and the release notes warn of roughly 50% more PostgreSQL connections after an upgrade. Check connection limits and pooling in PostgreSQL before go-live, and remove Redis from your runbooks, backups and monitoring so that nobody builds recovery or alerting around a service the platform no longer runs. The authentik architecture documentation describes the container layout.
Authelia is a single service that sits beside your reverse proxy. The proxy asks Authelia whether each request may proceed, and unauthenticated users are redirected to Authelia's login portal. Your team's main integration work is therefore the proxy configuration on every protected hostname, since each one depends on the same login flow. Authelia's session cookies require HTTPS, and the project does not support plain HTTP, so the portal and every protected site need valid certificates before testing begins. Confirm that your proxy terminates TLS on every hostname, including internal ones, and assign an owner for certificate renewal as part of the service's operating procedures.
A login hits the proxy first, then either Authelia or an OIDC provider
This simplified flow starts with a user's browser requesting an app behind a reverse proxy. In the Authelia path, the proxy asks Authelia whether to allow each request, and an unauthenticated user is redirected to the Authelia login portal, which checks credentials against an LDAP directory or Active Directory. In the OIDC path, the user is redirected to a Keycloak realm or an authentik provider. Keycloak needs a relational database in production, and authentik stores its configuration and data in PostgreSQL. Before you shortlist, confirm which directory each platform can read, which database your version requires, and whether your proxy is on Authelia's supported list.
Simplified flow: Authelia path and OIDC path shown as alternatives.
Keycloak vs authentik vs Authelia on protocols, databases and user sources
This table compares license, protocols, identity brokering, LDAP or Active Directory sources, production databases, Kubernetes installs, reverse-proxy fit, MFA factors and paid-only features across Keycloak, authentik and Authelia. Read each row as a fit check for your own environment, and treat every cell marked confirm with the vendor as an open question before you shortlist. The main takeaway: Keycloak and authentik both act as full identity providers, while Authelia is a lighter two-factor and single sign-on companion for reverse-proxied apps.
| Capability | Keycloak | authentik | Authelia |
|---|---|---|---|
| License | Apache-2.0 open source license. | MIT for core. Code in authentik/enterprise uses a separate enterprise license. | Apache-2.0 open source license. |
| Protocols | OpenID Connect, OAuth 2.0 and SAML 2.0. | OAuth2/OIDC, SAML, LDAP, RADIUS, proxy, SCIM and WS-Federation provider types. | OpenID Certified for Basic, Implicit, Hybrid, Form Post and Config OP profiles; no SAML support. |
| Identity brokering to external providers | Brokers logins to external OpenID Connect or SAML identity providers. | Confirm with the vendor which external source and brokering types apply to your setup. | Confirm with the vendor. Authelia itself acts as the OpenID Connect provider for apps. |
| LDAP or Active Directory source | Federates users from LDAP or Active Directory. | Lists an LDAP provider type. Confirm directory sourcing and sync options with the vendor. | Authenticates against LDAP directories such as OpenLDAP, FreeIPA or Active Directory, or a YAML file. |
| Production database | PostgreSQL 14 to 18, MariaDB, MySQL, SQL Server, Oracle and Aurora PostgreSQL. Dev file database is not for production. | PostgreSQL for all configuration and data, with no Redis since release 2025.10. | Confirm with the vendor which storage backends are supported for production. |
| Kubernetes install path | Keycloak Operator via Operator Lifecycle Manager (recommended) or kubectl. Experimental Helm chart. | Confirm with the vendor which Kubernetes install method is supported. | Confirm with the vendor which Kubernetes install method is supported. |
| Reverse-proxy fit | Apps connect over OpenID Connect or SAML. Confirm any proxy-based gatekeeping with the vendor. | Proxy provider type for protecting apps. Confirm which proxies and modes your setup needs. | Built as a companion to reverse proxies such as Traefik, Caddy, Envoy, NGINX and HAProxy. Check your proxy on the supported list. |
| MFA factors | Confirm with the vendor which second factors are built in and supported. | Confirm with the vendor which second factors are built in and which need a paid edition. | One-time passwords, security keys and passkeys, and Duo mobile push. |
| Paid-only features | Red Hat build of Keycloak is Red Hat's supported distribution. Confirm with Red Hat what its subscription covers. | Enterprise from $5 per user per month, billed annually (authentik pricing page). Adds Entra ID and Google Workspace. | Confirm with the vendor whether any paid edition or support tier exists. |
What is free and what is paid under each license
Keycloak is licensed under Apache-2.0, so the upstream server code carries no license fee. This comparison does not identify a paid upstream edition, so confirm with the project and Red Hat whether one exists. Vendor-backed support is the route most teams ask about. The Red Hat build of Keycloak is Red Hat's supported distribution based on the open source project, and it replaces Red Hat Single Sign-On. Its subscription terms, support windows and supported versions are set by Red Hat, so confirm them before you budget.
- Code license: Apache-2.0 covers the Keycloak server code. Read the license text for redistribution terms before you package it for your own environment.
- Current release: 26.8.1, published October 13, 2026. Since Keycloak 26.0 the project plans four minor releases a year, and breaking changes in minor releases are opt-in, so upgrades are planned work whichever distribution you run.
- Red Hat build version: Red Hat's product page lists 26.6 as its latest version, so the supported release may trail upstream 26.8.1. Ask which version your subscription covers.
- Paid items to ask about: the support subscription, the update window it covers, and whether it extends to the Operator and to your production database.
- Cost components: you pay for infrastructure, the production database, staff time and any subscription or outside services you buy. Subscriptions and hosting recur, while the initial build is one-time.
Before you budget, get the subscription terms, supported versions and support windows in writing from Red Hat, and confirm they match the Keycloak version you plan to deploy.
authentik splits its license by directory. The core is MIT licensed, so the identity provider itself can run without a license fee. Code in the enterprise directory falls under a separate enterprise license and needs a paid subscription for production use. Prices and the enterprise-only feature list come from the authentik pricing page, which is the source to check before you request a quote.
- Open Source: free, with community support through Discord only, according to the authentik pricing page. This suits teams that can work with community-only support.
- Enterprise: $5 per user per month billed annually, plus $0.02 per external user per month, according to the authentik pricing page. Confirm how authentik counts users and external users before you estimate seats.
- Enterprise Plus: starting at $20k annually, according to the authentik pricing page. Ask what it adds beyond Enterprise.
- Enterprise-only features: Google Workspace and Microsoft Entra ID integrations, mTLS client certificate authentication, privileged access management, password history, enhanced audit logging, and ticket-based support for subscriptions over $1k, per the pricing page. If you need any of these, the free core does not cover them.
- Current release: 2026.8.4, published October 14, 2026. The security policy lists 2026.5.x and 2026.8.x as the versions receiving security fixes.
Check whether your identity sources and audit requirements depend on any enterprise-only feature, and confirm the subscription terms and user counting with authentik in writing before you accept a quote.
Authelia is licensed under Apache-2.0, so its server code can be run and modified under that license without a license fee. The current release is v4.39.28, released September 17, 2026. This comparison does not identify a paid Authelia option, product tier or commercial license, so confirm with the project whether any exists before you assume the whole feature set is free for your use.
- License: Apache-2.0 covers the authelia/authelia repository. Read the license text for redistribution terms if you package it.
- Current release: v4.39.28, released September 17, 2026. Review the release notes for each upgrade, because Authelia sits in front of every site it protects.
- Second factors and recovery: one-time passwords, security keys and passkeys, and Duo mobile push, plus self-service password reset and account banning after too many failed attempts, as the project documentation describes. Confirm that each one ships in the release you plan to run.
- Paid options: none are identified here. Ask the project whether it offers paid support, a commercial license or any add-on, and whether any of them change the features you can deploy.
- Cost components: Apache-2.0 carries no license fee. Your costs are hosting, the LDAP directory or file backend you choose, staff time and any outside services you buy.
Ask the Authelia project in writing whether a paid option exists, what it covers and whether it changes the second factors or user backends you need.
Which platform to test first for your team
The path starts with one question: is SAML 2.0 required? If yes, test Keycloak first, since it supports SAML 2.0 alongside OpenID Connect and documents LDAP and Active Directory federation. If no, ask whether your apps sit behind a supported reverse proxy such as Traefik, Caddy, NGINX or Envoy. If they do, test Authelia first, because it works as a companion to the proxy and has no SAML support. If they do not, ask whether Active Directory or LDAP is the user source. If it is, Keycloak is the first test. Otherwise, start with authentik. Authelia also reads LDAP, so the proxy question decides that branch first. Confirm each branch against your own applications and directory before you commit.
Decision path from SAML, reverse proxy and user source to first platform.
What drives the running cost of each platform
License fees are only part of the bill for these three platforms. Each one shifts cost into a different place: a relational database and cluster design for Keycloak, a per-user subscription and database sizing for authentik, and directory and proxy integration for Authelia. The cards below set out what recurs, what drives it up, and what to request in writing.
Keycloak database, HA and upgrades
Keycloak is Apache-2.0 licensed, so its recurring cost sits in infrastructure and staff time. Production needs a supported relational database that you size, back up and patch, and both supported high availability designs depend on a synchronously replicated database. The project plans four minor releases a year, so upgrade planning is a standing task, including Operator upgrades if you deploy with the Keycloak Operator. Budget for testing each minor release against your configuration and custom providers before it reaches production.
Keycloak upgrading guideauthentik subscriptions and PostgreSQL sizing
The authentik core is MIT licensed, but code under its enterprise directory needs a paid subscription for production use. The pricing page lists Enterprise at $5 per user per month billed annually, plus $0.02 per external user per month, and the enterprise-only features include Entra ID, mTLS and enhanced audit logging. Since 2025.10 authentik no longer uses Redis, so PostgreSQL carries the caching, tasks and sessions, and the release notes warn of roughly 50% more connections. Check PostgreSQL connection limits before upgrading to 2025.10 or later.
authentik pricing pageAuthelia backend, proxy and enrollment
Authelia is Apache-2.0 licensed, so recurring cost comes from the work around it: a user backend, a supported reverse proxy and HTTPS. It reads users from LDAP, such as FreeIPA or Active Directory, or from a YAML file of hashed passwords, and the file option means manual account upkeep as headcount grows. Sessions only work over HTTPS, so certificate issuance and renewal recur for each protected site. Budget for MFA enrollment support, because users register their own second factors, and confirm how lost-device recovery works before rollout.
What to ask for in a quote
A written quote should show who pays for each part of the running cost. Ask for the license or subscription line for each platform, the edition it assumes, and the user count behind it. For self-hosted work, ask who sizes and backs up the database, who runs each upgrade and testing cycle, and who manages certificates and MFA enrollment. DeployOpen's quote follows from the written scope, so request the assumptions list with it. Ask which items recur, and what changes the total if user counts, databases or proxies grow.
What implementing each platform involves, and what switching costs later
Begin with the decisions that are hardest to undo. Keycloak needs a relational database in production, and the supported PostgreSQL range is 14 to 18, so fix the database version and the realm layout before anything else. Install the Keycloak Operator through Operator Lifecycle Manager, which Keycloak recommends, or with kubectl (Keycloak Operator installation guide). The experimental Helm chart suits teams that accept its status. Then create the realm, its clients and any external brokers, and keep them in source control as KeycloakRealmImport, KeycloakOIDCClient and KeycloakSAMLClient resources. authentik is smaller to start: a server container with an embedded outpost, a worker container and PostgreSQL. Its sizing question is also the database. The 2025.10 release removed Redis and moved caching, tasks and sessions into PostgreSQL, and it warned of roughly 50% more PostgreSQL connections after upgrading, so raise connection limits before you upgrade. Confirm whether your proxy provider needs a standalone outpost in your topology.
Authelia has the least platform to build but the most work at the proxy. It sits behind a supported proxy such as Traefik, Caddy, NGINX or Envoy, and every request is checked against the access_control rules in configuration.yml. The work is writing a rule for each application, group and path, then testing that unauthenticated requests are redirected to the login portal. Only HTTPS sites work, so certificates come first. Next choose the backend. The YAML file of hashed passwords is quick to start but is maintained by hand, while LDAP sources such as OpenLDAP, FreeIPA or Active Directory keep users where your directory team already manages them. Each user then enrolls a second factor, such as a one-time password, a security key or passkey, or Duo push. Put enrollment support and a help desk script into the rollout plan, and confirm which second factors your chosen proxy and backend combination supports before you commit.
Switching later costs more than the install. Every moved application has a client or proxy rule that must be re-registered or rewritten: client IDs, redirect URIs, scopes and group claims in Keycloak or authentik, and access rules in Authelia. User stores come next. Keycloak federates LDAP or Active Directory, and authentik keeps its own user model, so moving accounts means matching identifiers, group membership and password handling. Ask each vendor whether password hashes, TOTP seeds and WebAuthn credentials can be exported. If they cannot, plan to re-enroll MFA for every user, which usually lands on the service desk. Ask any implementer for the migration steps, the rollback path and the parallel-running period in the written scope before you choose a platform, since these are the costs that grow once users depend on the system.
How much effort and cost to expect with each platform?
How much effort does running Keycloak in-house take?
Keycloak has no license fee, so the effort is mostly staff time, infrastructure and ongoing upkeep. Plan for a relational database in production, since the default dev-file database is for development only. Keycloak supports PostgreSQL 14 to 18, MariaDB, MySQL, Microsoft SQL Server, Oracle Database, Amazon Aurora PostgreSQL and others listed in the Keycloak database guide. High availability adds work, because both supported multi-site designs need a synchronously replicated database. Keycloak plans four minor releases a year and says breaking changes in minor releases will be opt-in, so your team still has to test and apply upgrades on a steady schedule. Effort rises with the number of realms, custom providers, LDAP or Active Directory federation and the number of applications that depend on it. Have your own team estimate hours for these tasks before comparing against any outside quote.
Does authentik need a paid subscription for production use?
Only the enterprise code does. authentik core is MIT licensed, but code in the authentik/enterprise directory falls under the Enterprise Edition license and needs a paid subscription for production use. The pricing page lists Open Source as free with community Discord support only, Enterprise at $5 per user per month billed annually plus $0.02 per external user per month, and Enterprise Plus starting at $20k annually. Features gated to paid tiers include Google Workspace and Microsoft Entra ID integrations, mTLS client certificate authentication, privileged access management, password history and enhanced audit logging. Map your required features against this list first, because one gated feature can move a deployment from the free tier to a paid one. Confirm current terms and prices directly with authentik: authentik pricing.
Can Authelia replace Keycloak for my organization?
Only for a narrower set of use cases, so test it against your application list before you plan a replacement. Authelia is a two-factor and single sign-on server for websites behind a supported reverse proxy, and it only works over HTTPS. It is OpenID Certified for several OpenID Connect profiles, but its support chart lists no SAML support, so SAML-only applications need another path. Keycloak also brokers logins to external OpenID Connect or SAML identity providers and federates users from LDAP or Active Directory. Authelia can authenticate against LDAP directories such as FreeIPA or Active Directory, or against a YAML file, so a simple reverse-proxy estate may be covered. Map each application, its protocol and its login flow, then decide. Both projects are Apache-2.0, so licensing alone will not settle the question.
How long does an identity platform engagement usually run?
The length comes from the written scope, which is agreed before work starts. Most DeployOpen engagements are fixed-scope, with scope, deliverables and timelines confirmed in writing. The length usually follows from the number of applications to integrate, the identity sources to connect (LDAP, Active Directory or external identity providers), the high availability design and database choice, the amount of customization, and the testing and compliance evidence you need. Ongoing support, upgrades and continuous testing are available as retainers, so ask whether a quote covers a one-time build, handover, recurring work or all three. Ask for the timeline with its assumptions listed, including the dates your own change board must approve and any access your team must provide before work can begin.
What does an implementation engagement need from my own team?
Expect to name one owner who can approve decisions, grant access and accept changes. Typical inputs include:
- Access to the cloud accounts, data centers or air-gapped networks where the platform will run.
- Identity sources such as LDAP or Active Directory, with a service account and an agreed group structure.
- Decisions on hosting, database, backup and upgrade windows.
- Application owners who test their own login flows and approve redirect URIs and claims.
- Security and compliance staff who define which evidence they will accept.
Ask the vendor to list these inputs in the written scope, so the time your team spends is visible before the work starts, and so you can judge whether your staff can carry it themselves.
Does DeployOpen prepare compliance evidence without issuing audit reports?
Yes, DeployOpen prepares systems, controls and evidence for compliance assessments, but it does not issue audit reports, attestations or certifications. Independent auditors and certification bodies make those determinations. For identity platforms, the work can include configuring SSO, access control, audit logging and data handling controls, then documenting how each one operates so your compliance team can review it. Evidence often covers who can administer the platform, how logins are protected and how configuration changes are logged. Confirm with your assessor which evidence format they accept before work starts, and record it in the written scope. Ask which control IDs your evidence should map to, since the requirements differ by framework and by assessor.
How DeployOpen helps choose and implement these platforms
DeployOpen is a Chainscore Labs company that plans, implements, hardens and supports self-hosted open-source platforms inside your own infrastructure. For Keycloak, authentik and Authelia, that means scoping the choice against your protocols, user sources and applications, then building and documenting the platform you select. Most engagements are fixed-scope and agreed in writing before work starts, which keeps the choice and the handover explicit.
How we scope
- Scope the platform choice against your protocols, user sources and proxy or application estate for Keycloak, authentik or Authelia.
- Agreed in writing before work starts, the scope names each platform, edition and integration in play.
- Quotes follow from the written scope, since DeployOpen does not publish a price list.
How we build
- Deploy the chosen platform in your own cloud accounts, data centers or air-gapped networks.
- Configure the production database and user sources, including LDAP or Active Directory where the platform supports them.
- Integrate applications, with Authelia limited to HTTPS sites behind a supported reverse proxy.
How we hand over
- Document the architecture, configuration, upgrade path and operating runbook for your team.
- Prepare controls and evidence for compliance assessments; independent auditors and certification bodies issue any reports.
- Confirm licensing for each platform before go-live, including which authentik code paths your deployment touches.
How we support
- Backup and upgrade work can be named in the written scope, so ownership is clear after launch.
- Ongoing support, upgrades and continuous testing are available as retainers for the platform you choose.
- Keycloak plans four minor releases a year, so upgrade planning should be scoped from the start.

