Cloud identity platform for workforce single sign-on, adaptive MFA, a universal directory, lifecycle management and identity governance.
- Home
- Software
- Identity and Access Management
- Keycloak
Keycloak by Keycloak project (CNCF)
Open-source identity and access management server with SSO, identity brokering, LDAP and Active Directory federation, MFA and fine-grained authorization, run self-hosted.
Keycloak is an open-source identity and access management server. Applications hand authentication to Keycloak, which provides single sign-on and single logout across them, login pages, user federation with existing LDAP or Active Directory servers, identity brokering to other OpenID Connect or SAML 2.0 providers, social login, and fine-grained authorization services.
The project is a Cloud Native Computing Foundation incubation project released under the Apache License 2.0. There is no hosted Keycloak service from the project. Red Hat sells a supported downstream distribution, the Red Hat build of Keycloak, which it describes as the successor to Red Hat Single Sign-On.
Keycloak suits development and platform teams that want to secure their own applications and APIs with standard protocols and are prepared to run the server, its database and upgrades themselves. The current release listed on the downloads page is 26.8.2.
Key takeaways
- Free and open source under Apache 2.0, with no paid edition from the project.
- Supports OpenID Connect, OAuth 2.0 and SAML, plus identity brokering and social login.
- Federates existing LDAP and Active Directory users instead of requiring a migration.
- Authentication options include OTP, WebAuthn, passkeys, recovery codes, Kerberos and X.509 certificates.
- Self-hosted only: you run Keycloak on Linux, Windows, containers or OpenShift with your own database.
Key features
Technical details
Pricing
Keycloak is free to download and run. The project sells nothing; commercially supported builds come from third parties such as Red Hat, whose prices are not published on the product page.
Source: keycloak.org, checked November 2026. Prices can change; confirm with the vendor.
Advantages and limitations
Advantages
- No license cost and no per-user pricing, whatever the number of users or realms.
- Standards-based OIDC, OAuth 2.0 and SAML support, with adapters and client libraries for securing applications.
- Federates existing LDAP and Active Directory directories without migrating users.
- Detailed documentation for production setup, high availability and Kubernetes operation.
Limitations
- No hosted service from the project: you operate the server, database, TLS, upgrades and backups.
- Kubernetes distributions other than OpenShift are supported only on a best-effort basis.
- No access request or certification campaign features are documented, so identity governance needs a separate tool.
- Commercial support requires a third-party distribution such as the Red Hat build of Keycloak.
Suitable use cases
- Securing in-house applicationsCentralize login for internal and customer-facing web apps and APIs with OpenID Connect or SAML.
- Identity brokeringLet users sign in with a corporate identity provider or social accounts while applications trust only Keycloak.
- LDAP and AD front endPut modern SSO and MFA in front of an existing LDAP or Active Directory user base.
- Kubernetes platformsRun identity as part of a container platform using the Keycloak Operator on OpenShift or Kubernetes.
Things to check before you choose
- Who will operate Keycloak in production, including database, clustering and upgrades.
- Whether you need commercial support, and from which distribution.
- Which database and platform you will run it on, against the supported configurations list.
- Whether pre-built connectors for SaaS applications matter, or whether your apps can use OIDC or SAML directly.
- Whether you also need identity governance, which Keycloak does not provide.
Keycloak alternatives
All identity and access management software →
Identity platform for workforce, customer, B2B and AI agent identities, covering SSO, MFA, directory, governance and threat protection as cloud or self-managed software.
Microsoft's cloud identity and access management service, formerly Azure Active Directory, for SSO, MFA, Conditional Access and hybrid identity.
Cloud-delivered identity and access management from Cisco that combines multifactor authentication, single sign-on, a built-in directory and device trust checks.
Cloud directory platform that combines identity, SSO, MFA, cloud LDAP and RADIUS with Windows, macOS and Linux device management, patching and remote access.
Self-hosted identity provider for SSO, MFA, application proxy and remote access, with an MIT-licensed core and a paid Enterprise edition.
More in single sign-on (sso)
Other single sign-on (sso) products in the directory. They share this subcategory but are not necessarily direct alternatives.
An AGPL-3.0 open-source identity platform for SaaS and B2B products, with multi-tenant organizations, OIDC, SAML, passkeys and MFA, as a cloud service or self-hosted.
A GPL-3.0 open-source identity, policy and audit system for Linux and UNIX that combines LDAP, Kerberos SSO, a certificate authority and DNS, with Active Directory trusts.
An infrastructure access platform that replaces static keys with short-lived certificates for SSH, Kubernetes, databases, RDP and apps, with JIT access and session recording.
Frequently asked questions
Is Keycloak free?
Yes. Keycloak is open source under the Apache License 2.0, with no license fee and no paid edition from the project. Red Hat offers a commercially supported distribution called the Red Hat build of Keycloak.
Who maintains Keycloak?
Keycloak is a Cloud Native Computing Foundation incubation project, and participation is governed by the CNCF Code of Conduct. The source code is on GitHub at keycloak/keycloak.
Which databases does Keycloak support?
The database guide lists MariaDB, Microsoft SQL Server, MySQL, Oracle Database, PostgreSQL, EnterpriseDB Advanced, Amazon Aurora PostgreSQL, Azure SQL Database and Azure SQL Managed Instance.
Does Keycloak support passkeys and MFA?
Yes. The server administration guide documents OTP policies, W3C WebAuthn, passkeys, recovery codes, Kerberos and X.509 client certificate authentication.
Can Keycloak run on Kubernetes?
Yes. The project publishes a container image and a Keycloak Operator. OpenShift 4.18 to 4.21 is supported, and other Kubernetes distributions such as EKS or AKS are supported on a best-effort basis.
Research sources
- Keycloak: home and features
- Keycloak: downloads
- Keycloak: guides
- Keycloak: supported configurations
- Keycloak: configuring the database
- Keycloak: server administration guide
- Keycloak: GitHub repository
- Red Hat: Red Hat build of Keycloak