# Auth.js vs Clerk

| Field | Auth.js | Clerk |
| --- | --- | --- |
| Pricing | Open source | Free tier |
| Open source | Yes | No |
| Self-hostable | Yes | No |
| Ecosystem | JavaScript / TypeScript | JavaScript / TypeScript |
| Category | Auth | Auth |

## Choose Clerk over Auth.js when

Choose it for a hosted service with prebuilt UI and organizations. It is billed per retained user above 50,000; Auth.js has no per-user bill.

**Clerk**: hosted, with prebuilt UI and organizations, billed per retained user above 50,000 ([pricing](https://clerk.com/pricing.md)). Auth.js has no per-user bill.

- Source: https://clerk.com/pricing.md
- Checked: 25 November 2026

## Choose Auth.js over Clerk when

Choose it for free, self-run auth with no per-user bill. Its v5 line has been in beta since 2023 and its maintainers recommend Better Auth for new projects.

**Auth.js**: free and self-run, with no per-user bill, but its v5 line has been in beta since 2023 and its maintainers recommend Better Auth for new projects ([Auth.js README](https://github.com/nextauthjs/next-auth#readme)).

- Source: https://github.com/nextauthjs/next-auth#readme
- Checked: 25 November 2026

## Auth.js

An open-source authentication library for web frameworks, best known as NextAuth.js, with many OAuth providers built in.

Best for: Adding social sign-in to Next.js and similar apps.

[Auth.js](https://www.devcurator.com/tools/authjs.md)

## Clerk

Hosted authentication and user management with prebuilt sign-in components, organisations and session handling.

Best for: Shipping polished auth fast without running it yourself.

[Clerk](https://www.devcurator.com/tools/clerk.md)
