All sources

Better Auth Documentation for AI Search & MCP

Better Auth documentation provides guides for implementing authentication features like 2FA and OAuth, alongside integrating with frameworks and managing the Better Auth infrastructure. It also includes resources for AI integration and agentic workflows.

Pages
182
1,788
Tokens
~468.2K
Updated
Sep 30, 2026
Monitoring
Active

Works with

  • ChatGPT
  • Claude
  • Cursor
  • MCP clients
Solutions

What AI Agents Can Do With This Source

Use Better Auth Documentation to complete source-specific tasks, make informed decisions, and follow evidence-backed workflows.

Integrating Better Auth with Astro framework

The guide outlines how to mount the Better Auth handler, create a client, and use middleware to protect routes within an Astro application.

Configuring Apple OAuth provider for user authentication

The documentation provides step-by-step instructions to obtain OAuth credentials from the Apple Developer Portal and configure the provider within Better Auth.

Implementing Two-Factor Authentication (2FA)

The documentation provides detailed steps for installing the 2FA plugin, configuring OTP/TOTP, and managing features like backup codes and trusted devices.

Diagnosing "account_already_linked_to_different_user" error

The reference explains the cause of this OAuth flow error and provides typical resolutions, including unlinking accounts or merging user profiles.

Building a custom database adapter for Better Auth

The guide provides instructions and best practices for developing a custom database adapter to extend Better Auth's compatibility with various data stores.

Upgrading Better Auth to version 1.7

The guide details the necessary steps and considerations for upgrading Better Auth from 1.6 to 1.7, covering changes across various components like OAuth, SAML, and 2FA.

Coverage

What's Indexed from Better Auth

A quick look at the main areas Bulkgrid has indexed and keeps ready for AI search, MCP, extraction, and change detection.

Docs — Plugins

/docs/content/docs/plugins

45 pages

Implements various authentication and user management features, such as two-factor authentication, administrative controls, and API key management, to enhance application security and functionality.

Authentication

/docs/content/docs/authentication

38 pages

Guides users through setting up and integrating various OAuth and traditional authentication providers, such as Apple, Atlassian, and email/password, into their applications.

Reference

/docs/content/docs/reference

27 pages

Offers reference material, including guides for contributing to Better Auth, frequently asked questions, security information, and detailed explanations for various authentication errors.

Errors

/docs/content/docs/reference/errors

20 pages

Details common authentication errors, such as account linking issues or invalid credentials, providing explanations of their causes and practical steps for resolution.

Integrations

/docs/content/docs/integrations

19 pages

Provides guides for integrating Better Auth with various web frameworks and platforms, including Astro, Convex, Electron, and Express, to enable authentication in diverse application environments.

Concepts

/docs/content/docs/concepts

13 pages

Explains fundamental concepts of Better Auth, such as API interactions, CLI usage, client-side operations, database integration, and OAuth mechanisms, to provide a foundational understanding of the system.

Guides

/docs/content/docs/guides

12 pages

Offers practical guides for various tasks, including upgrading Better Auth versions, migrating from other authentication solutions, creating custom database adapters, and optimizing performance.

Adapters

/docs/content/docs/adapters

9 pages

Infrastructure

/docs/content/docs/infrastructure

7 pages

Introduces Better Auth Infrastructure as a paid service, detailing its key features like the management dashboard, audit logging, and security plugins, to extend and manage authentication systems.

Examples

/docs/content/docs/examples

5 pages

Provides practical code examples for integrating Better Auth with popular frontend frameworks like Astro, Next.js, and SvelteKit, demonstrating various authentication features.

AI Resources

/docs/content/docs/ai-resources

3 pages

Offers resources designed to integrate Better Auth into AI-driven workflows, including tools like AI Chat, LLMs.txt for machine-friendly indexing, MCP server, and portable instruction files for agents.

Infrastructure — Plugins

/docs/content/docs/infrastructure/plugins

3 pages

Details infrastructure-specific plugins like Audit Logs, Dashboard, and Security Plugin (Sentinel), which enhance monitoring, management, and protection of authentication events.

Advantages

Why Use Bulkgrid for AI-Ready Sources

Bulkgrid turns important websites into fresh, queryable, AI-ready sources without making teams maintain the infrastructure.

Spend Fewer Tokens

Retrieve the right source context instead of sending large pages, pasted docs, or noisy search results into every prompt.

Improve Answer Accuracy

Ground responses in current, source-backed evidence to reduce hallucinations and avoid relying on stale model memory.

Use Fresh Source Data

Keep important websites automatically recrawled and updated so AI is not working from old content.

Query Instantly

Search already-indexed source content immediately instead of crawling pages at question time.

No Infrastructure Maintenance

Bulkgrid handles crawling, rendering, retries, storage, indexing, recrawls, and change detection.

Change Detection

See when pages are added, removed, updated, or fail so teams can react without checking manually.

Give Your Agents Up-to-Date Knowledge from Better Auth

Search and use knowledge from Better Auth in ChatGPT, Claude, Cursor, and any MCP-compatible client.