“It came out of nowhere and became popular for a good reason - it's really good!”
AuthenticationMaker says so · source ↗
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.
Profile checked
Works with AI agents:llms.txtHow 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
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%).
| Option | Makers' products | 2026 launches | Free for | At 10,000 users | Open source | |
|---|---|---|---|---|---|---|
| 336 80% | 84% | ~50,000 users | $0/mo · Hobby | No | Compare → | |
| 21 5% | 2% | ~25,000 users | $0/mo · Free | No | Compare → | |
| 20 5% | 8% | ~1,000,000 users | $0/mo · AuthKit | No | Compare → | |
| 13 3% | 2% | ~50,000 users | $0/mo · Free | Yes | Compare → | |
| 7 2% | 0% | Any size | $0/mo · Self-hosted (open source) | Yes | ||
| 7 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
- You want users in your own database and no per-user bill. Authentication →
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
| Year | Comments choosing it, per month | Net praise |
|---|---|---|
| 2025 | 0.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
- [Feat req] Service Accounts👍 50 · opened Jun 2025 · active Sep 2026
- Make `name` field optional👍 51 · opened Nov 2024 · active Oct 2026
- Support Prisma ORM 8👍 42 · opened May 2026 · active Oct 2026
- Dynamic setting of `baseURL` based on current request👍 36 · opened Aug 2025 · active Jun 2026
- Dynamic Roles and Permissions for Admin Plugin👍 27 · opened Sep 2025 · active Sep 2026
Who switches
More projects move to Better Auth: 56 pull requests in, 12 out; the most come from Clerk and leave for Supabase.
Clerk → Better Auth33 PRs
- feat: migrate from Clerk to Better AuthGoogle-Developer-Group-on-Campus-CTU/gdg-ctu-website · 2026-09-23
- feat(auth): Clerk to self-managed Better Auth cutovercoderclub-team/pixaPOS · 2026-09-18
- refactor: migrate authentication from Clerk to Better Authnomtan/cat-sns-app · 2026-09-03
- Migrate authentication from Clerk to Better AuthRookledger/GroundworkOS · 2026-08-28
- Migrate authentication from Clerk to Better AuthRookledger/GroundworkOS · 2026-08-28
- feat(auth): migrate Tinlance from Clerk to Better Auth + NeonLloydCoder/Tinlance · 2026-08-17
- feat: migrate from Clerk to self-hosted Better Auth (ADR-031)woosung-dev/kairos · 2026-08-16
- Migrate authentication from Clerk to Better AuthDawnMD/tutor-os · 2026-08-09
- P0: migrate iOS auth from Clerk SDK to Jovie Better AuthJovieInc/LogYourBody · 2026-07-25
- Migrate auth from Clerk to Better Auth (passkeys + email OTP)g30r93g/ID-Game · 2026-07-10
Supabase → Better Auth19 PRs
- Migrate authentication from Supabase Auth to Neon Managed Better AuthManu-del-source/Malihub--kenya · 2026-09-25
- Phase 3: flip frontend auth from Supabase to Better Auth (Stage B)shainamofficial/okroutcomeflow · 2026-07-16
- Migrating from supabase supabase auth to better auth and convexMakuIan/step-chef · 2026-06-25
- Step 3.final PR-B: flip auth from Supabase to Better AuthArt-of-Technology/maestro-desk · 2026-06-09
- refactor: migrate Supabase to Better Auth + Prisma + Neonremcostoeten/skriuw · 2026-05-22
- feat: migrate Supabase Auth to Better Auth with Hyperdrivemau671/claustrum · 2026-05-21
- Migrate from Supabase to Neon and Better Authcfrome77/InfiniteTrailBrewing · 2026-05-18
- feat(auth): migrate from Supabase Auth to Better Authbuchungapp/nationaal-watersportdiploma · 2026-04-23
- migrate from Supabase Auth to Better Auth (local)rice-apps/thi-data · 2026-04-18
- feat: migrate auth from Supabase to Better AuthOrbasker/nutri-balance · 2026-03-27
Auth0 → Better Auth4 PRs
- feat(auth): migrate from NextAuth (Auth0) to Better Auths-hirano-ist/s-private · 2026-06-03
- Migration: Auth0 to Better Autheten-tech-foundation/fluent-api · 2026-05-13
- feat(ai-worker): migrate shapes.inc session cookie from Auth0 to Better Authlbds137/tzurot · 2026-04-22
- Refactor auth from Auth0 to Better AuthLes-cabanes-de-la-reynie/Les-cabanes-de-la-reynie · 2025-03-28
Better Auth → Supabase5 PRs
- Move admin authentication from Better Auth to Supabase Authyiguanliu/physical-io-community · 2026-08-14
- Release auth migration better auth to supabase authwickeddd3/chat-app · 2026-06-11
- feat: Migrate from Better Auth to Supabase Auth (self-hosted)Fenar7/Slipwise · 2026-04-04
- Migrate MongoDB+Better Auth to Supabase+Prismadave-sucks/hindsight · 2026-03-08
- Migrate from MongoDB+Better Auth to Supabase+Prisma, add Google OAuthadrianhajdin/signalist_stock-tracker-app · 2026-03-08
Better Auth → Clerk4 PRs
- fix: migrate auth from Better Auth to Clerkmarcojsmith/AgriBid · 2026-09-05
- Migrate authentication from Better Auth to Clerkrobertguss/web-app-starter-kit · 2026-08-05
- refactor: migrate authentication from Better Auth to Clerkbashirahmedchandio1/workos-ai · 2026-07-21
- Auth: remove Better Auth and cut over to Clerkprazgaitis/march-fit · 2026-02-25
Better Auth → WorkOS3 PRs
- feat(auth)!: migrate from Better Auth to WorkOS AuthKit (hybrid) [DEC-038]drshailesh88/caseflow · 2026-07-06
- [codex] migrate auth from better auth to workos authkitludicroushq/vertex · 2026-04-03
- Migrate from better auth to workos for SSO integrationAFAskar/Governance-Agent · 2026-02-04
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).
“We love open source auth, tackling a really old problem in a clean, nice way.”
AuthenticationMaker says so · source ↗“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 ↗“Better-Auth gave us a clean, flexible auth layer with minimal code. Performance, adaptability, and dev-experience were all wins.”
AuthenticationMaker says so · source ↗“beautiful abstractions, great support from the team”
AuthenticationMaker says so · source ↗“saved us laborious work.”
AuthenticationMaker says so · source ↗None of these in makers' own words.
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.
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 ↗