Report card

Do AI agents pick Auth.js (NextAuth)?

How often agents choose Auth.js (NextAuth) when a developer needs authentication — measured across Claude, GPT, Gemini.

Auth.js (NextAuth)

#2 of 6 auth
13%Pick Rate
95% CI 8%19%

When developers ask an AI agent for auth, Auth.js (NextAuth) is picked 13% of the time — ranking #2 of 6 measured across Claude, GPT, Gemini.

Picked 13% Named, not picked 27% Never surfaced 61%

Beaten by Clerk (15%).

Awareness

8.4M package downloads / week

Known but not preferred — widely used, but agents pick competitors. That's a preference problem, not awareness.

0 docs in FineWeb (10BT sample) · 76 URLs in Common Crawl

In the raw web crawl, but thin in the filtered corpus models actually train on — an awareness gap at the source.

AdoptionDid the pick convert to installs? Public Adoption = npm downloads of your packages. The proof half of the funnel.

33.0M installs / month ▲ 13% MoM

Growing despite a low Pick Rate — winning the agent pick is upside, not a dependency.

Get the full report

The per-model and per-surface breakdown for Auth.js (NextAuth) — where it wins, where it loses, and to whom — plus an alert when the Pick Rate moves.

About Auth.js (NextAuth)

Authentication library built for Next.js applications.

Auth.js (formerly NextAuth) handles user authentication in Next.js apps, supporting OAuth providers (like Google, GitHub, and Twitter), email/passwordless login, and credentials-based auth. It manages sessions, JWTs, and database adapters so developers don't have to build auth flows from scratch. It targets Next.js developers who need a flexible, self-hostable auth solution without depending on a third-party service.

Where to start

Install the package and create an API route (or Route Handler in the App Router) to configure your chosen providers and session strategy. The official Auth.js documentation walks through setup for both the Pages Router and App Router.

Install

Links and summary verified from public sources.

The rest of the Authentication ranking

← Full Authentication leaderboard · How this is measured