Keycloak vs Zitadel vs Authelia

Keycloak fits broad enterprise SSO with SAML and directory federation. Zitadel fits multi-customer B2B products that need per-organization identity and an event-based audit trail. Authelia fits 2FA and login in front of self-hosted web apps behind a reverse proxy.

On this page

Keycloak vs Zitadel vs Authelia: which fits which team

Pick Keycloak for enterprise SSO, Zitadel for B2B products whose customers run their own identity, and Authelia for two-factor login in front of reverse-proxied web apps. A team that wants one identity layer for self-hosted apps should choose the product that matches its main login pattern, then confirm that no second pattern forces a second product. Keycloak supports OpenID Connect, OAuth 2.0 and SAML 2.0, brokers logins to external OpenID Connect or SAML identity providers, and federates users from LDAP or Active Directory. Zitadel fits B2B products where each customer organization manages its own users and identity providers, since multiple organizations can run inside one instance and each can use a different identity provider. Authelia fits 2FA and login in front of reverse-proxied web apps served over HTTPS, and its support chart lists no SAML support, so SAML-only applications need another path.

The deciding question is how each application authenticates. Ask the application owners which protocol each one uses: if a SAML 2.0 service provider is on the list, Keycloak or Zitadel are the candidates and Authelia drops out for that app. If your users live in Active Directory or an LDAP directory, confirm that the product can reach the directory, that the bind account has read access to the users and groups you need, and that group membership maps cleanly to the roles each app checks. The Keycloak server administration guide covers that federation setup in detail. Authelia can also read users from LDAP or from a YAML file of hashed passwords, which suits a small set of internal web apps but leaves the user lifecycle in a file someone must maintain. For Zitadel, confirm that customer administrators truly need to manage their own users and identity providers, because that is the reason to pick it over a shared user directory.

Each platform carries a different operating cost, so compare the run burden alongside the license. Keycloak is Apache-2.0 licensed and needs a relational database in production, with PostgreSQL 14 to 18 among the supported options, and its high availability designs require a synchronously replicated database. Zitadel moved to AGPL-3.0-only with v3 in 2025, so confirm with counsel which AGPL obligations apply if you modify it and offer it to users over a network. Zitadel also uses PostgreSQL 14 through 18 and recommends a Kubernetes cluster with the official Helm chart for high availability. Authelia is Apache-2.0 licensed and sits beside a reverse proxy you already operate, so its footprint is narrower, but its HTTPS-only requirement means every app behind it needs a valid TLS setup. Cost in each case comes from staff time and infrastructure, so a written quote should state who maintains upgrades, backups and directory connections.

Which scenario points to which of the three platforms

This table matches common scenarios to the platform that fits each one and the condition that makes it the right choice. Read each row as a test: if your requirement matches the scenario, the best fit is the likely starting point, and the Why column shows what to confirm before you decide. The main takeaway is that Authelia is a login layer for proxied apps, while Keycloak and Zitadel are full identity providers with different tenancy and audit models.

ScenarioBest fitWhy
SAML 2.0 apps with LDAP or Active Directory as the user storeKeycloakKeycloak supports SAML 2.0 and federates LDAP or Active Directory users. Zitadel also offers both, so test which fits your application list.
Multi-customer B2B product where each customer manages its own usersZitadelEach customer organization can use its own identity provider, and SCIM v2 provisioning is supported. Test how Keycloak and Authelia model per-customer tenancy.
Two-factor sign-in in front of self-hosted web apps behind a reverse proxyAutheliaWorks with proxies such as Traefik, Caddy, NGINX and HAProxy, with passkeys, security keys and one-time passwords. Requires HTTPS.
Apache-2.0 license is mandatory and the choice is between Keycloak and AutheliaKeycloak if SAML is needed, otherwise AutheliaBoth are Apache-2.0, so the license narrows the list to these two. Authelia has no SAML support, so SAML or wider federation points to Keycloak.
Compliance team needs an event-level record of every configuration and identity changeZitadelEvery change is stored as an event, giving a built-in audit trail. Confirm the record, retention and export the compliance team requires.

How the decision path sorts the three platforms

