
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.
Stytch by Stytch is a commercial product. These open-source projects say they can replace it.
The most popular open-source alternative to Stytch is Keycloak, with 38.1k GitHub stars. Other open-source alternatives to Stytch are Better Auth, Authelia, Ory and Zitadel (3 more below). Most Stytch alternatives here are Identity & Access Management (IAM) tools, some are Frameworks & Platforms. The first 1 say in their own README or website that they can replace Stytch (the quote is shown under each one); the other 7 do the same job, shown with their own description.
Stars and activity updated 27 November 2026.
These projects don't call themselves a Stytch alternative, but two independent checks of their own description found they do the same main job.

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.
“Keycloak - the open source identity and access management solution. Add single-sign-on and authentication to applications and secure services with minimum effort.”

Composable TypeScript authentication and authorization framework
Better Auth is a framework-agnostic authentication and authorization framework for TypeScript. You configure it in code and extend it with plugins for flows like social login, organizations, and enterprise SSO.
Stytch“Better Auth is a framework-agnostic authentication (and authorization) framework for TypeScript.”

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.
“Authelia is a free and open-source IAM platform and OpenID Certified™ OpenID Connect 1.0 provider; providing modern, flexible authentication and authorization.”

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.
“Internet-scale OpenID Certified™ OpenID Connect and OAuth2.1 provider that integrates with your user management through headless APIs. Solve OIDC/OAuth2 user cases over night. Consume as a service on Ory Network or self-host. Trusted by OpenAI and many others for scale and security. Written in Go.”

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.
“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.”

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.
“🧑🚀 Authentication and authorization infrastructure for SaaS and AI apps, built on OIDC and OAuth 2.1 with multi-tenancy, SSO, and RBAC.”

Self-hosted identity provider with SSO and agent MCP gateway
Casdoor is an IAM server with a web console for users, apps, and providers. It issues tokens via OAuth, OIDC, SAML, CAS, LDAP, SCIM, and WebAuthn, and exposes an MCP gateway for AI tooling
“Open-source IAM and SSO for users and AI agents: OAuth 2.0, OIDC, SAML, CAS, LDAP, SCIM, WebAuthn and MFA, plus a built-in MCP server and OAuth 2.1 for MCP.”
Yes. 8 open-source projects can replace Stytch, for example Keycloak, Better Auth and Authelia. 1 of them says so in its own documentation; the other 7 do the same job.
Keycloak (38.1k GitHub stars) is the most popular open-source alternative to Stytch on GitHub. To run it on your own server, look at Keycloak, Authelia and Ory, which are self-hostable. The best choice depends on your needs: compare them side by side, for example Keycloak vs Better Auth.
All of the 8 projects listed here are free to use under an open-source license, with no license fee: 5 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.