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)

#1 of 6 auth
14%Pick Rate
95% CI 10%18%

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

Picked 14% Named, not picked 25% Never surfaced 62%

Top pick in the category. 🟢

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.

Agent readiness

Level 1 · Basic Web Presence · 3/16 agent standards

Auth.js (NextAuth) is missing Link headers, DNS-AID records, Markdown for agents, Content Signals. Readiness is what a site publishes for agents, not whether agents pick it — across our corpus the two barely correlate. Scored by Cloudflare's Agent Readiness score.

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