selfhost.directory

The index of self-hostable projects — ranked, categorized and served with live updates.
Own your data and stop giving it to big tech.

keycloak logo

Self-host keycloak

26.8.2

Open-source identity and access management with SSO

ReleaseOpen SourceApache-2.0
Updatedlast week
LanguageJava
Setup difficultyModerate
MobileResponsive
Stars
37 849
Ports
8080 (HTTP), 8443 (HTTPS), 9000 (Management (health/metrics))
Docker
quay.io/keycloak/keycloak
Install with Docker
Keycloak login screenKeycloak admin consoleKeycloak account management console

What is keycloak?

Keycloak is an open-source identity and access management server for modern applications and services. It delivers single sign-on, user federation with LDAP and Active Directory, identity brokering with social login and OIDC/SAML identity providers, an admin console for centralized management, and an account console for user self-service. It supports standard protocols for authentication and authorization, and offers fine-grained authorization services. Keycloak runs on Java (OpenJDK 17/21/25) and requires a relational database such as PostgreSQL, MySQL, or MariaDB. It can be deployed via Docker, Podman, Kubernetes, OpenShift, or as a standalone distribution on Linux and Windows.

keycloak alternatives

Should you self-host keycloak?

keycloak scores 86/100 on selfhost.directory (how scoring works) and ranks #1 of 40 in Authentication. It has 37 849 GitHub stars, +585 in the last 30 days.

It shipped 15 stable releases in the past year. The latest, 26.8.2, came out on 5 November 2026. New versions land roughly every 2 weeks.

Setup is moderate: expect some configuration beyond a single command. An official Docker image is available. It is Apache-2.0-licensed and written mostly in Java.

Its closest alternative on selfhost.directory is Pocket ID (79/100, 10 288 stars). keycloak scores higher overall. See keycloak vs Pocket ID side by side.

Features

  • Single Sign-On

keycloak README

Keycloak

GitHub Release OpenSSF Best Practices CLOMonitor OpenSSF Scorecard Artifact Hub GitHub Repo stars GitHub commit activity Translation status

Open Source Identity and Access Management

Add authentication to applications and secure services with minimum effort. No need to deal with storing users or authenticating users.

How to install keycloak

Install keycloak with Docker

Environment variables
KC_BOOTSTRAP_ADMIN_USERNAME, KC_BOOTSTRAP_ADMIN_PASSWORD, KC_DB, KC_DB_URL, KC_DB_USERNAME, KC_DB_PASSWORD, KC_HOSTNAME, KC_FEATURES, KC_HEALTH_ENABLED, KC_METRICS_ENABLED

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

Development mode with insecure defaults; for production use optimized images.

How to configure keycloak

  • KC_HEALTH_ENABLEDfalseIf the server should expose health check endpoints

    values: true, false

  • KC_METRICS_ENABLEDfalseIf the server should expose metrics

    values: true, false

  • KC_DBdev-fileThe database vendor

    values: dev-file, dev-mem, mariadb, mssql, mysql, oracle, postgres, tidb

  • KC_DB_URLThe full database JDBC URL

    values: String

  • KC_DB_USERNAMEThe username of the database user

    values: String

keycloak releases & version history

@ Every self-hosted release, weekly

One Monday email with the week's stable releases across the directory.

More in Authentication

Rate this project

Click to rate — no account needed.

0 comments

Posting as guest
Loading comments…