Better Auth

Comprehensive authentication framework for TypeScript.

Last reviewed 5 December 2026 · MIT · Backend, Hosting & Auth

Licence
Type
Developer tool
GitHub stars
★ 31k
Last commit
December 2026
First release
2024
Hosted version
No

What is Better Auth?

Better Auth is a TypeScript library that adds email, social, passkey and two-factor login to your app, storing users in your own database. Plugins add organisations, SSO and more.

Key features

  • Email, social and passkey login
  • Organisations and roles
  • Two-factor authentication
  • Works with any TS framework

Better Auth as an open source alternative

Better Auth is listed on 2 of our comparison pages as an open source replacement for Auth0 and Clerk. Compare it with the other options:

Licence

Better Auth is released under the MIT licence, a permissive licence. More MIT software →

Better Auth: FAQ

Is Better Auth open source?

Yes. Better Auth is released under the MIT licence (permissive), and its source code is public.

Is Better Auth free?

The software is free to use.

What does Better Auth replace?

Better Auth is an open source alternative to Clerk and Auth0.

Can I self-host Better Auth?

Better Auth runs on your own machine or in your own development environment.

Similar open source projects

Supabase

Apache-2.0116k

The Postgres development platform.

Replaces Firebase

Self-hostedCloud option
Self-hostedBackend, Hosting & Auth

Grafana

AGPL-3.078.5k

The open observability platform for dashboards.

Replaces Datadog, New Relic

Self-hostedCloud option
Self-hostedBackend, Hosting & Auth

frp

Apache-2.0111k

Fast reverse proxy to expose local servers.

Replaces ngrok

Self-hosted
Self-hostedBackend, Hosting & Auth

Netdata

GPL-3.081.8k

Real-time, per-second infrastructure monitoring.

Replaces Datadog, New Relic

Self-hostedCloud option
Self-hostedBackend, Hosting & Auth

Strapi

MIT73.7k

The leading open source headless CMS.

Replaces Contentful

Self-hostedCloud option
Self-hostedBackend, Hosting & Auth

More MIT projects

Browse 350+ open source alternativesSearch by product, category or licence