The diagram starts with one question: does the team need SAML 2.0 or brokering to external identity providers? A yes sends the team to ask whether the product serves several customer organizations that manage their own users. Those teams reach Zitadel only after checking whether the AGPL 3.0 license of its core is acceptable, and counsel should confirm that answer. Other SAML teams land on Keycloak. A no asks whether the need is two-factor login and single sign-on for web apps behind a reverse proxy over HTTPS, which leads to Authelia. Everything else ends at Keycloak.

Routing from SAML and brokering needs, with an AGPL check for Zitadel.

What protocols, identity sources and databases each one supports

This table compares Keycloak, Zitadel and Authelia on license, current release, protocols, external identity sources, databases, deployment methods, second factors, SCIM and tenancy. Where a cell asks you to confirm, verify that point with the project before you plan around it. Keycloak and Zitadel both federate to external identity sources, and Zitadel adds a tenant model for B2B products. Authelia's documented role is protecting web apps behind a reverse proxy.

CapabilityKeycloakZitadelAuthelia
LicenseApache-2.0AGPL-3.0 for core and Console since v3 (March 31, 2025); APIs, SDKs and Helm charts stay Apache-2.0Apache-2.0
Current release26.8.1, released October 13, 2026v4.19.5, released October 15, 2026v4.39.28, released September 17, 2026
ProtocolsOpenID Connect, OAuth 2.0 and SAML 2.0 for single sign-on and authorizationOpenID Connect, OAuth 2.0 and SAML 2.0, plus a device authorization grant for devices like smart TVsOpenID Connect, as an OpenID Certified provider for Basic, Implicit, Hybrid, Form Post and Config OP profiles. Its support chart lists no SAML support.
Brokering and external identity providersBrokers logins to external OpenID Connect or SAML identity providers.Federates Google, GitHub, GitLab, Apple, Entra ID, Okta, LDAP, Keycloak, JWT and any OIDC provider, per organization.Confirm with the project whether it can delegate login to an upstream provider. Documented first-factor sources are LDAP and a YAML file.
User sourcesFederates users from LDAP or Active Directory.Local users per organization, plus LDAP and OpenLDAP as an external identity provider.Authenticates against LDAP directories such as OpenLDAP, OpenDJ, FreeIPA or Active Directory, or a YAML file of hashed passwords.
Production databasesRelational database required in production: PostgreSQL 14 to 18, MariaDB, MySQL, SQL Server, Oracle, Aurora PostgreSQL.PostgreSQL is the database for self-hosted Zitadel, versions 14 through 18.Confirm with the project which database backends are supported in production.
Self-hosting methodsKeycloak Operator via Operator Lifecycle Manager (recommended) or kubectl, plus an experimental Helm chart.Linux and macOS binaries, Docker Compose or Kubernetes, with the official Helm chart recommended for high availability.Confirm with the project which install methods it documents and whether it supports Kubernetes.
Second factorsConfirm the second factor methods available in the current release and how to enable them.Confirm the second factor methods available in the current release and how to enable them.One-time passwords, security keys and passkeys, and Duo mobile push.
SCIM and tenancyConfirm SCIM support and how customer separation is modeled with the project.SCIM v2 service provider for user provisioning. Instances give full data isolation; organizations hold each customer's users.Confirm with the project whether SCIM is supported. Its documented model centers on protecting sites behind a reverse proxy.

Why Zitadel's instance and organization model changes the design

Zitadel's design rests on three layers, and the first decision is where each customer boundary sits. An instance gives full data isolation, so it is the boundary to use when one customer's data must never share a data scope with another's. Inside an instance, an organization is comparable to a tenant in a SaaS system, and several organizations can sit in one instance, which suits B2B products whose customers manage their own users. Projects sit inside organizations and group applications, roles and grants. Each customer organization can also use a different identity provider, so one customer can federate to Entra ID while another federates to an LDAP directory.

For a platform team serving several customers in one product, these layers answer a different question than they do for a single internal workforce. An internal workforce usually needs one organization, one identity provider and one set of roles, so the organization layer has little work to do. A multi-customer product needs each customer's users, login method and administrator rights kept apart. Illustratively, a vendor with three enterprise customers could create three organizations inside one instance, federate each to that customer's own identity provider, and limit each customer's administrators to their own organization. Test that split early: if any customer's contract or regulator requires separate data stores, the design moves from organizations to separate instances, which increases the number of deployments you run, patch and back up.

