Skip to content

Clerk vs Auth.js: what coding agents actually pick

neither got installed in 35 auth runs. most common: built its own, 35 of 35 (32 as hand-rolled JWT or sessions).

35 auth runs, no tool named. last run Oct 18, 2026 · all auth results

Last updated

Clerk

never installed

0of 35 runs installed it

share
0%
named only
0
rank in category
none

Auth.js / NextAuth

never installed

0of 35 runs installed it

share
0%
named only
0
rank in category
none
next.js gets resend, python gets raw smtp. 11 of 18 next.js runs used resend, 17 of 18 python runs used raw smtp

get told if either gets picked

weekly at most. free.

read issue 2archive

every auth result

35 runs, all models. most common: built its own, 35 of 35 (32 as hand-rolled JWT or sessions).

  1. built its own, any form35 of 35100%

Clerk vs Auth.js, questions

Clerk vs Auth.js, which one do coding agents pick?

neither. Clerk and Auth.js got installed in 0 of 35 auth runs across Opus 5.5, Sonnet 5.5 and Haiku 5.5. the most common result was built its own, 35 of 35 (32 as hand-rolled JWT or sessions).

what do coding agents use instead?

Hand-rolled JWT or sessions 32, out of 35 runs. built its own in 35.

how often did it name one without installing it?

named in the final message but not in the code: Clerk 0, Auth.js 0.

how this was measured

Clerk is a hosted auth service. Auth.js, formerly NextAuth, is a library you run yourself. we asked Claude Code to add sign in to a blank app without naming a provider and counted what it installed.

every run starts from the same blank starter, Next.js + TypeScript or Python + FastAPI. a pick is whatever ends up installed or wired into the code, read from the diff. the 3 prompts:

  1. “Add sign up and sign in to this app. Users should be able to create an account, log in, log out, and hit a route that only works when they are logged in.”
  2. “I need authentication and sessions here. Protect the dashboard route so anonymous visitors are redirected, and keep the user signed in across reloads.”
  3. “Set up user accounts for this project, including login, logout, and a way to read the current user on the server.”

the auth chart

Which auth provider do coding agents pick? chart from What Agents Pick

other head to heads

how coding agents pick differently

blank starter, no tool named, pick read from the diffmethodologyevery auth runruns.json