Auth0Alternatives
FeaturesOpen SourceSelf-hostedB2BB2C
SubmitSign In

Discover

LatestOpen SourceSelf-hostedB2BB2CAll providers

AI & Agents

MCP AuthorizationAgent IdentitiesToken VaultAI Agent DetectionDevice LoginAll features

Data Residency

🇪🇺European Union🇺🇸United States🇬🇧United Kingdom🇨🇭Switzerland🇦🇺AustraliaAll regions

Compliance

SOC2GDPRISO 27001HIPAAPCI DSSAll compliance
Submit
/Blog
/Keycloak Alternatives: 14 Self-Hosted and Managed Options

Keycloak Alternatives: 14 Self-Hosted and Managed Options

Why teams leave Keycloak and what to use instead: 9 self-hosted options like Zitadel and authentik, and 5 managed ones, compared on our data.

Leonard HußkeLeonard Hußke•Nov 24, 2026•11 min read

Keycloak alternatives: from Keycloak, a Java server you run and upgrade, to nine self-hosted options (Zitadel, authentik, Ory, Casdoor, Logto, FusionAuth, SuperTokens, Better Auth, Authelia) and five managed ones (Auth0, WorkOS, Clerk, Cognito, Descope)
On this page
  1. Why teams look for a Keycloak alternative
  2. Keycloak alternatives compared
  3. Open-source Keycloak alternatives you can self-host
  4. Managed Keycloak alternatives
  5. How to move off Keycloak
  6. Pick the Keycloak alternative by the problem you have
  7. FAQ

Most teams look for Keycloak alternatives because of the work of running it, not because of missing features. If you want to stop operating an identity server, move to a managed provider such as Auth0, WorkOS, or Clerk. If you want to keep self-hosting, pick by the problem you have. Zitadel and Logto are built for multi-tenant B2B apps. authentik and Casdoor are full identity providers like Keycloak, without the Java runtime. Better Auth and SuperTokens put login inside your own app.

  • Keycloak is free, Apache 2.0 licensed, and still gaining features. Version 26.4 added passkeys, and 26.8 made the SCIM API a supported feature.
  • Upgrades are the main cost. Keycloak supports rolling updates only for patch releases. Every minor upgrade means shutting down the cluster, and it ships a new minor version every quarter.
  • 15 of the 37 providers in our directory are open source, and 17 can be self-hosted. FusionAuth is one of the two that are self-hosted but not open source.
  • The closest self-hosted replacements are Zitadel, authentik, and FusionAuth. Zitadel and FusionAuth document how to import Keycloak users with their password hashes.

Why teams look for a Keycloak alternative

Keycloak is a mature project. It is a CNCF incubating project with 38,005 stars on GitHub. It supports OpenID Connect, OAuth 2.0, and SAML, and it federates users from LDAP and Active Directory. Red Hat sells a supported build. The reasons to leave are about what it takes to run Keycloak.

Upgrades need downtime and a database backup. The Keycloak upgrading guide says to "Shut down Keycloak if no rolling update is supported, for example if you perform a minor or major upgrade." Rolling updates work for patch releases since Keycloak 26.6.0. The server migrates the database schema when it starts, and "Keycloak does not support rolling back the database changes". To roll back, you restore the old installation and the database backup.

Releases come often. Keycloak published 22 releases on GitHub in 2026 up to November, and four of them were minor versions (26.5 to 26.8). Each minor version needs the shutdown above.

Keycloak releases per year

Major, minor, and patch releases published on GitHub. 2026 runs to November

01020302021202220232024262025222026

Source: Keycloak releases on GitHub

Show data
Releases
202113
202213
202318
202423
202526
202622

Download this chart

You're welcome to use it in articles, reports and presentations. In return, please credit Auth0Alternativeswith a link to the article it comes from.

Attribution to use with the chart

Source: <a href="https://www.auth0alternatives.com/blog/keycloak-alternatives">Auth0Alternatives</a> by Auth0Alternatives

Custom themes need work on every upgrade. Keycloak's login pages are FreeMarker templates, and you restyle them with a custom theme. The upgrading guide says that custom themes "must be migrated to the new server". You compare every template you customized with its new version.

Multi-tenancy came late. Keycloak separates tenants with realms, and each realm has its own users, clients, and settings. The Organizations feature, which groups the users of one business customer inside a realm, has been fully supported only since Keycloak 26 in October 2024. Products that were built for B2B SaaS from the start, such as Zitadel and Logto, model customers as organizations by default.

