Better Auth

Better Auth is a framework-agnostic authentication and authorization library for TypeScript. Unlike hosted identity providers, Better Auth runs inside the developer's own application against their own database (Postgres, MySQL, SQLite, MongoDB via adapters). The core library supports credential, social, magic-link, OTP, passkey, and SSO sign-in, with plugins for organizations / teams / RBAC, API keys, two-factor authentication, JWT, generic OAuth, SAML / SSO, and SCIM. It integrates with Next.js, Nuxt, SvelteKit, Astro, Hono, and 20+ other frameworks. An optional managed dashboard with audit logs, breached-password detection, bot-protection, and self-service enterprise SSO is available at dash.better-auth.com.

Better Auth publishes 4 APIs on the APIs.io network. Tagged areas include Authentication, Authorization, TypeScript, Library, and Open Source.

Better Auth’s developer surface includes documentation, GitHub presence, engineering blog, and 6 more developer resources.

18.8/100 emerging ▬ flat Agent 3/100 human only Full breakdown ↓
scored 2026-07-28 · rubric v0.6
AccessFree
4 APIs
AuthenticationAuthorizationTypeScriptLibraryOpen SourceSSOPasskeys

Kin Score

Kin Score Kin Score How this is scored →
scored 2026-07-28 · rubric v0.6
Composite quality — 18.8/100 · emerging
Contract Quality 0.0 / 25
Developer Ergonomics 2.2 / 20
Commercial Clarity 5.8 / 20
Operational Transparency 3.4 / 13
Governance 0.0 / 12
Discoverability 7.4 / 10
Agent readiness — 3/100 · human only
Machine-Readable Contract 0 / 18
Agentic Access Contract 0 / 10
MCP Server 0 / 12
Machine-Readable Auth 0 / 10
Idempotency 0 / 9
Stable Error Semantics 0 / 8
Request/Response Examples 0 / 7
Rate-Limit Signaling 7 / 7
Typed Event Surface 0 / 6
Agent Skills 0 / 5
Well-Known Catalog 0 / 4
Consent & Bot Identity 0 / 3
A2A Agent Card 0 / 8
Dry-Run / Simulate Mode 0 / 4
Improve this rating by publishing the missing artifacts — every area above can be raised, and the full rubric is at apis.io/rating/. This rating is computed from github.com/api-evangelist/better-auth: open an issue to ask a question, or submit a pull request to add artifacts. Want it done for you? Prioritized profiling — $2,500 →

APIs 4

Individual APIs this provider publishes, each with its own machine-readable definition.

Better Auth Library

Core TypeScript library distributed as the `better-auth` npm package. Configured in the application backend to expose sign-in / sign-up / session endpoints that the developer mo...

Better Auth CLI

Project initialization and schema-migration CLI invoked with `npx @better-auth/cli` (or `npx auth init`). Generates database schema, configures the auth route handler, and scaff...

Better Auth Plugins

First-party plugin ecosystem covering two-factor authentication, passkeys, magic link, organizations and teams, API keys, generic OAuth, JWT, OpenAPI, admin, and SSO (SAML / OID...

Better Auth Dashboard (Managed)

Optional managed dashboard at dash.better-auth.com. Adds user management UI, audit logs, security signals (breached-password lookups, bot protection, brute-force detection), and...

Pricing Plans 1

Published pricing tiers and plan structures.

Rate Limits 1

Documented rate limits and quota policies.

Better Auth Rate Limits

2 limits

RATE LIMITS

FinOps 1

Cost, billing, and metering signals for API financial operations.

Security Posture 1

Authentication, domain security, vulnerability disclosure, and trust-center signals.

Better Auth Domain Security

TLSv1.3 · HSTS · DNSSEC · DMARC

SECURITY

Resources

Documentation 1

Reference material describing how the API behaves

Build 3

SDKs, sample code, and the tooling you integrate with

Access & Security 1

Authentication, authorization, and security posture

Operate 1

Status, limits, changes, and where to get help

Company 2

The organization behind the API

Other 1

Properties that don't map to a standard resource type

Source (apis.yml)

apis.yml Raw ↑
aid: better-auth
url: https://raw.githubusercontent.com/api-evangelist/better-auth/refs/heads/main/apis.yml
name: Better Auth
kind: company
description: Better Auth is a framework-agnostic authentication and authorization library for TypeScript. Unlike hosted identity
  providers, Better Auth runs inside the developer's own application against their own database (Postgres, MySQL, SQLite,
  MongoDB via adapters). The core library supports credential, social, magic-link, OTP, passkey, and SSO sign-in, with plugins
  for organizations / teams / RBAC, API keys, two-factor authentication, JWT, generic OAuth, SAML / SSO, and SCIM. It integrates
  with Next.js, Nuxt, SvelteKit, Astro, Hono, and 20+ other frameworks. An optional managed dashboard with audit logs, breached-password
  detection, bot-protection, and self-service enterprise SSO is available at dash.better-auth.com.
