qmetrics.net

Best Open-Source Alternatives to WorkOS

WorkOS by WorkOS is a commercial product. These open-source projects say they can replace it.

The most popular open-source alternative to WorkOS is Keycloak, with 38.1k GitHub stars. Other open-source alternatives to WorkOS are Authelia, Ory, Zitadel and Logto (1 more below). Most WorkOS alternatives here are Identity & Access Management (IAM) tools. The first 1 say in their own README or website that they can replace WorkOS (the quote is shown under each one); the other 5 do the same job, shown with their own description.

Stars and activity updated 27 November 2026.

Sort:Most starsRecentA–Z

Hanko

Passkey-ready authentication and user management platform

Hanko provides authentication and user management with passkeys, MFA, OAuth, and SAML SSO. It integrates via web components, a frontend SDK, or a custom UI against its API.

★ 9.1k⟳ yesterdayAGPL-3.0
Open Source Alternative to:Amazon CognitoAuth0Clerk+3
“Open source alternative to Auth0, Clerk, WorkOS, Stytch.”

Also does the same job as WorkOS

These projects don't call themselves a WorkOS alternative, but two independent checks of their own description found they do the same main job.

Keycloak

Identity and access management for applications and services

Keycloak adds authentication and single sign-on to applications so they do not store or verify users themselves. It supports standard protocols and central admin tools.

★ 38.1k⟳ todayApache-2.0
Open Source Alternative to:Amazon CognitoAuth0Clerk+6
“Keycloak - the open source identity and access management solution. Add single-sign-on and authentication to applications and secure services with minimum effort.”

Authelia

Self-hosted SSO portal with multi-factor authentication

Authentication and authorization server that sits in front of reverse proxies. Provides a web portal for login, OpenID Connect, and granular access rules with several second-factor methods.

★ 29.8k⟳ todayApache-2.0
Open Source Alternative to:Amazon CognitoAuth0Stytch+1
“Authelia is a free and open-source IAM platform and OpenID Certified™ OpenID Connect 1.0 provider; providing modern, flexible authentication and authorization.”

Ory

OpenID Connect and OAuth2 authorization server

Ory Hydra is an OAuth 2.0 and OpenID Connect server that issues and validates tokens and orchestrates login and consent flows. It connects to existing identity systems through a separate login and consent application.

★ 17.7k⟳ 4 months agoApache-2.0
Open Source Alternative to:Amazon CognitoMicrosoft Entra IDOkta+3
“Ory delivers identity and access management (IAM) for applications, enterprises, and AI agents. Cloud-native, API-first, and self-hostable.”

Zitadel

Multi-tenant API-first open-source identity and access management platform

ZITADEL is an open-source identity and access management platform with SSO, MFA, passkeys, OIDC, SAML, and SCIM. You can self-host it or use the hosted cloud service with the same codebase.

★ 15.7k⟳ todayAGPL-3.0
Open Source Alternative to:Amazon CognitoAuth0Clerk+6
“Whether you're securing a SaaS product, building a B2B platform, or self-hosting a production IAM stack — ZITADEL gives you everything out of the box: SSO, MFA, Passkeys, OIDC, SAML, SCIM, and a battle-tested multi-tenancy model.”

Logto

OIDC and OAuth auth infrastructure for multi-tenant SaaS

Logto is auth infrastructure for SaaS and AI apps, built on OIDC, OAuth 2.1, and SAML. It offers multi-tenancy, enterprise SSO, RBAC, and SDKs for many frameworks, with managed cloud or self-hosted deployment.

★ 15k⟳ yesterdayMPL-2.0
Open Source Alternative to:Auth0OktaPing Identity+2
“Logto adds consumer sign-in, multi-tenancy, enterprise SSO, and RBAC to your SaaS or AI apps. Built on OIDC, OAuth 2.1, and SAML. Run on Cloud or self-host.”

Compare WorkOS alternatives

Questions about WorkOS alternatives

Is there an open-source alternative to WorkOS?

Yes. 6 open-source projects can replace WorkOS, for example Keycloak, Authelia and Ory. 1 of them says so in its own documentation; the other 5 do the same job.

What is the best open-source alternative to WorkOS?

Keycloak (38.1k GitHub stars) is the most popular open-source alternative to WorkOS on GitHub. The best choice depends on your needs: compare them side by side, for example Keycloak vs Authelia.

Are the open-source alternatives to WorkOS free?

All of the 6 projects listed here are free to use under an open-source license, with no license fee: 3 permissive (such as Apache-2.0), 2 copyleft (such as AGPL-3.0), 1 weak copyleft (such as MPL-2.0). Running software on your own server still costs hosting and upkeep, and many projects also sell a hosted version.

Related commercial products

Auth0

Okta

10 open-source alternatives

Amazon Cognito

Amazon Web Services

8 open-source alternatives

Stytch

Stytch

8 open-source alternatives

Clerk

Clerk

7 open-source alternatives

Okta

Okta

7 open-source alternatives

Firebase Authentication

Google

6 open-source alternatives