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.

Self-hosted alternatives to Keycloak

Teams moving off Keycloak need an identity provider they can run themselves, with clear licensing and a manageable footprint. More about Keycloak

--sort
11 projects· by score

Projects

About these Keycloak alternatives

The projects listed here are open-source identity and access tools that you host on your own infrastructure. Dex is an OpenID Connect and OAuth 2.0 provider built around pluggable connectors, so it fits setups that already rely on upstream identity sources. Kanidm is described as a simple, secure, and fast identity management platform. Tinyauth presents itself as a small OpenID Certified authorization and authentication server. Casdoor covers a wide protocol range, including OAuth, OIDC, SAML, LDAP, and SCIM, along with a web UI. Each project is listed with its licence so you can check it against your own requirements.

11 open-source, self-hosted alternatives to Keycloak are listed here, ranked by popularity, maintenance and documentation.

Highest rated
authentik (26 272 GitHub stars, MIT license, written in Python), followed by Pocket ID and Casdoor
Docker
9 of the top 11 ship an official Docker image
Easiest to set up
Pocket ID, Dex and autentico
Recently updated
qauth v0.2.2 on 2026-11-08

Keycloak alternatives compared

ProjectLicenseLanguageStarsDockerSetupLatest releaseScore
authentikMITPython26 272YesModerateversion/2026.8.580
Pocket IDBSD-2-ClauseGo10 206YesEasyv2.19.279
CasdoorApache-2.0Go14 782YesModeratev4.26.078
DexApache-2.0Go11 239YesEasyv2.46.173
hankoAGPL-3.0Go9 070YesModeratebackend/v3.1.069
KanidmMPL-2.0Rust5 551YesAdvancedv1.12.067
authgearApache-2.0Go2 148YesAdvanced2026-11-04.062
rauthyApache-2.0Rust1 435YesModeratev0.37.260
openamOtherJava902YesAdvanced16.1.455
autenticoGPL-3.0Go55—Easyv3.3.044
qauthApache-2.0Typescript26—Moderatev0.2.234