
Appwrite
Agent-ready open-source backend cloud with unified app services
Appwrite bundles auth, databases, storage, functions, messaging, realtime, hosting, and firewall for building apps. It runs as managed cloud or self-hosted on Docker
Auth0 by Okta is a commercial product. These open-source projects say they can replace it.
The most popular open-source alternative to Auth0 is Appwrite, with 58.7k GitHub stars. Other open-source alternatives to Auth0 are Keycloak, Authelia, authentik and Zitadel (5 more below). Most Auth0 alternatives here are Identity & Access Management (IAM) tools, some are Application Security. The first 6 say in their own README or website that they can replace Auth0 (the quote is shown under each one); the other 4 do the same job, shown with their own description.
Stars and activity updated 27 November 2026.

Agent-ready open-source backend cloud with unified app services
Appwrite bundles auth, databases, storage, functions, messaging, realtime, hosting, and firewall for building apps. It runs as managed cloud or self-hosted on Docker
“Appwrite is the best open-source alternative to Auth0.”

Self-hosted identity provider for SSO protocols
authentik centralizes authentication with SAML, OAuth2, OIDC, LDAP, RADIUS, and related flows. It targets small labs through production clusters you deploy yourself.
“Our enterprise offering is available for organizations to securely replace existing IdPs such as Okta, Auth0, Entra ID, and Ping Identity for robust, large-scale identity management.”

Open-source user login and session management
SuperTokens adds sign-up, sign-in, and session handling to applications through frontend SDKs, backend SDKs, and a core HTTP auth service.
“Open source alternative to Auth0 / Firebase Auth / AWS Cognito”

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.
“Auth0 alternative: Why teams switch to Logto when predictable costs matter”

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.
“Open source alternative to Auth0, Clerk, WorkOS, Stytch.”

Open-source authentication and user management for apps, self-hosted or cloud
Authgear is an open-source authentication and identity platform offering passkeys, passwordless login, MFA, SSO and biometrics. It includes a user portal, prebuilt login pages and an Admin API, and runs self-hosted or on Authgear Cloud
“Authgear - A powerful Auth0 alternative”
These projects don't call themselves a Auth0 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.”

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

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.
“ZITADEL is an open-source identity and access management platform built for teams that need more than basic auth.”

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
“Casdoor is a single sign-on (SSO) and authentication server with a web console.”
Yes. 10 open-source projects can replace Auth0, for example Appwrite, Keycloak and Authelia. 6 of them say so in their own documentation; the other 4 do the same job.
Appwrite (58.7k GitHub stars) is the most popular open-source alternative to Auth0 on GitHub. Keycloak has the most recent code changes. The best choice depends on your needs: compare them side by side, for example Keycloak vs Authelia.
All of the 10 projects listed here are free to use under an open-source license, with no license fee: 7 permissive (such as BSD-3-Clause), 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.