Skip to content

Keycloak

Self-hosted identity provider with SSO, SAML, OIDC and LDAP federation for app teams

Permissive (OSI) · Apache-2.0

Listed by , founder & editor

87

Health

Thriving

Overview

Stars

38,029

Last commit

today

Nov 2026

Repository age

13 years

since Jul 2013

Latest version

26.8.2

Nov 2026

Contributors

–

38 active in 90 days

Releases

24

last 12 months

Language

Java

Keycloak is an identity and access management server. It handles login, user storage and authentication so the applications you build do not have to. It supports single sign-on, user federation, strong authentication, user management and fine-grained authorization.

The server is written in Java and licensed under Apache 2.0. You can run it from a downloaded distribution with bin/kc.sh or bin/kc.bat, or as a Docker image from quay.io. Adapters and client libraries exist for Java and Node.js, and the project publishes quickstarts. It speaks OIDC and SAML and can federate LDAP and Active Directory.

The project began in 2013, ships frequent releases and is governed under the CNCF Code of Conduct. You run and upgrade it yourself, and there are no per-user fees.

It fits as a self-hosted replacement for Okta, Auth0 and Microsoft Entra ID when you need an identity provider. It can sit in front of Active Directory for SSO, but it does not replace a Windows domain controller.

Who it's for

Platform teams running many internal apps

One self-hosted SSO layer with SAML and OIDC covers all of them without per-user fees.

Skip if: You want a managed service with vendor support and a prebuilt app integration catalog.

Developers adding login to a Java or Node.js product

Adapters, client libraries and quickstarts let you hand off authentication and user storage.

Skip if: You want polished hosted login pages and a wide range of embeddable SDKs.

IT teams with an existing LDAP or AD directory

User federation puts SSO in front of the directory you already run.

Skip if: You need domain join, Group Policy or device management.

The problem it solves

Every application that stores its own users and passwords adds work and security risk. Commercial identity services solve this but charge per user and host your identities. Keycloak gives you one login service that you run yourself.

Strengths

  • Apache-2.0 license with no per-user fees
  • Supports SAML, OIDC and LDAP federation in one server
  • Active project: 24 releases in the past year, 35 recent contributors
  • Runs from a zip distribution or a Docker image
  • Fine-grained authorization alongside authentication

Trade-offs

  • You host, secure and upgrade it yourself
  • No device management or Windows domain controller role
  • No managed cloud offering or vendor support from the project
  • No prebuilt catalog of app integrations

Keycloak replaces

Self-host Keycloak

Self-hostable
Yes

Quick start

docker run quay.io/keycloak/keycloak start-dev

From the project's own install instructions. Check the docs for production settings.

In the community

Frequently asked questions

Is Keycloak free?

Yes. It is released under the Apache License 2.0, and you pay no per-user fees. You cover your own hosting and operations.

Can I self-host it?

Yes. Run the distribution with bin/kc.sh or bin/kc.bat, or use the Docker image from quay.io.

Does it replace Active Directory?

Only for SSO. It can federate LDAP or AD and act as an OIDC or SAML provider. It does not provide domain join, Group Policy or Kerberos/NTLM domain controller functions.

Which protocols does it support?

SAML and OIDC for single sign-on, plus LDAP user federation.

Keycloak compared

Other Okta alternatives

Compare all 4 Okta alternatives →

Similar tools in Identity and access management

authelia

Identity and access management

Self-hosted login portal with SSO and two-factor for apps behind a reverse proxy

30k 1.6k yesterday Thriving Apache-2.0

Replaces KeycloakOkta

Teleport

Identity and access management

Identity-aware access proxy for SSH, Kubernetes, databases and internal apps

21k 2.2k 3 months ago Slowing AGPL-3.0

Ory

Identity and access management

API-first identity server for developers who build their own login and signup flows

14k 1.2k 4 months ago Slowing Apache-2.0

Replaces KeycloakAuth0

hydra

Identity and access management

Self-hosted OAuth 2.0 and OpenID Connect server for teams with their own login system

18k 1.6k 4 months ago Dormant Apache-2.0

JumpServer

Identity and access management

Open-source bastion host for DevOps teams controlling SSH, RDP and database access

32k 5.8k today Thriving GPL-3.0

Logto

Identity and access management

Self-hostable auth for multi-tenant SaaS with SSO, RBAC and OIDC

15k 1.2k today Thriving MPL-2.0

Replaces Auth0