Security & Privacy · Identity & Access Management (IAM)
Keycloak
Open-source identity and access management for modern applications and services
Keycloak is an Apache-2.0 identity and access management server for applications and services. It provides user federation, strong authentication, user management, fine-grained authorization, and OIDC and SAML integrations. Teams can run it from downloadable archives, a container image, or an operator. Red Hat also publishes a supported commercial build, while community deployments require operators to provide infrastructure, security configuration, databases, upgrades, and ongoing administration.
Key facts
- License
- Apache-2.0
- Main language
- Java, TypeScript
- Maintainer
- Keycloak community with Red Hat participation
- First released
- 2014
- Latest release
- 26.8.1, October 13, 2026
- GitHub stars
- 37,460, October 2026
- Hosted option
- No first-party hosted service; Red Hat offers a supported commercial distribution
What Keycloak is
Keycloak is an open-source identity and access management project whose repository was created on July 2, 2013. Its first final release, 1.0.0.Final, was published on September 10, 2014. The repository lists 37,460 stars, 9,087 forks, and an Apache License 2.0. Its purpose is adding authentication to applications and securing services without requiring every application to store users or implement authentication independently. The project is listed as a Cloud Native Computing Foundation incubation project. Red Hat publishes Red Hat build of Keycloak as a separate commercial product based on the open-source project. That offering replaces planned future Red Hat Single Sign-On releases, while the upstream project remains available for community operation and development.
How it works
A typical deployment centralizes login, account administration, federation, and authorization behind a Keycloak server. Administrators create realms, configure clients, manage users and groups, connect external identity sources, and define authentication and authorization behavior. Applications and services can integrate through documented OIDC and SAML scope, while the README identifies user federation, strong authentication, user management, and fine-grained authorization as core capabilities. The project can be started with the kc.sh or kc.bat scripts, run from its container image, or installed through documented Kubernetes and OpenShift operator paths. This workflow lets teams place identity policy in one administrative system while connecting browser applications, services, and organizational directories.
Architecture and recent releases
Keycloak is distributed as a Quarkus-powered server with ZIP and TAR.GZ archives, a container image, and an operator. Its repository lists Java and TypeScript among the project languages. User, client, and data is stored in a relational database, with documented support for MariaDB, Microsoft SQL Server, MySQL, Oracle, PostgreSQL, EnterpriseDB Advanced, Amazon Aurora PostgreSQL, Azure SQL Database, and Azure SQL Managed Instance. Release 26.8.0, published October 1, 2026, introduced supported SCIM user and group management and supported stateless multi-cluster mode, alongside preview or experimental wallet, token delegation, and declarative client administration capabilities. Release 26.8.1 followed on October 13 with security fixes.
License and pricing
The upstream project uses the Apache-2.0 license, and its repository identifies that license without imposing a core server subscription. The do not state a public monthly price for Red Hat build of Keycloak, nor do they identify an official Keycloak-hosted cloud service. Red Hat build of Keycloak is a commercial Red Hat distribution and support offering based on Keycloak, not of first-party hosted cloud availability. Community operators instead obtain the server through archives, containers, or an operator and provide hosting, databases, secrets, TLS, backups, monitoring, patching, and recovery processes. Dependencies and separately distributed components may carry their own license terms and require review.
Limitations and how it compares
Keycloak fits organizations that need self-managed identity, federation, strong authentication, fine-grained authorization, documented OIDC or SAML scope, and control over deployment location. Adoption requires an operational workflow: select a production database, configure hostname and TLS settings, build or deploy the server, establish administrative controls, test upgrades, and maintain recovery procedures. The default dev-file database is explicitly unsuitable for production. Release 26.8.1 includes many security fixes, reinforcing the need for disciplined update processes. Teams seeking Keycloak must therefore plan for platform ownership or purchase Red Hat's separate supported distribution.
Main features
- User federation. Connects external identity sources while centralizing application-facing identity administration and protocol handling.
- Strong authentication. Provides configurable strong authentication capabilities for protecting applications and services.
- Fine-grained authorization. Supports detailed authorization policies beyond basic user authentication.
- OIDC and SAML. The repository identifies OIDC and SAML among the project's integration topics.
- SCIM provisioning. Version 26.8 adds supported SCIM user and group management for identity-system provisioning workflows.
- Wallet credentials. Version 26.8 adds preview OID4VCI issuance and experimental OID4VP verification capabilities.
- Stateless multi-cluster mode. Version 26.8 promotes stateless multi-cluster deployment mode to supported status.
Self-hosting Keycloak
Download the ZIP or TAR.GZ archive, run bin/kc.sh or bin/kc.bat, or use the official container image with Docker or Podman. The downloads page also lists an operator for Kubernetes and OpenShift. Development mode uses the dev-file database, which the database guide says is unsuitable for production. Production requires a hostname, HTTPS or TLS configuration, secure secrets, and a supported relational database. Configuration can come from command-line parameters, environment variables, configuration files, or a Java KeyStore. Operators must plan database backups, upgrades, access controls, monitoring, and recovery procedures. Oracle deployments require separately installed drivers.
Strengths
- Apache-2.0 licensing supports broad use of the upstream project.
- Documented capabilities include federation, strong authentication, and fine-grained authorization.
- Archives, containers, and Kubernetes or OpenShift operators support varied deployment workflows.
- Version 26.8 adds supported SCIM and stateless multi-cluster capabilities.
Drawbacks
- Production requires operators to manage databases, TLS, configuration, upgrades, and recovery.
- The default dev-file database cannot be used for production deployments.
- The state no public price for Red Hat build of Keycloak.
What teams replace with it
Teams usually evaluate Keycloak when they want to move off Red Hat Single Sign-On.
For side-by-side commercial comparisons, browse our alternatives hub.
Frequently asked questions
Is Keycloak free?
The repository identifies the upstream project as open source under Apache-2.0. The do not state a per-user community license fee. Red Hat build of Keycloak is a separate commercial distribution and support offering. Self-managed users still pay for infrastructure, databases, security operations, administration, upgrades, and recovery.
Can companies use Keycloak commercially?
The repository identifies Apache-2.0 as the upstream project's license. The establish the license but do not reproduce its complete legal terms. Organizations should review the full license, notices, patents, dependencies, and any separate Red Hat subscription conditions before redistribution or commercial packaging.
What does production Keycloak require?
Production requires a hostname and HTTPS or TLS configuration. The database guide states that the default dev-file database is unsuitable for production and must be replaced with a supported relational database. Operators also need secure secrets, backups, upgrade planning, access controls, and operational recovery procedures.
What changed in Keycloak 26.8?
Release 26.8 added supported SCIM user and group management and supported stateless multi-cluster mode. It also introduced preview or experimental wallet credential capabilities, token-exchange delegation, and declarative client administration. Client secret rotation became supported. Release 26.8.1 followed with security fixes published October 13, 2026.
Does Keycloak have a hosted option?
The identify Red Hat build of Keycloak as a commercial Red Hat product based on the open-source project. They do not identify an official Keycloak-hosted cloud service or public monthly price. Community downloads instead provide archives, a container image, and an operator, leaving hosting and operations to the deploying organization.
Similar projects to compare
- ZitadelAGPL-3.0-only, with Apache-2.0 and MIT directory exceptionsZITADEL is an identity and access-management server for customer and workforce applications, offering OIDC, OAuth 2.0, SAML, passkeys, MFA, organizations, and APIs. The v3 and later repository is AGPL-3.0-only with selected Apache-2.0 and MIT exceptions; ZITADEL Cloud starts free and paid Pro starts at $100 monthly.
- AuthentikMIT (core), mixed repository; enterprise code under separate enterprise licenseAuthentik is an open-source identity provider for teams needing OIDC, OAuth2, SAML, LDAP, RADIUS, SCIM, and proxy access in one self-hosted service. Its core is MIT licensed, while enterprise code is separately licensed. There is no general hosted cloud product advertised, and enterprise pricing starts at $0.02 per external user monthly when billed annually.
- AuthgearApache-2.0Authgear is an Apache-2.0 open-source authentication and user-management platform maintained by Skymakers Digital Ltd. It supports self-hosting and Authgear Cloud, with a Free plan priced at $0 monthly. Documented capabilities include passwordless login, passkeys, MFA, social and enterprise login, SSO, user management, APIs, customizable interfaces, user import, and export.
- Better AuthMITBetter Auth is an MIT licensed, framework agnostic authentication and authorization framework for TypeScript. It embeds authentication in an application backend, supports application managed databases and stateless sessions, and offers email, password, social sign on, passkeys, magic links, usernames, and extensible plugins. Better Auth joined Vercel on July 7, 2026, while its open source framework remains framework and platform agnostic.
- CerbosApache-2.0Cerbos is an open-source authorization layer with a stateless Policy Decision Point that evaluates context-aware YAML policies for applications, gateways, workloads, services, and AI agents. It exposes HTTP and gRPC APIs, runs in customer infrastructure, and supports Git, disk, cloud, and database policy storage. Cerbos Hub adds hosted authoring, testing, distribution, and audit management from $25 per month.
- HankoAGPL-3.0 for backend; MIT for Hanko Elements and hanko-frontend-sdkHanko is an open-source authentication and user-management system built around an API. It supports passwords, passkeys, passcodes, MFA, social login, SAML SSO, sessions, webhooks, and customizable web components. The backend is AGPL-3.0, while Hanko Elements and the frontend SDK are MIT licensed. Hanko is available for self-hosting or Hanko Cloud, whose free plan includes 10,000 monthly active users.