Skip to content
Agents tracked: 502 Releases (7d): 613 Agent status: 4 with issuesSince last limit reset: Claude 7d · Codex 5d For AI agents: Markdown Updated Nov 18, 2026

NextAuth.js vs Clerk

In 4,864 JavaScript/TypeScript projects set up for AI coding agents, NextAuth.js is a dependency in 151 (3.1%) and Clerk in 58 (1.2%): NextAuth.js is 2.6× as common. Among repos created in the last 90 days that use a auth and security libraries tool, NextAuth.js is in 8.6% and Clerk in 5.7%, against 17.2% and 6.5% of older ones. 5 projects list both, often a sign of a migration or of a monorepo with several apps.

Auth and security libraries npm Updated Nov 17, 2026

NextAuth.js3.1%
Clerk1.2%

Share of 4,864 JavaScript/TypeScript projects set up for AI coding agents that list each one as a dependency.

Side by side

NextAuth.jsClerk
Agent projects that use it15158
Rank in auth and security libraries#2#11
In new repos with a auth and security libraries tool (last 90 days)8.6%5.7%
In older repos with one17.2%6.5%
Downloads, last 7 days9.4M3.8M
GitHub stars28.4K1,782
Last push to its repoJul 22, 2026Nov 17, 2026
LicenseISCMIT
FundingYes—
Projects that list both5

Downloads include CI runs and installs as a dependency of other packages. Stars and pushes are from GitHub's API; downloads from npm.

By coding agent

Projects set up forJavaScript/TypeScript reposNextAuth.jsClerk
Claude Code2,6172.7%1.0%
GitHub Copilot2,3503.7%1.1%
Cursor1,9903.1%1.7%
Gemini CLI4222.4%1.4%
OpenAI Codex4092.7%1.5%
OpenCode3042.0%0%
OpenClaw2412.1%0%
Devin Desktop2313.5%4.8%
Roo-Code900%8.9%

Share of the JavaScript/TypeScript repos configured for each agent (its config file in the repo) that list the tool. A repo set up for two agents counts for both.

NextAuth.js

Complete open-source authentication solution designed for Next.js applications.

Most often used with it:

Next.js99.3% of its projects
Lucide React83.4% of its projects
clsx82.1% of its projects
Tailwind Merge78.8% of its projects
React99.3% of its projects

npm install next-auth

Clerk

Modern authentication and user management SDK for Next.js and React.

Most often used with it:

Lucide React77.6% of its projects
Class Variance Authority69.0% of its projects
Next.js70.7% of its projects
Tailwind Merge72.4% of its projects
React94.8% of its projects

npm install @clerk/nextjs

More matchups

NextAuth.js vs Better AuthBetter Auth vs Clerkjsonwebtoken vs josebcryptjs vs bcrypt (JavaScript)PyJWT vs python-josepasslib vs bcrypt (Python)

How we count

Projects are public GitHub repos our weekly scan finds through coding-agent config files (CLAUDE.md, AGENTS.md, .cursor/mcp.json and others); a project uses a tool when its package.json, requirements.txt or pyproject.toml lists it. "Same job" was checked for every pair, so add-ons and companions are never paired. Shares by repo age compare repos created in the last 90 days with older ones in the same scan. More on the method.