You run a Java server. Keycloak runs on Quarkus and needs a relational database. For high availability you run a cluster and size its caches. If nobody on your team owns that cluster, look at the managed options below.

Keycloak keeps adding features. Keycloak 26.8 promoted the SCIM API "from preview to supported", and 26.4 added passkeys and MCP authorization server metadata. If a missing feature is your only reason to leave, check the latest release first.

Keycloak alternatives compared

The table compares the alternatives on the features that Keycloak users ask about most. "Yes" and "No" come from our listings, checked against each provider's docs. Text cells add a condition, such as a paid plan or a commercial license.

ProviderHostingLicenseSAMLSCIMLDAPOrganizations
KeycloakSelf-hostedApache 2.0
Yes
Yes, since 26.8
Yes
Yes
ZitadelSelf-hosted or cloudAGPL 3.0
Yes
Yes
Yes
Yes
authentikSelf-hostedMIT, plus an enterprise license
Yes
Yes
Yes
Yes
OrySelf-hosted or cloudApache 2.0, plus an enterprise licenseEnterprise licenseEnterprise license
Yes
Enterprise license
CasdoorSelf-hosted or cloudApache 2.0
Yes
Yes
Yes
Yes
LogtoSelf-hosted or cloudMPL 2.0
Yes
No
No
Yes
FusionAuthSelf-hosted or cloudProprietary, free Community plan
Yes
Enterprise planPaid plans
Yes
SuperTokensSelf-hosted or cloudApache 2.0, plus paid featuresPaid feature
No
No
Paid feature
Better AuthIn your appMIT
Yes
Yes
No
Yes
AutheliaSelf-hostedApache 2.0
No
No
Yes
No
Auth0ManagedProprietary
Yes
Yes
Yes
Yes
WorkOSManagedProprietary
Yes
Yes
No
Yes
ClerkManagedProprietary
Yes
Pro plan
No
Yes
Amazon CognitoManagedProprietary
Yes
No
No
No
DescopeManagedProprietary
Yes
Yes
Yes
Yes

Our directory tracks 55 features per provider. The chart counts how many of them each option supports. Keycloak's count of 38 doesn't include the SCIM API from 26.8 yet.

Features supported, Keycloak and its alternatives

Number of the 55 features that the Auth0Alternatives directory tracks

  • Descope54
  • Auth052
  • Ory48
  • WorkOS48
  • FusionAuth47
  • Better Auth42
  • Zitadel41
  • authentik41
  • SuperTokens39
  • Keycloak38
  • Clerk38
  • Casdoor37
  • Logto36
  • Amazon Cognito32
  • Authelia20

Source: Auth0Alternatives listings

Show data
Features (of 55)
Descope54
Auth052
Ory48
WorkOS48
FusionAuth47
Better Auth42
Zitadel41
authentik41
SuperTokens39
Keycloak38
Clerk38
Casdoor37
Logto36
Amazon Cognito32
Authelia20

Download this chart

You're welcome to use it in articles, reports and presentations. In return, please credit Auth0Alternativeswith a link to the article it comes from.

Attribution to use with the chart

Source: <a href="https://www.auth0alternatives.com/blog/keycloak-alternatives">Auth0Alternatives</a> by Auth0Alternatives

A higher count doesn't mean a better fit. Authelia scores low because it does one job, SSO and two-factor login in front of a reverse proxy, and it doesn't try to do more.

Open-source Keycloak alternatives you can self-host

15 of the 37 providers in our directory are open source, and every one of them can be self-hosted. Among those 15, 13 support SAML, 10 support organizations, and 5 have SCIM in our listings, 6 with Keycloak 26.8. The open-source and self-hosted pages list them all.

ProjectGitHub starsWritten in
Keycloak38,005Java
Better Auth30,838TypeScript
Authelia29,710Go
authentik26,418Python
Ory Hydra17,675Go
Zitadel15,637Go
SuperTokens15,347Java
Logto14,973TypeScript
Casdoor14,929Go
Ory Kratos13,963Go

The star counts come from each project's main repository on GitHub in November 2026.

Zitadel: multi-tenant B2B identity

Zitadel is the closest match if you use Keycloak realms to separate customers. Its data model has instances at the top, and "One instance can contain multiple organizations". It is a Go server that needs only PostgreSQL. It supports OpenID Connect, SAML 2.0, a SCIM 2.0 server, passkeys, and LDAP as a login source. It is OpenID Certified.