accessModel:
  pricing: free
  onboarding: unknown
  trial: false
  try_now: false
  public: false
  label: Free
  confidence: medium
  source:
  - plans
  generated: '2026-07-22'
  method: derived
image: https://kinlane-images.s3.amazonaws.com/shared/apis-json/icons/better-auth.png
tags:
- Authentication
- Authorization
- TypeScript
- Library
- Open Source
- SSO
- Passkeys
created: '2026-05-23'
modified: '2026-05-23'
specificationVersion: '0.19'
apis:
- aid: better-auth:library
  name: Better Auth Library
  description: Core TypeScript library distributed as the `better-auth` npm package. Configured in the application backend
    to expose sign-in / sign-up / session endpoints that the developer mounts under their own domain; there is no Better-Auth-hosted
    REST API for the core library. Includes a typed client (`better-auth/client`) for use from frontend code.
  humanURL: https://www.better-auth.com/docs
  baseURL: https://github.com/better-auth/better-auth
  tags:
  - Library
  - TypeScript
  - SDK
  - Self-Hosted
  properties:
  - type: Documentation
    url: https://www.better-auth.com/docs
  - type: Repository
    url: https://github.com/better-auth/better-auth
  - type: Package
    url: https://www.npmjs.com/package/better-auth
- aid: better-auth:cli
  name: Better Auth CLI
  description: Project initialization and schema-migration CLI invoked with `npx @better-auth/cli` (or `npx auth init`). Generates
    database schema, configures the auth route handler, and scaffolds plugin wiring.
  humanURL: https://www.better-auth.com/docs/cli
  baseURL: https://github.com/better-auth/better-auth
  tags:
  - CLI
  - Tooling
  properties:
  - type: Documentation
    url: https://www.better-auth.com/docs/cli
- aid: better-auth:plugins
  name: Better Auth Plugins
  description: First-party plugin ecosystem covering two-factor authentication, passkeys, magic link, organizations and teams,
    API keys, generic OAuth, JWT, OpenAPI, admin, and SSO (SAML / OIDC). Plugins extend both the server runtime and the typed
    client.
  humanURL: https://www.better-auth.com/docs/plugins
  baseURL: https://github.com/better-auth/better-auth
  tags:
  - Plugins
  - Extensions
  properties:
  - type: Documentation
    url: https://www.better-auth.com/docs/plugins
- aid: better-auth:dashboard
  name: Better Auth Dashboard (Managed)
  description: Optional managed dashboard at dash.better-auth.com. Adds user management UI, audit logs, security signals (breached-password
    lookups, bot protection, brute-force detection), and enterprise features such as self-service SSO and SCIM provisioning
    on top of self-hosted Better Auth deployments.
  humanURL: https://dash.better-auth.com
  baseURL: https://dash.better-auth.com
  tags:
  - Dashboard
  - Managed
  - Enterprise
  - Audit Logs
  properties:
  - type: Documentation
    url: https://www.better-auth.com/docs
common:
- type: DomainSecurity
  url: security/better-auth-domain-security.yml
- type: Website
  url: https://www.better-auth.com/
- type: Documentation
  url: https://www.better-auth.com/docs
- type: GitHub
  url: https://github.com/better-auth/better-auth
- type: GitHubOrg
  url: https://github.com/better-auth
- type: Package
  url: https://www.npmjs.com/package/better-auth
- type: Dashboard
  url: https://dash.better-auth.com
- type: Discord
  url: https://discord.gg/better-auth
- url: https://better-auth.com/blog/rss.xml
  type: Blog
integrations:
- name: Next.js
- name: Nuxt
- name: SvelteKit
- name: Astro
- name: Hono
- name: Remix
- name: Express
- name: Elysia
- name: PostgreSQL
- name: MySQL
- name: SQLite
- name: MongoDB
- name: Drizzle
- name: Prisma
- name: Kysely
maintainers:
- FN: Kin Lane
  email: kin@apievangelist.com