For Keycloak and Authelia, confirm isolation before you design. Ask the vendor how Keycloak separates one customer's users, clients and login settings from another's, and whether your admin team can operate one such boundary per customer at your expected count. Confirm that each customer's brokered identity provider can be configured independently. For Authelia, confirm whether one deployment can hold separate user populations with separate access policies. Its supported user backends are an LDAP directory or a YAML file of hashed passwords, so check the Authelia documentation for how each backend maps to a customer. If the answer is no, the likely design is one Authelia deployment per customer, which multiplies the systems your team must back up and upgrade. Write the answer into the requirements before you choose.

Keycloak vs Zitadel vs Authelia licensing: what is free and what is paid

Keycloak's server is licensed under Apache-2.0, so the upstream software can be downloaded, run and modified without a license fee. The current upstream release is 26.8.1, published October 13, 2026. The main paid route is the Red Hat build of Keycloak, Red Hat's supported distribution of the open source project, which replaces Red Hat Single Sign-On.

  • Upstream server: Apache-2.0 applies to the project itself. Your recurring costs are the database, compute, and the staff time to patch and upgrade.
  • Red Hat build of Keycloak: This adds vendor support on top of the open source project. Confirm the subscription terms, covered releases and support windows with Red Hat, and check which build you would receive, since Red Hat's product page showed version 26.6 as its latest.
  • Release cadence: Since Keycloak 26.0, the project plans four minor releases a year and says breaking changes in minor releases will be opt-in. Budget time to test each upgrade anyway.
  • Production database: Production needs a relational database such as PostgreSQL 14 to 18, MariaDB, MySQL, Microsoft SQL Server, Oracle Database or Amazon Aurora PostgreSQL. Each engine carries its own license and support terms, which can add cost.

Ask Red Hat for the written subscription terms that apply to your deployment, and confirm the database license obligations for your chosen engine before you set a budget.

What drives the running cost of each platform

For all three platforms, the software license is only part of the bill. Each card names who is paid for what, which costs are one-time and which recur, and what to ask for in a written quote. The shared card covers the database and operating work that follows whichever platform you choose.

Keycloak: upgrades and staff time

Keycloak is licensed under Apache-2.0, so the software carries no license fee. Your recurring costs are internal staff time and any partner hours for upgrades and high availability. The Red Hat build of Keycloak is a separate supported distribution, so confirm its support terms with Red Hat if you need them. The project plans minor releases several times a year, and breaking changes in a minor release are opt-in, so each upgrade still needs a test cycle your team or partner must staff. Ask for upgrade testing as a recurring line, separate from the initial build.

Current release
26.8.1
Keycloak upgrading guide

Zitadel: license terms and event history

Zitadel moved its core to AGPL-3.0 with v3, so the first cost question is whether your legal team accepts that license for the code you run. A commercial license is offered, and the quote should state what it covers, what support it includes and who handles upgrades. Self-hosting adds PostgreSQL operations. Zitadel is built on event sourcing, storing every change as an event, so confirm how the event history grows with retention before you size storage, backups and recovery time.

Zitadel event store docs

Authelia: integration and user backend effort

Authelia is licensed under Apache-2.0, so its cost sits in staff time. Your team pays to place it in front of each reverse proxy and to run its user backend. The YAML file backend makes every account change a file edit someone must own, while an LDAP backend means running or integrating a directory such as FreeIPA or Active Directory. Authelia's support chart lists no SAML, so any SAML-only application adds integration cost somewhere else. Ask for proxy integration per application and backend work as separate lines in the quote.

Shared costs: database and on-call

Keycloak and Zitadel both need PostgreSQL in production, so backups, failover tests, patch windows and capacity become recurring work for your team or a partner. Keycloak's high availability designs also require a synchronously replicated database, which adds infrastructure and skills to the run cost. Ask every quote to split the one-time build from recurring patching, upgrade testing, database operations and on-call, and to name who holds each line. Confirm Authelia's storage and session needs in your own deployment before you compare its line.