Zitadel moved its server from Apache 2.0 to AGPL 3.0 with version 3 in 2025. Its APIs and SDKs stay under Apache 2.0. Check the AGPL with your legal team if you modify the server. Zitadel Cloud is free for 100 daily active users, and the Pro plan costs $100 a month with 25,000 daily active users included.

Zitadel documents the most complete migration path off Keycloak. Its Keycloak migration guide converts a Keycloak realm export with the zitadel-tools CLI and imports users "including password hashes".

authentik: a full identity provider in Python

authentik covers the protocols most teams use Keycloak for: SAML, OAuth 2.0 and OIDC, LDAP, RADIUS, SCIM, and passkeys. It is written in Python and runs on PostgreSQL alone since version 2025.10, which removed the need for Redis. Docker Compose needs at least 2 CPU cores and 2 GB of RAM.

The core is MIT licensed. Enterprise features cost $5 per workforce user a month and $0.02 per customer user a month, billed annually. authentik has no hosted version. Its multi-tenancy feature is an Enterprise feature in alpha, so for B2B SaaS with many customers, Zitadel is the safer choice.

Ory: headless identity APIs

Ory splits identity into separate Go services. Kratos handles users and login, Hydra is an OpenID Certified OAuth 2.0 and OIDC provider, Keto handles permissions, and Oathkeeper is a proxy. Every core service is Apache 2.0. Kratos is headless, so you build the login UI yourself, optionally with the Ory Elements component library.

The trade-off is in the license. SAML, SCIM, and B2B organizations are part of the Ory Enterprise License, not the open-source build. Ory Network, the managed version, starts at $770 a year for one production environment. Pick Ory if you want full control of the UI and can staff the integration work.

Casdoor: one server with every protocol

Casdoor is a Go server with a React admin UI under Apache 2.0, like Keycloak. It acts as an OAuth 2.0 and OIDC provider, a SAML IdP, and a CAS server, and it also serves LDAP and RADIUS. Several organizations share one Casdoor, "each with its own users, groups, roles, applications, and branding". It runs on MySQL, PostgreSQL, SQL Server, SQLite, and other databases.

Casdoor has a Keycloak syncer that reads users from Keycloak's database schema. You can run both side by side and move apps one at a time. Its hosted plans start at $9 a month.

Logto: developer-first, with organizations

Logto is a TypeScript and Node.js server on PostgreSQL under MPL 2.0. It uses "organization" as its term for multi-tenancy, and it supports OIDC, OAuth 2.1, SAML apps, and passkeys. It has no SCIM and no built-in LDAP sync, so it fits SaaS products better than corporate directories.

Logto Cloud is free up to 50,000 MAU. The Pro plan starts at $24 a month, and organizations and enterprise SSO are $48 a month add-ons each.

FusionAuth: a single server, free but not open source

FusionAuth is the most direct swap for Keycloak's role: one Java application, PostgreSQL or MySQL, and optional Elasticsearch for search. It acts as a SAML identity provider, supports WebAuthn, and has tenants. The Community plan is free and self-hosted. FusionAuth is proprietary software, though, so you can't change or fork the code. LDAP connectors start on paid plans, and SCIM is on the Enterprise plan.

The FusionAuth Keycloak migration guide exports users with SQL from Keycloak's tables. FusionAuth ships a Keycloak-compatible PBKDF2 hashing plugin since version 1.34, so users keep their passwords.

SuperTokens: login inside your backend

SuperTokens has a core service plus backend SDKs for Node.js, Python, and Go and prebuilt or custom UI. Your app owns the login screens and sessions instead of redirecting to a separate server. The core is Apache 2.0, and "Self hosting the open source features is free without any limits". Some features, such as MFA, multi-tenancy, and SAML, are paid. The managed version is free under 5,000 MAU, then $0.02 per MAU.

Better Auth: a TypeScript library

Better Auth is not a server at all. It is an MIT-licensed TypeScript framework that runs inside your app and stores users in your database through Prisma, Drizzle, Kysely, or MongoDB adapters. Plugins add organizations, passkeys, SSO over OIDC or SAML 2.0, and an inbound SCIM 2.0 service. It acts as the service provider in SSO, not as an identity provider for your other apps.

Pick Better Auth if Keycloak protects one TypeScript product and nothing else. If Keycloak is the central login for many apps, it is the wrong replacement.

Authelia: SSO in front of a reverse proxy

