Updated

Better Auth

TypeScript authentication framework that runs inside your own app and database, extended with plugins.

7 makers' products we track use Better Auth. For authentication it's 5th most chosen of 15 options: 7 of the 422 makers' products we know the authentication of (2%). Among the 98 launched in 2026, 0% chose it, against 0% of those launched in 2024 or earlier. 102 open-source projects also declare it in their code. What makers like most: A library that keeps users and sessions in your own database, with no vendor dependency and no per-user fees. Their most common complaint: Built-in assumptions force hacks, such as OIDC providers without email or request-header-based admin scripts. On GitHub, 56 public pull requests moved projects to Better Auth from tools we list, and 12 moved them away.

Open sourceSelf-hostableFree tier

Profile checked

Works with AI agents:llms.txt
Ask your AI about this, with this page as the source:ChatGPT ↗Claude ↗Perplexity ↗

How makers use Better Auth

Makers' products we track use Better Auth for authentication (7), most often alongside Next.js (71%), Resend (71%).

What Better Auth is used for

Authentication · Library in your app →TypeScript apps that want users and sessions in their own database, at no cost.Trade-off: You host it and keep it patched; UI is yours to build.
Clerk336Auth021WorkOS20Supabase13Better Auth7Makers' products on each, for authentication

Better Auth vs the alternatives makers chose

For authentication, 7 of the 422 makers' products we know the choice of picked Better Auth (2%), behind Clerk (80%).

OptionMakers' products2026 launchesFree forAt 10,000 usersOpen source
Clerk336 80%84%~50,000 users$0/mo · HobbyNoCompare →
Auth021 5%2%~25,000 users$0/mo · FreeNoCompare →
WorkOS20 5%8%~1,000,000 users$0/mo · AuthKitNoCompare →
Supabase13 3%2%~50,000 users$0/mo · FreeYesCompare →
Better Auth7 2%0%Any size$0/mo · Self-hosted (open source)Yes
Kinde7 2%0%~10,000 users—No

For authentication: how many of the 422 makers' products we know the authentication of chose each option, and the share among the 98 launched in 2026, since a tool that came first has products from every year, and what each costs at 10,000 users.

Costs are the cheapest plan that fits, from each vendor's pricing page, at the usage our stack planner assumes for a product with that many users. Free for: the users its cheapest plan a business can use stays free for.

Often paired with

Share of the 7 makers' products on Better Auth that show this choice.

When to use Better Auth, and when not

Pick Better Auth if

Something else fits better if

  • You're on Next.js or React and want sign-in, profiles and teams working today: Clerk.
  • Your data is already in Supabase or Firebase: Supabase or Firebase.
  • You sell to companies whose IT team will ask for SAML SSO or SCIM: WorkOS or Auth0.
From each decision's guide, written from what makers' products chose and why.

Better Auth is an authentication and authorization library for TypeScript. It runs inside your own server process and writes users, sessions and accounts to your own database, so there is no separate auth service to call and no per-user bill from a vendor.

More about Better Auth

