Introduction
Introduction to Better Auth.
Better Auth is a framework-agnostic, universal authentication and authorization framework for TypeScript. It provides a comprehensive set of features out of the box and includes a plugin ecosystem that simplifies adding advanced functionalities. Whether you need 2FA, passkey, multi-tenancy, multi-session support, or even enterprise features like SSO, creating your own IDP, it lets you focus on building your application instead of reinventing the wheel.
Features
Better Auth aims to be the most comprehensive auth library. It provides a wide range of features out of the box and allows you to extend it with plugins. Here are some of the features:
...and much more!
AI tooling
LLMs.txt
Better Auth exposes an LLMs.txt that helps AI models understand how to integrate and interact with your authentication system. See it at https://better-auth.com/llms.txt.
Skills
Better Auth provides skills that can be added to your AI coding assistant to help it understand Better Auth best practices and implementation patterns.
npx skills add better-auth/skillsMCP
Better Auth provides an MCP server so you can use it with any AI model that supports the Model Context Protocol (MCP).
CLI Options
Use the Better Auth CLI to easily add the MCP server to your preferred client:
npx @better-auth/cli mcp --cursornpx @better-auth/cli mcp --claude-codenpx @better-auth/cli mcp --open-codenpx @better-auth/cli mcp --manualManual Configuration
Alternatively, you can manually configure the MCP server for each client:
claude mcp add --transport http better-auth https://mcp.inkeep.com/better-auth/mcp {
"$schema": "https://opencode.ai/config.json",
"mcp": {
"better-auth": {
"type": "remote",
"url": "https://mcp.inkeep.com/better-auth/mcp",
"enabled": true,
}
}
}{
"better-auth": {
"url": "https://mcp.inkeep.com/better-auth/mcp"
}
}