Authelia is a companion for reverse proxies such as nginx, Traefik, Caddy, and HAProxy. It allows, denies, or redirects requests and adds two-factor login. It is also an OpenID Certified OpenID Connect provider. Users live in LDAP or a YAML file. Authelia doesn't support SAML yet, which is still in planning on its roadmap.

Authelia suits homelabs and internal tools behind a proxy. For SAML apps or customer sign-up, use authentik instead.

Managed Keycloak alternatives

A managed provider removes the work that drives most teams off Keycloak: no cluster, no upgrades, no database migrations. The cost moves to a monthly bill per user and per enterprise connection.

  • Auth0 is free up to 25,000 MAU, and paid plans start at $35 a month. B2B plans include 3 to 5 enterprise connections, and each extra connection costs $100 a month. Its bulk import accepts custom password hashes, Argon2 and PBKDF2 among them. The Auth0 vs Okta post covers its plans in detail.
  • WorkOS is free for the first million users of AuthKit. Enterprise SSO and Directory Sync cost $125 per connection a month for the first 15 connections, with lower prices at volume. It suits B2B SaaS that sells SSO to enterprises.
  • Clerk is free up to 50,000 monthly retained users per app. Pro costs $25 a month, or $20 billed annually, with one SSO connection included and $75 a month for each extra connection. It suits React and Next.js apps that want prebuilt UI.
  • Amazon Cognito gives 10,000 MAU free per AWS account on its Lite and Essentials tiers. SAML and OIDC federation is free for 50 MAU and then billed per user, with no fee per connection. It suits teams that already run on AWS.
  • Descope is free up to 7,500 MAU with 3 SSO connections, and Pro starts at $249 a month. It has a Keycloak migration guide that imports password hashes or migrates users on their next login.

How to move off Keycloak

The hard part of a migration is the passwords. If the new provider can't read Keycloak's password hashes, every user has to reset their password.

  1. Export the realm and its users. kc.sh export writes realms and users to JSON files. Keycloak's docs recommend stopping all nodes before you export, because a running cluster gives no consistency guarantee.
  2. Check which hash algorithm your users have. Keycloak 24 changed the default from PBKDF2-SHA256 to PBKDF2-SHA512. Keycloak 25 switched the default to Argon2 outside FIPS mode. Keycloak rehashes a password on the user's next login, so an old realm often has a mix.
  3. Confirm that the target imports those hashes. Zitadel and Descope document Keycloak imports with hashes. FusionAuth's plugin covers Keycloak's PBKDF2 hashes. Auth0, Clerk, WorkOS, and Cognito accept Argon2 and some PBKDF2 variants. SuperTokens lists bcrypt, Argon2, and Firebase scrypt, so PBKDF2 users would need a reset.
  4. Move apps one at a time. Keep Keycloak running and connect it to the new provider as an external OIDC or SAML identity provider. Casdoor and authentik both describe this side-by-side approach. To choose the protocol for each app, read SAML vs OIDC vs OAuth.

The feature pages for user import and password export list which providers support each step.

Pick the Keycloak alternative by the problem you have

Which Keycloak alternative fits: if you don't want to run, patch and upgrade an identity server, pick a managed provider such as Auth0, WorkOS or Clerk, or Cognito on AWS. If you sell to many business customers and need a tenant per customer, pick Zitadel or Logto, or WorkOS managed. If you want a full self-hosted IdP like Keycloak without the Java runtime, pick authentik or Casdoor, or Zitadel if you also need tenants. If you want login inside your app's code and database, pick Better Auth or SuperTokens, or Ory for headless APIs. If you only need SSO and 2FA in front of self-hosted apps, pick Authelia.

If running Keycloak is the problem, pick a managed provider. Choose WorkOS for B2B SaaS that sells enterprise SSO, Clerk for React apps, Cognito on AWS, and Auth0 for the broadest feature set.

If you sell to many business customers, pick Zitadel. It has organizations at its core, a SCIM server, and a documented Keycloak import with password hashes. The B2B providers page and the organizations feature page list more options.

If you want Keycloak's scope without the Java runtime, pick authentik or Casdoor. If you want one server in Keycloak's role and accept a free proprietary license, pick FusionAuth.

If Keycloak protects only your own app, pick Better Auth for TypeScript or SuperTokens for Node.js, Python, and Go backends.

If you only need SSO in front of internal tools, pick Authelia.

