Better Auth llms.txt · AI Docs Browser · mdream

[llms.txt Tools](https://mdream.dev/llms-txt/better-auth/llms-txt)

# Better Auth llms.txt

Browse Better Auth documentation as markdown. Click any page in the sidebar to view it, or copy the full llms.txt for your AI tools.

better-auth.com/llms.txt

[Raw llms.txt](https://better-auth.com/llms.txt) [Raw llms-full.txt](https://better-auth.com/llms-full.txt)

Copy Markdown [](https://better-auth.com/llms.txt)

llms.txt

Table of Contents

Community Adapters

Drizzle ORM Adapter

MongoDB Adapter

MS SQL

MySQL

Other Relational Databases

PostgreSQL

Prisma

SQLite

AI Resources

MCP

Skills

Apple

Atlassian

Cognito

Discord

Dropbox

Email & Password

Facebook

Figma

GitHub

GitLab

Google

Hugging Face

Kakao

Kick

LINE

Linear

LinkedIn

Microsoft

Naver

Notion

Other Social Providers

Paybin

PayPal

Polar

Railway

Reddit

Roblox

Salesforce

Slack

Spotify

TikTok

Twitch

Twitter (X)

Vercel

VK

WeChat

Zoom

Basic Usage

Comparison

API

CLI

Client

Cookies

Database

Email

Hooks

OAuth

Plugins

Rate Limit

Session Management

TypeScript

User & Accounts

Astro Example

Next.js Example

Nuxt Example

React Router v7 Example

SvelteKit Example

Upgrading to Better Auth 1.7

Migrating from Auth0 to Better Auth

Browser Extension Guide

Migrating from Clerk to Better Auth

Create a Database Adapter

Dynamic Base URL

Migrating from Auth.js to Better Auth

Optimizing for Performance

SAML SSO with Okta

Migrating from Supabase Auth to Better Auth

Migrating from WorkOS to Better Auth

Create your first plugin

Getting Started

Better Auth Infrastructure

Audit Logs

Dashboard Plugin (dash)

Dashboard

Security Plugin (sentinel)

Email Service

SMS Service

Installation

Astro Integration

Convex Integration

Electron Integration

Elysia Integration

Encore Integration

Expo Integration

Express Integration

Better Auth Fastify Integration Guide

Hono Integration

Lynx Integration

NestJS Integration

Next.js integration

Nitro Integration

Nuxt Integration

React Router v7 Integration

SolidStart Integration

SvelteKit Integration

TanStack Start Integration

Waku Integration

Introduction

Two-Factor Authentication (2FA)

Admin

Agent Auth

Anonymous

Autumn Billing

Bearer Token Authentication

Captcha

Chargebee

Commet

Community Plugins

Creem

Device Authorization

Dodo Payments

Dub

Email OTP

Generic OAuth

Have I Been Pwned

i18n

Plugins

JWT

Last Login Method

Magic link

MCP

Multi Session

OAuth 2.1 Provider

OAuth Proxy

OIDC Provider

One Tap

One-Time Token Plugin

Open API

Organization

Passkey

Phone Number

Polar

System for Cross-domain Identity Management (SCIM)

Sign In With Ethereum (SIWE)

Single Sign-On (SSO)

Stripe

Test Utils

Username

Advanced Features

API Key

Reference

Contributing to BetterAuth

FAQ

Instrumentation (Experimental)

Options

Resources

Security

Telemetry

account_already_linked_to_different_user

account_not_linked

email_doesn't_match

email_not_found

Errors

internal_server_error

invalid_callback_request

invalid_code

no_callback_url

no_code

oauth_provider_not_found

signup_disabled

state_invalid

state_mismatch

state_not_found

unable_to_create_session

unable_to_create_user

unable_to_get_user_info

unable_to_link_account

Unknown error

## What is Better Auth's llms.txt?

Better Auth publishes an `/llms.txt` file that provides AI systems with a structured index of its documentation. It follows the [llms.txt specification](https://llmstxt.org), organizing links to guides, API references, and tutorials under section headings so that LLMs like ChatGPT, Claude, and Gemini can quickly understand what Better Auth offers and where to find details.

Issues

Spec

1

Sections

180

Links

21.9 KB

Size

~5.6k

Tokens

Sections: Table of Contents

## Add Better Auth Docs to Your AI Assistant

Select your tool to see how to add Better Auth's llms.txt as a documentation source.

Cursor

 Windsurf

 Claude Code

 ChatGPT

 Zed

 Copilot

1. 1

   Open any chat or composer panel
2. 2

   Type @Docs and select "Add new doc"
3. 3

   Paste the URL: https://better-auth.com/llms.txt
4. 4

   Wait for the green dot (indexing complete)
5. 5

   Reference @Docs in chat when asking about Better Auth

Cursor crawls the URL and indexes all subpages. Add a trailing slash to index child pages too.

## Spec Compliance 14 errors

## Frequently Asked Questions

Where is Better Auth's llms.txt file?

Better Auth publishes its llms.txt at https://better-auth.com/llms.txt. This file provides a structured, markdown-formatted index of Better Auth's documentation that AI systems can consume to understand the project's APIs, guides, and references.

How do I use Better Auth's llms.txt with AI coding assistants?

Copy the llms.txt content and paste it into your AI assistant (Cursor, Windsurf, Claude, ChatGPT) as context. This gives the AI an accurate map of Better Auth's documentation so it can provide better code suggestions and answers about Better Auth.

What does Better Auth's llms.txt contain?

Better Auth's llms.txt contains 1 sections and 180 documentation links in 21.9 KB (~5.6k tokens). Key sections include Table of Contents.

How many tokens does Better Auth's llms.txt use?

The concise llms.txt index is approximately 5.6k tokens (21.9 KB). Most AI assistants can fit this within their context window. For the full expanded documentation, look for an llms-full.txt variant which embeds all content inline.

What is Better Auth?

The most comprehensive authentication framework for TypeScript. Better Auth's llms.txt file helps AI systems understand this by providing a structured overview of its documentation, making it easier for developers to get accurate AI-assisted help when working with Better Auth.

Can I generate an llms.txt for my own project?

Yes. Use the free llms.txt generator at mdream.dev/tools/llms-txt/generator to crawl your site and produce a spec-compliant llms.txt file. You can also validate existing files with the llms.txt validator.

## Browse More llms.txt Files

[Pydantic AI GenAI Agent Framework, the Pydantic way](https://mdream.dev/llms-txt/better-auth/llms-txt/pydantic-ai) [Modal llms.txt Modal is a platform for running Python code in the cloud with minimal](https://mdream.dev/llms-txt/better-auth/llms-txt/modal) [Filament](https://mdream.dev/llms-txt/better-auth/llms-txt/filament) [AutoGPT AutoGPT is the vision of accessible AI for everyone, to use and to build on. Our mission is to provide the tools, so that you can focus on what matters.](https://mdream.dev/llms-txt/better-auth/llms-txt/autogpt) [Ragas Evaluation framework for your AI Application](https://mdream.dev/llms-txt/better-auth/llms-txt/ragas) [MDBootstrap Important! A new UI Kit version for Bootstrap 5 is available. Access the latest free version via the link below.](https://mdream.dev/llms-txt/better-auth/llms-txt/material-design-for-bootstrap) [Firecrawl Docs](https://mdream.dev/llms-txt/better-auth/llms-txt/firecrawl) [Ghost Developer Docs](https://mdream.dev/llms-txt/better-auth/llms-txt/ghost)

[View all 99 projects ](https://mdream.dev/llms-txt/better-auth/llms-txt)

## Related Tools

[<h3>llms.txt Generator</h3>Generate an llms.txt for your own project.](https://mdream.dev/llms-txt/better-auth/tools/llms-txt/generator) [<h3>llms.txt Validator</h3>Validate your llms.txt against the official spec.](https://mdream.dev/llms-txt/better-auth/tools/llms-txt/validator)

© 2026 [Harlan Wilton](https://github.com/harlan-zw) · [MIT](https://github.com/harlan-zw/mdream/blob/main/license)

[GitHub](https://github.com/harlan-zw/mdream) [Discord](https://discord.com/invite/275MBUBvgP)