Open Source Clerk Alternatives

Add authentication without per-user fees. Open source Clerk alternatives for sign-up flows, user profiles, and session management you control.

8 alternatives available

Clerk simplifies adding authentication and user management to applications, particularly those built with React, Next.js, and Remix. It offers pre-built UI components and backend infrastructure to handle user registration, login, profile management, and more. However, developers sometimes look for open source alternatives to avoid relying on a proprietary SaaS solution and maintain greater control over their user data and authentication processes.

Key features of Clerk include easily integrated UI components, streamlined user authentication flows, and robust account management. It supports features like multi-factor authentication (MFA), organization management, and customizable branding. While powerful and convenient, the closed-source nature of Clerk can be a drawback for teams prioritizing self-hosting or deep customization. This leads to exploring alternatives offering more flexibility.

Common use cases for Clerk include building user logins and registration in web apps, managing user profiles and permissions, implementing secure authentication workflows, and handling complex organization structures. However, many developers may prefer self-hosted solutions for compliance reasons or to avoid ongoing subscription costs. Finding a suitable open source alternative allows them to achieve similar functionality with greater control and transparency.

Open Source Alternatives

Python
54%
Other
92

authentik

Authentication · Security

22,215

The self-hosted Identity Provider that replaces Okta, Auth0, and Entra ID with a unified SSO platform supporting SAML, OAuth2/OIDC, LDAP, RADIUS, and WebAuthn.

View details

authentik

Other
1,689
Forks
6.5 years
Age
Built with
Python54%
TypeScript35%
Updated 2 days ago
Java
98%
Other
88

SuperTokens

Authentication · Security

15,135

Open-source authentication platform you self-host, giving you complete control over user data with zero vendor lock-in.

View details

SuperTokens

Other
677
Forks
6.5 years
Age
Built with
Java98%
Updated 3 days ago
Go
76%
AGPL 3.0
91

ZITADEL

Authentication

14,294

Open-source, API-first identity platform delivering multi-tenancy, Passkeys, OIDC, SAML, and SCIM without vendor lock-in.

View details

ZITADEL

AGPL 3.0
1,148
Forks
6.3 years
Age
Built with
Go76%
TypeScript12%
Updated 3 days ago
TypeScript
97%
MPL 2.0
90

Logto

Authentication

13,753

Open-source auth infrastructure for SaaS and AI apps with OIDC, SAML, and RBAC

View details

Logto

MPL 2.0
943
Forks
5 years
Age
Built with
TypeScript97%
Updated 3 days ago
Go
91%
Apache 2.0
90

Ory Kratos

Authentication

13,737

API-first identity and user management that handles login, registration, MFA, and recovery so your application never has to.

View details

Ory Kratos

Apache 2.0
1,166
Forks
8.1 years
Age
Built with
Go91%
Updated 3 days ago
Go
67%
Other
89

Hanko

Security · Authentication

8,965

Open source, self-hostable authentication platform with passkeys, SAML SSO, and OAuth — the privacy-first alternative to Auth0 and Clerk.

View details

Hanko

Other
1,015
Forks
4.3 years
Age
Built with
Go67%
TypeScript28%
Updated 4 days ago
TypeScript
92%
Other
88

Hexclave

Developer Tools · Authentication

6,820

The open-source user infrastructure platform — authentication, teams, payments, emails, analytics, and more on a single unified user model.

View details

Hexclave

Other
520
Forks
2.4 years
Age
Built with
TypeScript92%
Updated yesterday
Go
55%
Apache 2.0
88

Authgear

Authentication

1,880

Open-source, self-hostable authentication platform with passkeys, biometric login, SSO, MFA, and GraphQL admin API — a full Auth0/Clerk/Firebase alternative for SaaS and mobile apps.

View details

Authgear

Apache 2.0
121
Forks
6.1 years
Age
Built with
Go55%
HTML26%
TypeScript17%
Updated 3 days ago

Join founders buildingwith open source

Opinionated takes, migration guides, cost-saving tips, and insights from the open source ecosystem.

Subscribe on Substack

No spam. Unsubscribe anytime.

Join 750+ subscribers
No spam. Unsubscribe anytime.

Search