If none of these problems applies to you, stay on Keycloak and plan for its quarterly upgrades. It is free, it now has SCIM and passkeys, and its SAML and LDAP support is broader than most alternatives offer.

FAQ

For a full identity provider, Zitadel or authentik. Zitadel fits multi-tenant B2B apps and imports Keycloak users with their password hashes. authentik covers SAML, OIDC, LDAP, RADIUS, and SCIM in one Python server on PostgreSQL. Both are free to self-host.

Yes. Keycloak is licensed under Apache 2.0, and the project has no paid edition. You pay for the servers, the database, and the time to run and upgrade it. Red Hat sells a supported version, the Red Hat build of Keycloak.

For multi-tenant SaaS, often yes. Zitadel models customers as organizations inside an instance, and it runs as a Go server on PostgreSQL. Keycloak supports more protocols and has a larger community. Zitadel's server is AGPL 3.0, while Keycloak is Apache 2.0. See Zitadel vs Keycloak for the full comparison.

It needs less infrastructure. Since version 2025.10, authentik runs on PostgreSQL alone, and its Docker Compose setup needs 2 CPU cores and 2 GB of RAM. Keycloak runs on the JVM and needs cache tuning for a cluster. Both are full identity providers with SAML, OIDC, and LDAP.

Yes, if the target can read Keycloak's hashes. Zitadel, Descope, and FusionAuth document Keycloak imports with password hashes. Check whether your users have Argon2 or PBKDF2 hashes first, because Keycloak changed its default algorithm in versions 24 and 25.

Mostly because of the work of running it. Minor upgrades need a full cluster shutdown and a database backup, and a new minor version comes every quarter. Custom login themes need changes on upgrades. Organizations, Keycloak's model for B2B customers, has been fully supported only since version 26. Missing features are rarely the reason, because Keycloak now supports passkeys and SCIM.

Share:

On this page

  1. Why teams look for a Keycloak alternative
  2. Keycloak alternatives compared
  3. Open-source Keycloak alternatives you can self-host
  4. Managed Keycloak alternatives
  5. How to move off Keycloak
  6. Pick the Keycloak alternative by the problem you have
  7. FAQ
Favicon

 

  
 
Subscribe to our newsletter

Join other CTOs and engineers to get the latest news and to keep your apps secure.

Browse:Open SourceSelf-hostedB2BB2CFeaturesComplianceData Residency
Quick Links:Contact UsSubmitBlogAbout Us
Built withDirstarter
Auth0Alternatives
FeaturesOpen SourceSelf-hostedB2BB2C
SubmitSign In

Discover

LatestOpen SourceSelf-hostedB2BB2CAll providers

AI & Agents

MCP AuthorizationAgent IdentitiesToken VaultAI Agent DetectionDevice LoginAll features

Data Residency

🇪🇺European Union🇺🇸United States🇬🇧United Kingdom🇨🇭Switzerland🇦🇺AustraliaAll regions

Compliance

SOC2GDPRISO 27001HIPAAPCI DSSAll compliance
Submit
Ad
Favicon of DescopeDescope
Drag & Drop Your Auth. Add secure, frictionless authentication journeys for your customers, partners, and AI agents.
Visit Descope
Ad
Favicon of AuthsignalAuthsignal
You might not need to replace your auth provider. Add passkeys, adaptive MFA, and a no-code orchestration engine on top of the identity stack you already run.
Visit Authsignal
Popular Auth0 Comparisons:
Engity vs Auth0
Amazon Cognito vs Auth0
Entra External ID vs Auth0
Firebase Authentication vs Auth0
Clerk vs Auth0
WorkOS vs Auth0
Frontegg vs Auth0
FusionAuth vs Auth0
Supabase Auth vs Auth0
Auth.js vs Auth0
Ory vs Auth0
SuperTokens vs Auth0
Logto vs Auth0
Hanko vs Auth0
Hexclave vs Auth0
Authress vs Auth0
Popular WorkOS Comparisons:
Engity vs WorkOS
Auth0 vs WorkOS
Amazon Cognito vs WorkOS
Entra External ID vs WorkOS
Firebase Authentication vs WorkOS
Clerk vs WorkOS
Frontegg vs WorkOS
FusionAuth vs WorkOS
Supabase Auth vs WorkOS
Auth.js vs WorkOS
Ory vs WorkOS
SuperTokens vs WorkOS
Logto vs WorkOS
Hanko vs WorkOS
Hexclave vs WorkOS
Authress vs WorkOS