Skip to content
Self-Hosted OSS Auth

Better Auth

MIT TypeScript authentication framework running directly inside your own app & database.

Self-Hosted Blueprint

better-auth/better-auth ↗
Min RAM / CPU
64 MB · 1 vCPU
License
MIT
GitHub Stars
31k
Maintenance
Low

Quickstart / Docker Compose

docker-compose.yml
pnpm add better-auth
# Embedded library inside Next.js, Astro, Hono, or Node sharing your Postgres/SQLite DB

Gotchas & Hidden Limits

  • In-process TypeScript library rather than a separate auth microservice — you wire up your own login UI and email provider (Resend/SES).
  • Framework-native to TypeScript/JS runtimes rather than polyglot language-agnostic OIDC servers like Authentik or Keycloak.
Best For: Full-stack Next.js/Astro/Nuxt teams wanting Clerk-like plugins (orgs, passkeys, SSO) with zero SaaS lock-in.
Crossover Point: Zero monthly user taxes or SSO add-ons from day 1, especially when you already maintain a Postgres or SQLite app database.

Related Comparisons & Alternatives

Spot an outdated limit or pricing change?

Report Outdated Limit or Pricing Change

Flag changed quotas, pricing tiers, credit-card rules, or license shifts for manual verification.

Request Type
2–120 characters, e.g. Coolify or Neon.
⚠ Enter the tool name (at least 2 characters).
Include https:// (e.g. https://coolify.io/pricing).
⚠ Enter a valid URL starting with https:// or http://.
Deployment Model
Lowercase letters, numbers, and hyphens only (e.g. coolify).
Optional — only used if editors need clarification.
⚠ Enter a valid email address (e.g. name@domain.com).
Share key free allowances, credit-card gate, sleep rule, or min Docker RAM.
⚠ Enter at least 10 characters describing the correction.
Human Verification

Search StackTiers Infrastructure Index

↑↓ navigate · ↵ openFull Pagefind search →