PostgreSQL versions
14 to 18
Keycloak database guide

Keycloak vs Zitadel vs Authelia implementation effort, phase by phase

Keycloak effort is front-loaded into two decisions: the production database and the high availability design. Keycloak needs a relational database in production, with PostgreSQL 14 to 18, MariaDB, MySQL, Microsoft SQL Server, Oracle Database and Amazon Aurora PostgreSQL among the supported options, while the dev-file database is for development only. Both supported high availability designs, a single cluster optionally spread across availability zones and multi-cluster v2 without an external Infinispan cluster, need a synchronously replicated database, so confirm early that your chosen engine offers it. Then deploy through the Keycloak Operator with Operator Lifecycle Manager, which Keycloak recommends over kubectl. Under a written fixed scope, DeployOpen would document the database and topology decision, build the chosen cluster, deploy through OLM and hand over runbooks. Clients supply the database owner, cluster access and sign-off on the architecture.

For Zitadel, the first choice is the deployment route: Linux or macOS binaries, Docker Compose, or Kubernetes with the official Helm chart, which Zitadel recommends for high availability. Self-hosted Zitadel runs on PostgreSQL 14 to 18, so the database decision is narrower than Keycloak's. The consequential work is the tenancy model, settled before any customer is onboarded. An instance is a fully isolated tenant, organizations inside it hold users and projects, and projects group applications, roles and grants. Changing that later means moving users and grants between organizations. Then wire each organization's identity provider, because each can use a different one over OIDC, SAML, LDAP or OpenLDAP, Entra ID, Okta and more. Under a written fixed scope, DeployOpen would design the instance, organization and project structure, deploy the chosen route and configure each identity provider with the client's identity owners. Clients supply the tenant and customer list, identity provider metadata and sign-off.

Authelia's phases are fewer but have hard prerequisites. Every protected site must be served over HTTPS, because its session cookies require it and the project does not support plain HTTP, so DNS names and certificates need to be ready before the first login test. Next, choose a supported proxy from the list, which includes Traefik, Caddy, Envoy, NGINX, NGINX Proxy Manager, SWAG, HAProxy and Skipper. Then choose the first factor backend. A YAML file of users with hashed passwords keeps accounts in one reviewed configuration file, while an LDAP directory such as OpenLDAP, FreeIPA or Active Directory keeps account lifecycle in a system the client may already run. Under a written fixed scope, DeployOpen would configure the proxy integration, second factors and chosen backend, then test access site by site. Clients supply the application inventory with hostnames, the identity owner for the user store, DNS and certificate ownership, and written sign-off.

What buyers ask before hiring help with Keycloak, Zitadel or Authelia

Does DeployOpen publish prices for Keycloak, Zitadel or Authelia work?

No. DeployOpen does not publish a price list, so cost follows from a written scope and a quote. The software has no license fee for Keycloak or Authelia, since both are Apache-2.0. Zitadel's core is AGPL-3.0 with a commercial license offered, so ask the vendor what that option covers and whether you need it. Recurring costs include infrastructure, the production database, staff time for upgrades and monitoring, and any support contract. Cost rises with the number of applications, identity sources to connect, high availability requirements, custom login flows and the compliance evidence you need. Ask for a quote that lists deliverables, environments, handover and any retainer for upgrades or continuous testing, so you can compare the three options on the same scope.

How long does a Keycloak, Zitadel or Authelia rollout take?

The duration depends on the agreed scope, and no timeline figure applies across all three platforms, so confirm it in the written quote. The main drivers are the number of applications to onboard, how many identity sources you connect (LDAP, Active Directory or external OIDC and SAML providers), whether you need a high availability design, and how many environments and approval gates you run. Keycloak in production requires a supported relational database. Zitadel self-hosting needs PostgreSQL, and its high availability guidance points to Kubernetes with the official Helm chart. Authelia sits in front of your reverse proxy and requires HTTPS for every protected site. Each application's redirect and client settings must be tested, and compliance evidence adds further work. Ask for a milestone plan that names dependencies, client tasks and what counts as done at handover.

What does the client's team need to provide for the engagement?

