Tools / Better Auth

Better Auth is an open-source authentication framework for TypeScript apps. Auth is defined in code through a `betterAuth()` config — email and password settings, social providers, and plugins — so it stays version-controlled, type-safe, and reviewable in pull requests rather than managed through a dashboard. Credential auth with sessions, email verification, and password reset is built in, and a plugin system covers everything from passkeys and two-factor to organizations and enterprise SSO.
Better Auth handles authentication inside your application. You install it, run npx auth init, and configure it in a single auth.ts file:
import { betterAuth } from "better-auth"
export const auth = betterAuth({
emailAndPassword: { enabled: true },
socialProviders: {
google: { clientId: process.env.GOOGLE_CLIENT_ID!, ... },
github: { clientId: process.env.GITHUB_CLIENT_ID!, ... },
},
plugins: [twoFactor(), passkey(), organization()],
})
It supports Next.js, Nuxt, SvelteKit, Astro, Hono, and 20+ other frameworks, and works with your own database.
The framework is self-hostable, and Better Auth sells connected infrastructure at dash.better-auth.com that adds:
Pricing for these plans is on the site's pricing page; specific prices aren't listed on the homepage.
The project is developed on GitHub (github.com/better-auth) with 975+ contributors. The homepage lists OpenAI, Databricks, and Strapi under "Trusted By," and a current announcement states that Better Auth is joining Vercel. Documentation lives at better-auth.com/docs.
Is Better Auth free? The framework is open source and self-hostable. The hosted infrastructure (dashboard, audit logs, enterprise features) is a paid offering — the site has a plans page but doesn't show prices on the homepage.
Which frameworks does it support? Next.js, Nuxt, SvelteKit, Astro, Hono, and 20+ more, according to the docs.
Does it support enterprise SSO? Yes. SSO, SAML 2.0, SCIM, directory sync, and OAuth proxy are listed as enterprise plugins.
Can I self-host it? Yes. The site describes connecting its hosted dashboard and infrastructure to a self-hosted Better Auth instance.
What databases does it work with? The homepage mentions "Bring Your Own Database" as a core capability; the specific supported databases are detailed in the docs.
Who maintains it? A community of 975+ contributors, with the project joining Vercel per the site's announcement.
One weekly email with curated tools and founder insights. Unsubscribe anytime. Check our privacy policy.