What is Better Auth?
Authentication library for TypeScript apps with logins, 2FA, organisations and SSO in your code.
Who is Better Auth best for?
Better Auth is best for TypeScript developers who want sign-in, 2FA, teams and SSO in their own app.
Owning your user data
Users, sessions and organisations live in your own database, with no hosted auth service between you and them.
B2B apps
Plugins add organisations with roles and invitations, SAML SSO, SCIM and directory sync.
Apps with AI agents
MCP auth, token exchange and agent delegation let agents act for users with scoped access.
Any TypeScript stack
It works with Next.js, Nuxt, SvelteKit, Astro, Hono and 20+ other frameworks.
How much does Better Auth cost?
Better Auth's framework is free and MIT licensed; its optional hosted infrastructure has a free Starter plan, a Pro plan at $20 a month plus usage, and custom Enterprise pricing.
- Full framework under the MIT licence
- Runs in your app with your own database
- Plugins for 2FA, passkeys, organisations and SSO
- Hosted dashboard with 1 seat
- 10,000 audit logs a month, 1-day retention
- 1,000 security detections a month
- Unlimited dashboard seats
- 1 SSO and 1 Directory Sync connection, then $50 a month each
- 20,000 audit logs a month, 7-day retention
Pro charges $0.0001 per audit event and $0.001 per security detection past its allowance, $0.001 per transactional email and $0.09 per SMS. A custom dashboard domain and a log drain are $25 a month each. Enterprise is priced on request with Slack support and implementation help. Full pricing on better-auth.com. We checked these prices on .
How do readers rate Better Auth?
No one has rated Better Auth yet. Be the first.
Sign in to rate. One rating per account.
Is Better Auth open source?
Yes. Better Auth's code is public under the MIT licence, so you can run it on your own server.
On GitHub
30,724stars
+447 (+1.5%) in the last 30 days
- Last commit
- 12 Nov
- Repository age
- 2 years
- Latest release
- 12 Nov
- Licence
- MIT
- Self-hosted
- Yes
- Repository
- better-auth/better-auth
What are the best Better Auth alternatives?
Better Auth is an open source alternative to WorkOS. Keycloak and authentik do the same job and are open source too.
Questions about Better Auth
What is Better Auth?
Authentication library for TypeScript apps with logins, 2FA, organisations and SSO in your code.
Who is Better Auth for?
Better Auth is best for TypeScript developers who want sign-in, 2FA, teams and SSO in their own app.
Is Better Auth free?
Yes. Better Auth has a free Self-hosted plan: full framework under the MIT licence.
How much does Better Auth cost?
Better Auth's paid plans are Pro at $20 per month plus usage.
Is Better Auth open source?
Yes. Better Auth's code is public under the MIT licence, so you can run it on your own server.
What are the best Better Auth alternatives?
The closest alternatives on Recaply are WorkOS, Keycloak and authentik.
Where can I try Better Auth?
On its official website, better-auth.com.
Is Better Auth still open source after joining Vercel?
Yes. Better Auth says it joined Vercel to keep working on open-source, framework-agnostic auth, and the framework stays under the MIT licence. The paid part is the optional hosted Infrastructure dashboard.