Expect to supply access, decisions and people, not only approvals. The usual inputs are:

  • Infrastructure access: cloud accounts, Kubernetes or virtual machines, DNS records and TLS certificates inside your environment.
  • Database and backup: a supported database for the chosen platform, with named owners for backup and restore.
  • Identity sources: a read-only service account for LDAP or Active Directory, plus the list of applications and their owners.
  • Policy decisions: MFA rules, password and session settings, the role and group model, and who approves changes.
  • Testing: application owners who test sign-in, sign-out and redirect URLs in a staging environment before cutover.

If these owners are not named at the start, the schedule in the quote will slip. Ask the partner to list every client task in the written scope so both sides know who does what.

Can an internal team run Keycloak, Zitadel or Authelia without outside help?

A team with the right skills can run each platform, but the skills and the workload differ. Keycloak needs database and clustering knowledge, and if you run it on Kubernetes, familiarity with the Keycloak Operator. Keycloak plans four minor releases a year since version 26.0, and its breaking changes in minor releases are opt-in, so someone must track each release and plan upgrades. Zitadel needs PostgreSQL operations, Kubernetes skills for high availability, and an understanding of its instance, organization and project model. Authelia needs reverse proxy configuration, HTTPS on every protected site, an LDAP or YAML user backend and a decision on second factors. Authelia does not support SAML, so SAML-only applications need another component. Before you decide, confirm that your team can cover on-call support, patching and upgrade testing over the life of the platform.

What does it cost to switch from one platform to another later?

Switching cost depends on how much each application and user record relies on the platform's own model, and the software license is rarely the main cost. The main drivers are the number of OIDC or SAML clients that need new redirect settings and secrets, whether user passwords and enrolled second factors can move, the MFA re-enrollment users must complete, the proxy configuration if Authelia gates your applications, and any audit history you must keep. Keycloak and Zitadel can both federate an existing LDAP directory, which lowers user migration effort if the directory stays the source of truth. Ask for a switch estimate as a separate scope that covers inventory, parallel running, cutover and rollback, so the cost of leaving is visible before you commit.

Does DeployOpen issue a compliance certificate after implementation?

No. DeployOpen does not issue audit reports, attestations or certifications. It prepares the systems, controls and evidence that an assessment will review, such as access configuration, MFA settings, logging, backup procedures and documentation. An independent auditor or certification body issues any report. Which framework applies, and what proof it requires, depends on your regulator, your contracts and your risk assessment, so confirm this before the engagement starts. For identity platforms, assessors often ask who can sign in, how second factors are enforced, how administrative actions are logged and how changes are approved. Include the evidence formats your auditor accepts in the written scope, so the handover matches what the assessment will request.

How DeployOpen helps choose and implement without favoring a platform

DeployOpen plans, implements, hardens and supports self-hosted open-source platforms inside your own infrastructure. For Keycloak, Zitadel and Authelia, we start with the protocols, user sources, hosting limits and licensing terms that decide the fit, then build and document the platform you choose. Engagements are fixed-scope, with scope, deliverables and timelines agreed in writing before work starts.

How we scope

  • The written scope names the protocols, user sources and hosting targets each platform must meet.
  • Authelia lists no SAML support, so any SAML requirement is settled during scoping before build starts.
  • The written scope is agreed before work starts and lists deliverables, timelines and any licensing questions to confirm.

How we build

  • Deploy into your cloud account, data center or air-gapped network, with a supported production database for Keycloak and Zitadel.
  • Connect user sources, such as LDAP or Active Directory for Keycloak and Authelia, and SCIM v2 provisioning for Zitadel.
  • Run security testing on login flows, MFA, admin consoles and token handling, then harden and retest the configuration.

How we hand over

  • Written configuration records, runbooks and backup procedures for the platform you chose.
  • Upgrade documentation that tracks each platform's release cadence, such as Keycloak's four minor releases a year.
  • Compliance evidence prepared for your auditor, covering access controls and logging; DeployOpen does not issue audit reports.

How we support

  • Retainers cover ongoing support, upgrades and continuous testing after handover, agreed separately from the build.
  • Ask each project or vendor for its supported release lines and upgrade policy before committing.
  • Ask for a quote that itemizes build, testing, documentation and retainer costs, so each recurring cost is visible.

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.