You create one auth instance with your database connection and the sign-in methods you want, then mount its handler on a catch-all route, usually /api/auth/*. A client library gives React, Vue, Svelte and other front ends typed methods and hooks. Sessions are classic cookie sessions backed by a session table, with an optional short-lived cookie cache or Redis secondary storage to avoid a database read on every request. It ships integration guides for Next.js, Nuxt, SvelteKit, Astro, React Router, TanStack Start, Hono, Express, Fastify, NestJS, Elysia and Expo.

Out of the box you get email and password and dozens of social providers. Plugins add two-factor auth, passkeys, organizations with teams, an admin API, API keys, SAML/OIDC SSO, SCIM provisioning and Stripe subscriptions, each with its own tables. A CLI generates or applies the schema for the built-in Kysely adapter, Prisma, Drizzle or MongoDB on PostgreSQL, MySQL, SQLite or MS SQL. An optional paid Infrastructure service adds a dashboard, abuse protection and managed email and SMS.

It only works for TypeScript/JavaScript back ends; a Python, Ruby or PHP server cannot use it. You run the migrations, sending of emails and upgrades yourself, and there are no prebuilt sign-in screens in the core library.

How Better Auth itself is built

3 tools, from its own code, website and Product Hunt page.

Better Auth pros and cons

What makers like most: A library that keeps users and sessions in your own database, with no vendor dependency and no per-user fees. Their most common complaint: Built-in assumptions force hacks, such as OIDC providers without email or request-header-based admin scripts.

Pros

  • A library that keeps users and sessions in your own database, with no vendor dependency and no per-user fees. HNHN 2HN 3HN 4
  • Plugins cover OAuth providers, magic links, RBAC, SSO and SAML, going well beyond Auth.js. HNHN 2HN 3PH
  • Hackable and transparent, so custom flows such as iframe login work without fighting hidden internals. HNHN 2PH
  • Setup is quick, with login flows done in an hour, and it saves money for projects that outgrew Clerk pricing. PHHNHN 2

Cons and watch-outs

  • Built-in assumptions force hacks, such as OIDC providers without email or request-header-based admin scripts. HNHN 2
  • Code quality felt rushed, with few tests and little logging, and audit logs need the managed service. HNHN 2
  • Breaking changes appear in patch releases, and the OpenAPI spec gets little care for non-JS clients. HN
  • Its move to Vercel leaves some users wary about future direction and planning backups. HNHN 2

Themes that recur in makers' words and Hacker News comments, each linked to what it summarises, with how Product Hunt tags its reviews.

5.0★ from 5 reviews on Product Hunt ↗

What Hacker News says about Better Auth

On Hacker News, 52% of comments about Better Auth recommend it and 9% criticize it: net praise +42%, the best liked of 6 tools HN discusses for authentication.

By year

YearComments choosing it, per monthNet praise
20250.9+53%
2026 (8 mo)1.4+35%

In their words

  • “Better Auth is great, I use it for all my projects.” HN, Jul 2026
  • “With better auth you pay exactly $0 for all of this.” HN, May 2026
  • “saying “you should use Better Auth unless you have this one random fad technical issue, why would you need any alternative like Auth.js??”” HN, Sep 2025

Hacker News comments January 2023 to August 2026 that name Better Auth in a sentence like "I use" or "we moved to", Claude read a sample of 34 and the counts scale it to all of them; net praise is comments recommending it minus comments criticizing it, as a share of all comments about it. How it's counted, and how HN compares with makers.

Reliability and open issues

The most wanted open issue on GitHub has 50 👍.

Most wanted on GitHub

Open on 2026-10-04 in better-auth/better-auth, with activity in the last year — issues and feature requests by 👍.

Who switches

More projects move to Better Auth: 56 pull requests in, 12 out; the most come from Clerk and leave for Supabase.

Moving to Better AuthMoving away
Better Auth
Clerk → Better Auth33 PRs
Supabase → Better Auth19 PRs
Auth0 → Better Auth4 PRs
Better Auth → Supabase5 PRs
Better Auth → Clerk4 PRs
Better Auth → WorkOS3 PRs

Public pull requests on GitHub since Oct 2024 whose title says "X to Y" — real code changes moving a project from one tool to another, by developers in general.

Who uses it

7 makers' products, each linked to the source that shows it, and 102 open-source projects that declare it in their code. The best known on Product Hunt: Rybbit (1,023 followers), Fuser (487 followers), Psyche (243 followers), Clarm (222 followers), Prism AI (132 followers).

The maker says so 6Job posting 1Declared in code 102How evidence is collected →
Rybbit
RybbitThe open source Google Analytics replacement

“It came out of nowhere and became popular for a good reason - it's really good!”

AuthenticationMaker says so · source ↗
Clarm
ClarmTurn visitors into pipeline, automatically

“We love open source auth, tackling a really old problem in a clean, nice way.”

AuthenticationMaker says so · source ↗
PicMotionAI
PicMotionAITurn your images into scroll-stopping videos using AI

“Authentication is always a time sink, but not with better_auth. Simple, secure, and extendable. Got magic links and login flow done in under an hour.”

AuthenticationMaker says so · source ↗
Beplan
BeplanSocial media scheduler for influencers & agencies

“Better-Auth gave us a clean, flexible auth layer with minimal code. Performance, adaptability, and dev-experience were all wins.”

AuthenticationMaker says so · source ↗

Open source: a project that declares Better Auth as a dependency in its public code — verifiable, but not necessarily a live product.

What its projects tell coding agents

64 of the 77 open-source products built with Better Auth that were worked on in the last 180 days keep instruction files for coding agents — 83%, against 53% of all the projects we read. AGENTS.md is in 57, CLAUDE.md in 40.

990words in the median file
pnpmthe package manager most named, in 26 of 60 files
72%say how to test a change
Named more in these files than in other projects' — in how many of the 60:
What AGENTS.md files say about other tools →What open-source products tell their coding agents →

Alternatives to Better Auth

All alternatives by situation →

Further reading

Questions makers ask about Better Auth

Is Better Auth good for production?

7 makers' products we track run on it. On GitHub, 56 public pull requests moved projects to Better Auth from tools we list, and 12 moved them away. The watch-out makers raise most: Built-in assumptions force hacks, such as OIDC providers without email or request-header-based admin scripts.

What is Better Auth used for?

TypeScript authentication framework that runs inside your own app and database, extended with plugins. Makers' products we track use it for authentication (7).

What are the pros and cons of Better Auth?

Pros makers name: A library that keeps users and sessions in your own database, with no vendor dependency and no per-user fees. Plugins cover OAuth providers, magic links, RBAC, SSO and SAML, going well beyond Auth.js. Hackable and transparent, so custom flows such as iframe login work without fighting hidden internals. Cons: Built-in assumptions force hacks, such as OIDC providers without email or request-header-based admin scripts. Code quality felt rushed, with few tests and little logging, and audit logs need the managed service. Breaking changes appear in patch releases, and the OpenAPI spec gets little care for non-JS clients.

What are the alternatives to Better Auth?

For authentication, the other options makers' products we track chose most are Clerk (336), Auth0 (21), WorkOS (20), Supabase (13), Kinde (7). Open source or self-hostable among them: Supabase. Each alternative, with the situation it fits, is on the Better Auth alternatives page.

How much does Better Auth cost per month?

At 10,000 users, Better Auth costs $0 a month on the cheapest plan that fits (Self-hosted (open source)), from its pricing page.

Do developers switch to or away from Better Auth?

On GitHub, 56 public pull requests moved projects to Better Auth from tools we list, most from Clerk (33), Supabase (19), Auth0 (4); 12 moved them away, most to Supabase (5), Clerk (4), WorkOS (3).

When should you use Better Auth?

You want users in your own database and no per-user bill (authentication). Something else fits better if: you're on Next.js or React and want sign-in, profiles and teams working today, pick Clerk; your data is already in Supabase or Firebase, pick Supabase or Firebase.

Which frameworks does Better Auth work with?

It is framework-agnostic TypeScript with documented integrations for Next.js, Nuxt, SvelteKit, Astro, React Router v7, TanStack Start, SolidStart, Hono, Express, Fastify, NestJS, Elysia, Convex, Electron and Expo. source ↗

Which databases can it store users in?

PostgreSQL, MySQL, SQLite and MS SQL through its built-in Kysely adapter, or your existing Prisma, Drizzle or MongoDB setup via adapters. Community adapters cover others, and it can also run with stateless sessions and no database. source ↗

How do database migrations work?

The CLI's migrate command creates or alters the tables directly when you use the built-in Kysely adapter. With Prisma or Drizzle you run generate to produce the schema and apply it through your ORM's own migrations. Plugins add their own tables, so re-run it after adding one. source ↗

Can I migrate my users from Clerk, Auth0, Supabase Auth or WorkOS?

Yes. The docs have step-by-step guides for moving from Auth.js, Auth0, Clerk, Supabase Auth and WorkOS, including password hashes and social accounts. Active sessions are invalidated by the move. source ↗

Does it support enterprise SSO and SCIM?

Yes, as plugins. The SSO plugin supports OIDC, OAuth2 and SAML 2.0 providers, and a separate SCIM plugin provisions users and groups from a directory. Self-service SSO setup for your customers is offered through the enterprise program. source ↗

Is rate limiting built in?

Yes. In production it limits client requests to 100 per 10 seconds by default, configurable per endpoint and with custom storage. It is off in development, and server-side calls through auth.api are not limited. source ↗

How long do sessions last?

Sessions expire after 7 days by default and are extended whenever they are used after the update interval (one day by default). Both values are configurable, and refresh can be disabled or deferred for read-replica setups. source ↗

Is Better Auth free?

Yes — it is free, open-source software.

Is Better Auth open source or self-hostable?

Open source, and you can self-host it. source ↗

Can AI coding agents work with Better Auth?

It serves an llms.txt docs index.

Who uses Better Auth?

7 makers' products we track, each with a source, and 102 open-source projects declare it in their code. The best known of them on Product Hunt: Rybbit (1,023 followers), Fuser (487 followers), Psyche (243 followers), Clarm (222 followers), Prism AI (132 followers). source ↗