# Better Auth

> The most comprehensive authentication framework for TypeScript

Source: https://talira.ai/catalog/better-auth-0xw03bw4
Every listing: https://talira.ai/catalog.md

- Kind: Open core
- Types: Library, Framework
- Categories: [security / auth / libraries](https://talira.ai/categories/security/auth/libraries), [security / auth / sso](https://talira.ai/categories/security/auth/sso), [security / auth / oauth server](https://talira.ai/categories/security/auth/oauth-server), [languages / typescript](https://talira.ai/categories/languages/typescript)
- Licence: MIT[^4]
- Pricing: Free tier, from $20/month[^3]
- Pricing notes: The framework is free and MIT licensed. Better Auth Infrastructure, the optional hosted dashboard for self-hosted Better Auth: Starter $0/month (1 seat, 10,000 audit logs a month), Pro $20/month (unlimited seats, usage-based audit logs and security detections, SSO and directory sync connections $50/month each after the first), Enterprise custom.
- Free tier: yes[^3]
- Self-hostable: yes[^2]
- Plugins: yes[^6]
- Supports: [Agent Skills](https://talira.ai/standards/agent-skills.md)[^7], [llms.txt](https://talira.ai/standards/llms-txt.md)[^8], [OAuth 2.1](https://talira.ai/standards/oauth-2-1.md)[^9]
- Backed by: [Better Auth](https://talira.ai/orgs/better-auth.md)
- Funding: Seed, 2025[^10]

Better Auth is an MIT-licensed, framework-agnostic authentication and authorization framework for [TypeScript](https://talira.ai/catalog/typescript-w0asrgz8.md). You install it in your own app ([Next.js](https://talira.ai/catalog/next-js-2chrxyc7.md), Nuxt, SvelteKit, Hono, Express, Fastify, NestJS, Expo and more), it stores users, sessions and accounts in your own database through adapters for Postgres, [MySQL](https://talira.ai/catalog/mysql-dy4scprm.md), [SQLite](https://talira.ai/catalog/sqlite-cys3nt23.md), MS SQL, [MongoDB](https://talira.ai/catalog/mongodb-bnayk648.md), Prisma and Drizzle, and a CLI generates and migrates the schema. Email and password and dozens of social providers are built in, and plugins add 2FA, passkeys, magic links, organizations, API keys, enterprise SSO (OIDC and SAML) with SCIM, and an OAuth 2.1 and OpenID Connect provider, including one for MCP clients. Better Auth Inc. sells Better Auth Infrastructure, a paid hosted dashboard with audit logs, abuse protection and email and SMS, for self-hosted Better Auth.

## Links

- Website: https://better-auth.com
- GitHub: https://github.com/better-auth/better-auth
- Docs: https://better-auth.com/docs/introduction
- Pricing: https://better-auth.com/pricing

## Problems it solves

- I'm tired of writing the same login, sign-up and password reset code for every new TypeScript app
- keep our users and sessions in our own Postgres database instead of paying an auth vendor per monthly user
- add two-factor authentication and passkeys to our Next.js app without a hosted identity service
- let each B2B customer sign in through their own Okta or Entra ID over SAML or OIDC
- provision users and groups from a customer's directory with SCIM
- multi-tenant teams with organizations, members, invitations and roles in our SaaS
- make our app an OAuth and OpenID Connect provider so other apps can sign in with it
- protect our MCP server with OAuth so Claude and other MCP clients can connect
- issue and verify API keys for our customers' scripts
- migrate our users off Clerk, Auth0, Supabase Auth or WorkOS into our own database
- sign in with Google, GitHub, Apple, Discord and other social accounts without wiring each OAuth flow by hand
- magic link and email one-time code sign-in for a SvelteKit or Nuxt app
- rate limit login attempts and check passwords against Have I Been Pwned
- connect Stripe subscriptions to the signed-in user and their organization
- an auth library that works the same in Hono, Express, Fastify and NestJS
- generate the database schema for Prisma or Drizzle instead of writing auth tables by hand

## Features

- email and password, email verification and password reset
- dozens of built-in social sign-in providers plus generic OAuth
- plugins: two-factor, passkeys, magic links, email OTP, phone number, username, anonymous sign-in, Sign In With Ethereum
- organization plugin with members, teams and invitations; admin plugin
- API key plugin
- enterprise SSO per organization over OIDC or SAML 2.0, with domain verification
- SCIM provisioning of users and groups
- OAuth 2.1 and OpenID Connect provider, device authorization grant, client ID metadata documents
- MCP plugin: OAuth authorization server for MCP clients
- Agent Auth plugin for agent registration and capability-based authorization (not yet stable)
- database adapters for PostgreSQL, MySQL, SQLite, MS SQL, MongoDB, Prisma and Drizzle; Redis secondary storage
- CLI that generates and migrates the schema and creates the first admin
- integrations for Next.js, Nuxt, SvelteKit, Astro, React Router, TanStack Start, Hono, Express, Fastify, NestJS, Elysia, Convex, Expo and Electron
- rate limiting, captcha and Have I Been Pwned checks
- Stripe, Polar, Chargebee and other billing plugins
- migration guides from Auth.js, Auth0, Clerk, Supabase Auth and WorkOS
- documentation MCP server, llms.txt and agent skills
- Better Auth Infrastructure (paid): dashboard, audit logs, security detection, transactional email and SMS

## Limitations

- Doesn't run inside Python, Go, Ruby or other non-TypeScript backends: it's a TypeScript framework, though it can also run as a standalone auth server[^1][^2]

## Capabilities

- Has a command line tool: plan not known
- Takes plugins: plan not known

## Trust

Overall: 0.84 out of 1.
Signals: maintenance 1.00, adoption 0.90, momentum 0.91, community 1.00, backing 0.55, extensibility 0.40.

- last commit 5 days ago
- 630 commits in the last 90 days
- latest release v1.7.26 5 days ago
- 30.8k GitHub stars
- 1011 contributors
- accepts sponsorship (Github)
- has a company behind it
- funding: Seed, 2025
- has a plugin system

## Alternatives

- [SuperTokens](https://talira.ai/catalog/supertokens-gecz96cc.md): Open source alternative to Auth0, Firebase Auth and AWS Cognito
- [Auth.js](https://talira.ai/catalog/auth-js-5dmx6p6x.md): Authentication for the Web, formerly NextAuth.js
- [Clerk](https://talira.ai/catalog/clerk-pz0cjz27.md): Drop-in authentication and user management with prebuilt UI components
- [Supabase](https://talira.ai/catalog/supabase-524j51hm.md): The Postgres development platform
- [Logto](https://talira.ai/catalog/logto-tbz9srrg.md): The modern, open-source auth infrastructure for SaaS and AI apps
- [Auth0](https://talira.ai/catalog/auth0-zph5jvgk.md): Hosted authentication and authorization for apps (an Okta product)

## Sources

[^1]: https://better-auth.com/docs/introduction (checked 19 Nov 2026)
[^2]: https://better-auth.com/docs/comparison (checked 19 Nov 2026)
[^3]: https://better-auth.com/pricing (checked 19 Nov 2026)
[^4]: https://github.com/better-auth/better-auth/blob/main/LICENSE.md (checked 19 Nov 2026)
[^5]: https://better-auth.com/docs/infrastructure/introduction (checked 19 Nov 2026)
[^6]: https://better-auth.com/docs/concepts/plugins (checked 19 Nov 2026)
[^7]: https://better-auth.com/docs/ai-resources/skills (checked 19 Nov 2026)
[^8]: https://better-auth.com/docs/ai-resources (checked 19 Nov 2026)
[^9]: https://better-auth.com/docs/plugins/oauth-provider (checked 19 Nov 2026)
[^10]: https://www.better-auth.com/blog/seed-round (checked 20 Nov 2026)
