{
 "kind": "tool",
 "slug": "better-auth",
 "path": "tools/better-auth/",
 "name": "Better Auth",
 "maker": null,
 "density": "basic",
 "crumbs": [
  [
   "Tools",
   "tools/"
  ],
  [
   "Auth and security libraries",
   "tools/auth-security/"
  ]
 ],
 "lead": "Comprehensive authentication framework for TypeScript with multiple strategies.",
 "chips": [
  {
   "label": "Auth and security libraries",
   "path": "tools/auth-security/"
  },
  {
   "label": "NPM"
  }
 ],
 "primary": {
  "label": "Copy install command",
  "copy": "npm install better-auth"
 },
 "links": [
  {
   "label": "GitHub",
   "href": "https://github.com/better-auth/better-auth"
  },
  {
   "label": "Website",
   "href": "https://better-auth.com"
  }
 ],
 "track": "New versions, deprecation and license changes on your dashboard",
 "verdicts": [
  {
   "key": "license",
   "label": "License",
   "value": "MIT",
   "status": "yes",
   "sub": "Use it in paid apps",
   "quote": null,
   "note": "License from npm.",
   "src": "https://github.com/better-auth/better-auth"
  },
  {
   "key": "maint",
   "label": "Maintained",
   "value": "Maintained",
   "status": "yes",
   "sub": "Last change Nov 24, 2026",
   "note": "Latest GitHub release Nov 20, 2026. ",
   "src": "https://github.com/better-auth/better-auth"
  },
  {
   "key": "pop",
   "label": "Used by agents' projects",
   "value": "103 projects",
   "status": "info",
   "sub": "#7 of 141 in its category",
   "note": "Dependency in 103 public GitHub projects set up for AI coding agents that we scanned (1.6%).",
   "src": null
  },
  {
   "key": "agent",
   "label": "Agent access",
   "value": "Community skills",
   "status": "info",
   "sub": "2 skills by others",
   "note": "Agent skills for this library in the skills catalog; community skills are written by others, read them before you install.",
   "src": null
  }
 ],
 "vfoot": "From the package registry and GitHub, checked daily.",
 "blocks": [
  {
   "id": "overview",
   "nav": "Overview",
   "h2": "What Better Auth does",
   "parts": [
    {
     "t": "prose",
     "text": "Comprehensive authentication framework for TypeScript with multiple strategies."
    }
   ]
  },
  {
   "id": "popularity",
   "nav": "Popularity",
   "h2": "Better Auth popularity",
   "parts": [
    {
     "t": "stats",
     "items": [
      {
       "n": "79",
       "of": "/ 100",
       "l": "Gid Score, #113 overall"
      },
      {
       "n": "21.1M",
       "l": "downloads a week, npm"
      },
      {
       "n": "30.9K",
       "l": "GitHub stars"
      },
      {
       "n": "103",
       "l": "agent projects use it"
      }
     ]
    },
    {
     "t": "small",
     "text": "Gid Score measures public popularity and activity, not quality.",
     "link": "How the Gid Score is calculated",
     "path": "tools/top/"
    }
   ]
  },
  {
   "id": "usage",
   "nav": "How it is used",
   "h2": "How Better Auth is used",
   "parts": [
    {
     "t": "list",
     "items": [
      "Better Auth is a dependency in 103 of the 6,258 public GitHub projects set up for AI coding agents that we scanned (2.1% of the 4,867 JavaScript/TypeScript ones), #7 of 141 in auth and security libraries.",
      "Counting the projects our scan samples by dependency (Solana 3,067, Ethereum and EVM 1,774, 3D and games 3,130, agent frameworks and SDKs 13,750), it appears in 362; those are left out of every share on this page.",
      "The most used alternative in our scan is NextAuth.js (150 projects).",
      "Projects that use it most often also use Tailwind Merge (77.7%), clsx (76.7%), Lucide React (76.7%)."
     ]
    },
    {
     "t": "h3",
     "text": "By coding agent"
    },
    {
     "t": "rows",
     "rows": [
      {
       "l": "57 projects, 1.9%",
       "v": "GitHub Copilot",
       "path": "agents/github-copilot/"
      },
      {
       "l": "53 projects, 1.6%",
       "v": "Claude Code",
       "path": "agents/claude-code/"
      },
      {
       "l": "43 projects, 1.8%",
       "v": "Cursor",
       "path": "agents/cursor/"
      },
      {
       "l": "15 projects, 4.4%",
       "v": "OpenCode",
       "path": "agents/opencode/"
      },
      {
       "l": "8 projects, 1.7%",
       "v": "OpenAI Codex",
       "path": "agents/openai-codex/"
      },
      {
       "l": "7 projects, 1.5%",
       "v": "Gemini CLI",
       "path": "agents/gemini-cli/"
      },
      {
       "l": "5 projects, 1.8%",
       "v": "Devin Desktop",
       "path": "agents/devin-desktop/"
      }
     ]
    },
    {
     "t": "h3",
     "text": "Often used with"
    },
    {
     "t": "rows",
     "rows": [
      {
       "l": "In 77.7% of its projects",
       "v": "Tailwind Merge",
       "path": "tools/tailwind-merge/"
      },
      {
       "l": "In 76.7% of its projects",
       "v": "clsx",
       "path": "tools/clsx/"
      },
      {
       "l": "In 76.7% of its projects",
       "v": "Lucide React",
       "path": "tools/lucide-react/"
      },
      {
       "l": "In 72.8% of its projects",
       "v": "Class Variance Authority",
       "path": "tools/class-variance-authority/"
      },
      {
       "l": "In 68.9% of its projects",
       "v": "tw-animate-css",
       "path": "tools/tw-animate-css/"
      },
      {
       "l": "In 80.6% of its projects",
       "v": "Zod",
       "path": "tools/zod/"
      },
      {
       "l": "In 89.3% of its projects",
       "v": "Tailwind CSS",
       "path": "tools/tailwindcss/"
      },
      {
       "l": "In 58.3% of its projects",
       "v": "Sonner",
       "path": "tools/sonner/"
      }
     ]
    }
   ]
  },
  {
   "id": "more",
   "nav": null,
   "spy_as": "usage",
   "h2": "More about Better Auth",
   "parts": [
    {
     "t": "more",
     "items": [
      {
       "title": "Funding",
       "path": "tools/funding/",
       "items": [
        "GitHub Sponsors: https://github.com/better-auth",
        "10 GitHub sponsors"
       ]
      },
      {
       "title": "Agent Skills for it",
       "path": "skills/",
       "items": [
        "better-auth-best-practices: Configure Better Auth server and client, set up database adapters, manage sessions, add plugins, and handle environment variables. Use when",
        "better-auth: Implement authentication and authorization with Better Auth - a framework-agnostic TypeScript authentication framework. Features include ema"
       ]
      },
      {
       "title": "Head to head",
       "items": [
        {
         "text": "NextAuth.js vs Better Auth",
         "note": "used together in 3 projects",
         "path": "tools/compare/nextauthjs-vs-better-auth/"
        },
        {
         "text": "Better Auth vs Clerk",
         "note": "used together in 0 projects",
         "path": "tools/compare/better-auth-vs-clerk/"
        }
       ]
      },
      {
       "title": "More in Auth and security libraries",
       "path": "tools/auth-security/",
       "items": [
        {
         "text": "bcryptjs",
         "path": "tools/bcryptjs/"
        },
        {
         "text": "jsonwebtoken",
         "path": "tools/jsonwebtoken/"
        },
        {
         "text": "cryptography",
         "path": "tools/cryptography/"
        },
        {
         "text": "PyJWT",
         "path": "tools/pyjwt/"
        },
        {
         "text": "jose",
         "path": "tools/jose/"
        },
        {
         "text": "DOMPurify",
         "path": "tools/dompurify/"
        },
        {
         "text": "Helmet",
         "path": "tools/helmet/"
        },
        {
         "text": "bcrypt (JavaScript)",
         "path": "tools/bcrypt-npm/"
        }
       ]
      }
     ]
    }
   ]
  },
  {
   "id": "alternatives",
   "nav": "Alternatives",
   "h2": "Alternatives",
   "parts": [
    {
     "t": "alts",
     "items": [
      {
       "name": "Better Auth",
       "me": true,
       "facts": [
        "MIT",
        "Gid 79",
        "21.1M/wk"
       ]
      },
      {
       "name": "NextAuth.js",
       "why": "Complete open-source authentication solution designed for Next.js applications.",
       "path": "tools/next-auth/",
       "facts": [
        "ISC",
        "Gid 75",
        "9.4M/wk"
       ]
      },
      {
       "name": "Clerk",
       "why": "Modern authentication and user management SDK for Next.js and React.",
       "path": "tools/clerk/",
       "facts": [
        "MIT",
        "Gid 62",
        "4.1M/wk"
       ]
      },
      {
       "name": "Passport.js",
       "why": "Modular authentication middleware for Node.js supporting OAuth, JWT and local strategies.",
       "path": "tools/passport/",
       "facts": [
        "MIT",
        "Gid 69",
        "10.5M/wk"
       ]
      }
     ],
     "more": "Compare Better Auth with another tool",
     "more_path": "tools/compare/"
    }
   ]
  },
  {
   "id": "start",
   "nav": "Get started",
   "h2": "Get started",
   "parts": [
    {
     "t": "install",
     "intro": "Install it.",
     "code": "npm install better-auth"
    },
    {
     "t": "gap",
     "text": "No step-by-step start for Better Auth yet: we have not written its hand-checked card."
    }
   ]
  }
 ],
 "glance": [
  [
   "Package",
   "npm better-auth"
  ],
  [
   "Category",
   "Auth and security libraries"
  ],
  [
   "License",
   "MIT"
  ],
  [
   "Gid Score",
   "79.3"
  ],
  [
   "Rank in category",
   "#7 of 141"
  ],
  [
   "GitHub",
   "better-auth/better-auth"
  ],
  [
   "Last change",
   "Nov 24, 2026"
  ]
 ],
 "good": [],
 "checked_line": "From the package registry, GitHub and our scan of public agent projects; numbers update daily.",
 "logo": "https://agentgid.com/media/avatars/better-auth.png"
}