Keycloak Alternatives
Seven ways to replace <em>Keycloak</em>, self-hosted or managed, and when to keep it.
People rarely leave Keycloak over its licence: it is Apache 2.0 and free. They leave because running it is a job (Java, a production database, a reverse proxy, themes, upgrades). If you want to keep self-hosting with the same protocols, take authentik. If you sell to businesses and need one organisation per customer, take Zitadel. If you want to stop running an identity server, Auth0 is free up to 25,000 monthly active users. Below are the seven alternatives we compared, with licences read in each repository and prices read on each pricing page.
The ranking is editorial: a sponsored spot is always flagged on its card, and no affiliate link changes a score.
Why teams look past Keycloak
Keycloak is a serious piece of software: single sign-on, identity brokering with OpenID Connect or SAML 2.0 providers, LDAP and Active Directory federation, an admin console, and it is a Cloud Native Computing Foundation incubation project. Nothing on this list beats it on price, since the licence costs nothing. The reasons to leave are about the work around it, and they show up in Keycloak's own documentation.
Production is a project of its own
It is a Java server with real memory needs
Upgrades can break things
Customising login screens means FreeMarker
Support is a community unless you buy a distribution
Multi-tenant B2B is awkward with realms
authentik
authentik is a self-hosted identity provider that speaks the same languages as Keycloak: OIDC, OAuth 2.0, SAML, LDAP, SCIM, RADIUS and a proxy mode for apps that have no login of their own. The free open source edition includes SAML, LDAP and SCIM, which is where many "open" alternatives start charging. Its login and enrollment journeys are built as flows and stages in the admin, so a passwordless or invitation-only signup is configuration, not a custom Java extension. The code outside the authentik/enterprise/ folder is MIT, which is even more permissive than Keycloak's Apache 2.0, but the enterprise folder carries its own licence.
How the price reads against Keycloak: both cost nothing to run yourself. authentik Enterprise is $5 per workforce user per month and $0.02 per customer account per month, billed annually, so 200 employees cost $12,000 a year and 50,000 customer accounts $1,000 a month. Billing counts every registered account, not monthly actives, so dormant customer accounts still cost $0.02 each. Enterprise adds the Google Workspace and Microsoft Entra ID integrations, mTLS and device trust; support tickets come only with subscriptions over $1k a year. Enterprise Plus starts at $20k a year, with FIPS compliance for FedRAMP. Tip: a homelab or a ten-person team rarely needs Enterprise. If you want it for support, note that 10 workforce seats ($600 a year) stay under the $1k line; 17 seats ($1,020 a year) is the smallest workforce plan that opens tickets.
- SAML, LDAP and SCIM in the free edition
- Visual flows and stages for login journeys
- MIT licence outside the enterprise folder
- Enterprise at $5/workforce user/mo yearly
- ✓Covers almost every Keycloak protocol without Java extensions
- ✓Proxy outpost protects apps with no built-in login
- ✓Customer accounts priced at $0.02 each per month
- ✗Support is community-only (Discord, GitHub) without a subscription
- ✗Some directory integrations sit in Enterprise
- ✗Outposts add components to run for proxy and LDAP
| Criterion | authentik | Keycloak |
|---|---|---|
| Licence | MIT (enterprise folder separate) | Apache 2.0 |
| Login customisation | Flows and stages in the admin | FreeMarker themes and Java SPIs |
| Paid support | Enterprise subscriptions | Red Hat build of Keycloak |
Pick authentik when you want to keep self-hosting and keep SAML and LDAP, with less Java. If your team would rather stop running servers, go to Auth0 or Zitadel Cloud instead.
Zitadel
Zitadel is an identity platform written in Go that treats organisations as first-class objects, which is the piece B2B SaaS teams struggle to model with Keycloak realms. You get OIDC, OAuth 2.0, SAML, passkeys, a full API and Terraform support, and you can run it on Zitadel Cloud or on your own infrastructure. Self-hosting needs a PostgreSQL database; for tests the docs say 1 CPU and 512MB of memory are more than enough, and for high availability they point to Kubernetes and an official Helm chart.
How the price reads against Keycloak: Zitadel Cloud Free costs US$0 a month and includes 100 daily active users, unlimited users and organisations and 3 identity providers. Pro costs US$100 a month ($1,200 a year) with 25,000 daily active users included and a custom domain; each extra 2,500 DAU adds $50. The Pro card shows a 1h response SLO, but Zitadel's detailed plan table gives Pro a 48-hour support SLO, with 1h as a paid add-on. Note the unit: Zitadel counts daily active users, not monthly ones, so compare it with an MAU price carefully. The licence changed with version 3 in 2025: the server is now GNU AGPL v3, while the proto definitions stay Apache 2.0 and the client packages are MIT. Self-hosting for your own login is fine under the AGPL, but if you modify the server and offer it to others over a network, the AGPL asks you to share your changes, or you buy the commercial licence.
- Organisations built in for B2B tenants
- Cloud or self-hosted on PostgreSQL
- Free cloud plan with 100 daily active users
- Pro at US$100/month for 25,000 DAU
- ✓Multi-tenancy without one realm per customer
- ✓Small footprint for a test instance
- ✓API and Terraform for GitOps teams
- ✗AGPL v3 since v3, stricter than Keycloak's Apache 2.0
- ✗LDAP only as an inbound identity provider
- ✗1h support SLO is a paid add-on on Pro
| Criterion | Zitadel | Keycloak |
|---|---|---|
| Licence | GNU AGPL v3 | Apache 2.0 |
| Tenants | Organisations per customer | Realms |
| Managed option | Zitadel Cloud, from US$0 | None from the project |
Pick Zitadel when each of your customers needs its own organisation and SSO. If your legal team rejects the AGPL, prefer authentik or Ory; if your apps need an LDAP server, authentik serves one in its free edition.
FusionAuth
FusionAuth is a customer identity server you can download and run, or rent as a hosted instance. FusionAuth Community is free and unlimited on your own infrastructure, and the comparison table lists SAML v2 and single sign-on in every plan, Community included. The API is the product: users, applications, tenants, themes and webhooks are all driven by REST, which suits teams that manage identity from code. One fact many guides get wrong: FusionAuth is not open source. Its licence agreement treats the software as proprietary, with a free tier you can download, so you cannot fork or patch the server the way you can with Keycloak.
How the price reads against Keycloak: Community costs nothing, like Keycloak. Hosting and premium features start with Starter, from $162 a month billed annually ($1,944 a year), which adds advanced MFA and application theming. Essentials starts at $240 a month billed annually and adds email support with a 24 to 48 hour response during business hours; Enterprise, with 24/7 support and high availability hosting, is on quote. Those are the prices at 1,000 MAU, the lowest setting of the pricing slider, and each one climbs with the MAU you select. Tip: price the support you need before the features you want, and move the slider to your real MAU before you compare.
- Community edition free and unlimited
- SAML v2 and SSO in every plan
- REST API for every object
- Starter from $162/mo billed yearly
- ✓Self-hosted like Keycloak, without the Java runtime
- ✓Same product on your server or in its cloud
- ✓Clear upgrade path to a vendor contract
- ✗Proprietary licence, not open source
- ✗Hosted prices climb with the MAU slider
- ✗Email support only from Essentials
| Criterion | FusionAuth | Keycloak |
|---|---|---|
| Licence | Proprietary, free tier | Apache 2.0 |
| Hosted option | From $162/mo yearly | None from the project |
| Support | Email from Essentials | Community or Red Hat |
Pick FusionAuth when you want to self-host now and buy support later from the same vendor. If an open source licence is a requirement, take authentik, Ory or Zitadel instead.
Auth0
Auth0 is the managed answer to the main reason people leave Keycloak: running it. There is no server, database or upgrade to own; you configure tenants, connections and Actions in a dashboard and call SDKs. The free plan covers up to 25,000 monthly active users, with 1 custom domain (credit card verification required) and 1 enterprise connection, so a first SAML customer fits in it. Auth0 reports over 99.99% monthly uptime for most regions, and it has a startup plan with 100K monthly external active users.
How the price reads against Keycloak: you swap infrastructure and staff time for a per-MAU bill. Paid plans are priced by MAU band: B2C Essentials starts at $35 a month and B2B Essentials at $150 a month, each for up to 500 monthly active users, and Professional starts at $240 (B2C) and $800 (B2B). The catch is the jump from Free to paid: the free plan holds 25,000 users, but the paid price you see is for 500, so a growing app that needs one paid feature pays for its whole MAU band. Tip: if business customers will sign in with SAML, price the B2B plans from day one. The Free plan includes 1 enterprise connection, but the paid B2C plans ask you to upgrade to B2B to keep enterprise connections, self-service SSO and SCIM, at $150 a month instead of $35 for 500 MAU. If you already run Auth0 and the MAU bill is why you are reading this, our guide to switching away from Auth0 covers the reverse move. Our Auth0 integration guide for Make shows how to push new signups to your other apps.
- 25,000 MAU on the free plan
- 1 enterprise connection free
- Over 99.99% monthly uptime reported
- Startup plan with 100K external MAU
- ✓Nothing to host, patch or upgrade
- ✓Mature SDKs and Actions for custom logic
- ✓Enterprise SSO through B2B plans
- ✗Bill grows with every active user
- ✗No self-hosting or on-premise option
- ✗Paid prices quoted for a 500 MAU band
| Criterion | Auth0 | Keycloak |
|---|---|---|
| Hosting | Managed cloud only | Self-hosted |
| Free scope | 25,000 MAU | Unlimited, you run it |
| Paid entry | $35/mo for 500 MAU (B2C) | Your servers and staff time |
Pick Auth0 when the cost of running Keycloak is staff time and you have under 25,000 active users. Past that, model your MAU bill against Zitadel Pro or self-hosted authentik first.
Ory
Ory splits what Keycloak does into separate services: Kratos for users and login, Hydra for OAuth 2.0 and OpenID Connect, Keto for permissions and Oathkeeper as an access proxy. Each runs on its own, so a team that only needs an OAuth 2.0 server can deploy Hydra alone. The open source projects use the Apache 2.0 licence, the same as Keycloak. You build your own login screens, which is freedom for a product team and work for an IT team.
Price check: self-hosting the open source services is free, but Ory positions that tier for evaluation and prototyping. SLA-backed CVE patching comes with the Continuous Security License and 24/7 SLA support with the Ory Enterprise License, both priced on quote. Ory Network, the managed version, has a free Developer plan, then Production at $770 a year (about $64 a month) with $21.00 of monthly credit, and Growth at $9,350 a year. Usage is billed per aDAU, $0.14 per aDAU per month on Production. Note that Growth lists B2B SSO as OIDC only, so check SAML before you plan an enterprise rollout on Ory Network. Tip: count your daily actives, not your sign-ups, because the meter is aDAU.
- Kratos, Hydra, Keto and Oathkeeper
- Apache 2.0, like Keycloak
- Ory Network Production at $770/year
- Each service deployable alone
- ✓Pick only the pieces you need
- ✓Same licence family as Keycloak
- ✓Managed option with a free Developer plan
- ✗You build and host your own login UI
- ✗Self-hosted production hardening is a paid licence
- ✗Growth B2B SSO listed as OIDC only
| Criterion | Ory | Keycloak |
|---|---|---|
| Architecture | Separate services | One server |
| Licence | Apache 2.0 | Apache 2.0 |
| Managed entry | $770/year | None from the project |
Pick Ory when your engineers want composable services and a permissive licence. If you need SAML and an admin console out of the box, authentik or FusionAuth fit better.
Okta
Okta is the commercial reference for workforce identity: employees sign in once and reach their SaaS apps, with MFA, lifecycle management and access governance sold as suites. If you run Keycloak mainly to give staff SSO into internal tools and SaaS, Okta replaces both the server and the team that maintains it. All Workforce Identity suites are billed annually. Starter begins at $6 per user per month, Core Essentials at $14 and Essentials at $17. For customer login, Okta Customer Identity starts with an Enterprise base platform at $3,000 per month, billed annually, with usage add-ons on top.
How the price reads against Keycloak: the trap is the floor. Okta Workforce Identity requires a $1,500 annual contract minimum, so a team under 21 employees pays more per head than the $6 list price (1,500 divided by $72 a year is 20.8 seats). On the customer side, $3,000 a month is $36,000 a year before any active user is billed, which rules Okta out for most apps that leave Keycloak to save money. The free Integrator plan is for building and testing only, with up to 10 monthly active users. Tip: if you need customer login from the Okta group, look at Auth0 above. Already on Okta and weighing an exit? Our Okta switching guide compares the options, and our Okta integration guide for n8n shows how to automate user onboarding and offboarding, as does our Okta integration for Zapier.
- Workforce Starter at $6/user/mo yearly
- Essentials at $17/user/mo yearly
- $1,500 annual minimum
- Customer Identity from $3,000/month yearly
- ✓Nothing to run for employee SSO
- ✓Lifecycle and governance in the suites
- ✓Large catalogue of prebuilt app integrations
- ✗Annual contracts only
- ✗$1,500 minimum hurts small teams
- ✗No self-hosting at all
| Criterion | Okta | Keycloak |
|---|---|---|
| Hosting | Managed only | Self-hosted |
| Billing | Per user, annual contract | Free licence |
| Customer login | From $3,000/month yearly | Included |
Pick Okta when Keycloak serves your employees and you have budget for per-seat annual billing. For customer login on a budget, authentik, Zitadel or Auth0 cost far less.
SuperTokens
SuperTokens is an authentication layer for your own app, not a central identity provider for a whole company. Its SDKs render login inside your frontend and its core handles sessions, social login, passwordless, account linking and multi-tenancy. The core is Apache 2.0, except the ee/ folder, which has its own licence. You can let SuperTokens host the core or run it yourself. Paid features such as MFA and account linking are billed per MAU in either case.
How the price reads against Keycloak: the cloud is free under 5K monthly active users, then $0.02 per MAU. The first 5,000 are not a free allowance: the pricing calculator shows $100 a month at 5,000 MAU and $400 at 20,000, so every MAU is billed once you reach the threshold. The pricing page promises "No 10X surprise increases in price". The trap sits in the add-ons: MFA costs $0.01 per MAU with a minimum billing of $100 a month, so you pay $100 even below 10,000 MAU. Account linking ($0.005 per MAU) has the same $100 floor. Dashboard seats beyond the 3 free users cost $20 per user per month. Tip: if Keycloak also runs SSO into internal tools, SuperTokens does not replace that part.
- Free under 5K MAU
- $0.02 per MAU after that
- Apache 2.0 core (ee/ folder excluded)
- Self-host or cloud
- ✓Login lives inside your own UI
- ✓Simple per-MAU pricing
- ✓Multi-tenancy for SaaS apps
- ✗Not a central IdP for workforce SSO
- ✗$100 monthly minimum on MFA
- ✗Smaller ecosystem than the leaders
| Criterion | SuperTokens | Keycloak |
|---|---|---|
| Role | App login SDK | Central IdP |
| Licence | Apache 2.0 core | Apache 2.0 |
| MFA | $0.01/MAU, $100 minimum | Included |
Pick SuperTokens when Keycloak was only your app's login and you want it inside your own frontend. For SSO across many apps, choose authentik or Zitadel.
7 Keycloak alternatives compared
Scores are our editorial score on five criteria (ease of setup, value, protocols and features, hosting control, support and ecosystem); each tool's score is the average of the five. Prices were read on each pricing page in 2026. The edge column says what each tool does that a self-hosted Keycloak does not, with its licence in brackets.
| Best for | Edge over Keycloak (licence) | Free plan | Team size | Visit | ||||
|---|---|---|---|---|---|---|---|---|
| 1 | authentik | Best self-hosted replacement | SAML, LDAP, SCIM free; MIT core (MIT (+ enterprise)) | 4.4/5 | Free open source; Enterprise $5/workforce user/mo, billed yearly | ✓ | IT teams | Visit → |
| 2 | Zitadel | Best for multi-tenant B2B SaaS | Organisations per B2B customer (AGPL v3) | 4.3/5 | Free cloud up to 100 DAU; Pro US$100/mo | ✓ | B2B SaaS | Visit → |
| 3 | FusionAuth | Best self-hosted option with paid support | Vendor support on the same product (Proprietary) | 4.2/5 | Free Community (self-hosted); Starter from $162/mo, billed yearly | ✓ | Product teams | Visit → |
| 4 | Auth0 | Best managed service to stop running an IdP | No server, 25,000 MAU free (SaaS) | 4.0/5 | Free up to 25,000 MAU; Essentials from $35/mo (B2C, 500 MAU) | ✓ | Startups | Visit → |
| 5 | Ory | Best open source building blocks | Separate Apache 2.0 services (Apache 2.0) | 3.9/5 | Free Developer plan; Production $770/year | ✓ | Platform teams | Visit → |
| 6 | Okta | Best for workforce SSO in larger companies | Workforce suites, nothing to run (SaaS) | 3.8/5 | Workforce Starter $6/user/mo, billed yearly ($1,500 minimum) | — | Enterprises | Visit → |
| 7 | SuperTokens | Best SDK-first login for app developers | Login inside your own frontend (Apache 2.0 (+ ee)) | 3.7/5 | Free under 5K MAU; then $0.02 per MAU | ✓ | App developers | Visit → |
Prices in USD as shown on each pricing page in 2026, before taxes. MAU means monthly active users; DAU and aDAU are daily units.
Is your tool missing from this page? Email us: hello@hackceleration.com
You're leaving Keycloak because... take this
SAML, LDAP and SCIM in the free edition.
Each business customer needs its own SSOZitadelOrganisations per tenant, cloud or self-hosted.
You want self-hosting now and a vendor laterFusionAuthFree Community, hosted Starter from $162/mo yearly.
You never want to run an identity server againAuth0Free up to 25,000 MAU, then priced by MAU band.
You want Apache 2.0 parts you assemble yourselfOryKratos, Hydra, Keto; managed from $770/year.
Keycloak only serves employee SSOOktaWorkforce from $6/user/mo yearly, $1,500 minimum.
Keycloak was just your app's loginSuperTokensFree under 5K MAU, login inside your own UI.
You only protect homelab apps behind a reverse proxyAutheliaApache 2.0 SSO and 2FA companion for proxies; SAML is still in planning.
How to choose a Keycloak alternative
Keycloak belongs to the identity and access management (IAM) category. One service holds your users, checks their password, passkey or second factor, and hands each application a signed token, so passwords live in one place. Applications trust that token through standard protocols. OpenID Connect and OAuth 2.0 serve modern web and mobile apps; SAML serves the enterprise SaaS world and many corporate customers; LDAP and SCIM connect directories and keep accounts in sync. Single sign-on (SSO) is the visible result: log in once, reach every app. Alternatives split into two families. Self-hosted identity servers (authentik, Zitadel, FusionAuth, Ory) run on your infrastructure like Keycloak. Managed services (Auth0, Okta, Zitadel Cloud, Ory Network, SuperTokens cloud) run it for you and bill by user. Decide first which family solves your problem, then compare inside it. For a wider ranking of commercial suites, read our SSO and IAM software ranking.
What to demand before you compare
Know the unit behind each price
Read the licence, not the landing page
Plan the migration of users and passwords
Keep Keycloak, but stop hosting it
Count the floor, not just the per-user price
Separate authentication from authorization
Keycloak alternatives, your questions
Can someone host Keycloak for me?
Yes. Managed Keycloak hosts run the same server for you, so your realms and themes move as they are. Phase Two, for example, sizes its plans on active users rather than billing per user: Starter at $149 a month carries 5,000 active users, assuming 30 logins and 1,000 token refreshes per user each month. A lighter app fits more users on the same plan.Can I migrate users from Keycloak without resetting their passwords?
Usually, yes, if you export the password hashes and the target reads them. Keycloak 25 and later re-hash passwords with Argon2 at login (PBKDF2 stays in FIPS mode), so one export can hold both formats. Export the realm with its users, check both formats, and test logins on a copy before you switch production traffic.Is authentik lighter than Keycloak?
Not automatically. authentik is not a Java server, but a production install with its proxy and LDAP outposts still runs several containers plus a database. Measure both with the same users, clients and flows; Keycloak's own guide plans 1 vCPU per 15 password logins per second.Can Authelia replace Keycloak?
Only for a narrow case. Authelia is an Apache 2.0 SSO and two-factor companion that sits behind a reverse proxy, which suits homelabs. Its roadmap still lists the SAML 2.0 provider under planning, so apps that need SAML or a full user directory need another tool. For zero-trust access to internal apps without running a proxy yourself, see our Cloudflare Zero Trust switching guide.Is there a Microsoft alternative to Keycloak for customer login?
Yes, Microsoft Entra External ID. Its pricing page includes the first 50,000 monthly active users at no cost, and Microsoft counts an MAU as each unique external user who authenticates within a calendar month. It needs an Azure subscription for billing, and SMS authentication is charged per transaction.Is Keycloak HIPAA or SOC 2 compliant?
Treat it as your own audit scope, because Keycloak is software you run. It gives you the controls (MFA, audit events, session policies), and your deployment is what an auditor reviews. Managed services carry their own attestations; Okta, for example, sells customer identity on annual contracts from $3,000 a month.How does Okta count a monthly active user?
Okta counts a unique user who authenticates with, or is authorized by, the Okta service within a given month, and a user who signs in several times that month counts once. Its free Integrator plan is for building and testing, with up to 10 active users, and an Integrator org is deactivated after 180 days of inactivity unless you submit an app to the Okta Integration Network.Does Keycloak handle fine-grained authorization?
Partly. Roles, groups and its Authorization Services cover role-based checks well. Rules that depend on live data, such as who owns a record or which plan a tenant pays for, are easier in a separate policy service; Ory Keto is one, released under Apache 2.0 like Keycloak.