Skip to content
OpenSourceSoftware.ai

Security & Privacy

Open-source alternatives to Clerk

Two hand-approved projects in our catalog replace Clerk. They span authentication libraries and single sign-on servers. Better Auth has the most GitHub stars (30.9K). Tick what matters to you and the list re-sorts so the closest fits come first.

What matters to you?

Each choice is checked against live catalog data. Counts show how many alternatives meet it.

Licence
Activity
Language

The alternatives

Pick what matters below. For now the two alternatives are in order of GitHub stars.

Order: GitHub stars

Better Auth

Authentication libraries

Add sign-in, two-factor and organizations to a TypeScript app.

  • Email and password, social sign-on and account and session management built in.
  • Plugins add passkeys, multi-tenancy, multi-session support and SSO.
  • Works with most popular frameworks and handles its own database migrations.
Meets: Permissive licenceMeets: Open-source licenceMeets: Released ≤ 90 daysMeets: Gaining starsMeets: Written in TypeScript
30.9K starsMITTypeScriptLatest release 2 days agoWebsite ↗Full profile →

Logto

Single sign-on servers

Add sign-in, single sign-on and access control to your apps and APIs.

  • Ship sign-up, sign-in, social login, passkeys and MFA without building the screens yourself.
  • Model customers as organizations with their own roles, member invites and just-in-time provisioning.
  • Connect web, mobile, API and machine-to-machine clients with SDKs for 30+ frameworks.
Does not meet: Permissive licenceMeets: Open-source licenceMeets: Released ≤ 90 daysMeets: Gaining starsMeets: Written in TypeScript
15K starsMPL-2.0TypeScriptLatest release 21 days agoWebsite ↗Full profile →

How the two compare

One uses a permissive licence (MIT) and one a copyleft licence (MPL-2.0). Both have published a GitHub release in the last 90 days. Better Auth gained the most GitHub stars this week (+107). Both are written mainly in TypeScript. Better Auth also replaces Auth0. Logto also replaces Amazon Cognito and Auth0.

Related open-source projects

In the same part of our catalog, but not listed as replacements for Clerk. Most GitHub stars first.

Data from GitHub and our catalog. Every listing is hand-approved. List prices are what the vendor publishes, not a quote, and self-hosting has its own running costs.