qmetrics.net

Best Open-Source Alternatives to Clerk

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

The most popular open-source alternative to Clerk is Appwrite, with 58.7k GitHub stars. Other open-source alternatives to Clerk are Keycloak, authentik, Zitadel and SuperTokens (2 more below). Most Clerk alternatives here are Identity & Access Management (IAM) tools, some are Build & Deployment. The first 3 say in their own README or website that they can replace Clerk (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.

Sort:Most starsRecentA–Z

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

★ 58.7k⟳ todayBSD-3-Clause
Build & DeploymentSelf-hostable
Open Source Alternative to:Auth0ClerkFirebase
“Appwrite is the best open-source alternative to Clerk.”

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

Authgear

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

★ 2.2k⟳ yesterdayApache-2.0
Open Source Alternative to:Auth0ClerkFirebase+2
“Authgear: Open source alternative to Auth0 / Clerk / Firebase Auth”

Also does the same job as Clerk

These projects don't call themselves a Clerk 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
“Open Source Identity and Access Management For Modern Applications and Services”

authentik

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.

★ 26.5k⟳ todayMIT · open core
Open Source Alternative to:Amazon CognitoAuth0Clerk+4
“authentik is an open-source Identity Provider (IdP) for modern SSO.”

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

SuperTokens

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.

★ 15.3k⟳ todayApache-2.0 · open core
Open Source Alternative to:Amazon CognitoAuth0Clerk+1
“Add secure login and session management to your apps.”

Compare Clerk alternatives

Questions about Clerk alternatives

Is there an open-source alternative to Clerk?

Yes. 7 open-source projects can replace Clerk, for example Appwrite, Keycloak and authentik. 3 of them say so in their own documentation; the other 4 do the same job.

What is the best open-source alternative to Clerk?

Appwrite (58.7k GitHub stars) is the most popular open-source alternative to Clerk 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 authentik.

Are the open-source alternatives to Clerk free?

All of the 7 projects listed here are free to use under an open-source license, with no license fee: 5 permissive (such as BSD-3-Clause), 2 copyleft (such as AGPL-3.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

Firebase

Google

10 open-source alternatives

Amazon Cognito

Amazon Web Services

8 open-source alternatives

Stytch

Stytch

8 open-source alternatives

Okta

Okta

7 open-source alternatives

Firebase Authentication

Google

6 open-source alternatives