Loading KingLand…

Clerk

Ultra-fast user authentication and management for your web applications.

Developer Tools · Dev & Tech

Visit the official site

Version française

About Clerk

Clerk is an authentication and identity management platform designed for web development. Specifically optimized for React, Next.js, and Astro, it provides native UI components for registration, login, and B2C/B2B workflows. Clerk natively handles passkeys, multi-factor authentication (MFA), single sign-on (SSO), as well as M2M tokens and API key management. The tool replaces on-premises infrastructure with a high-performance service, integrating seamless session persistence with Supabase and Neon.

Visual guide to Clerk

User guide V2 – Clerk
User guide V2 – Clerk

Open the full-size guide · WebP

User guide V2: Clerk

Add Clerk sign-up and sign-in to a Next.js App Router application, then create a first test user.

Before you start

  • A Clerk account and access to the Clerk Dashboard.
  • Node.js, npm and a terminal; an existing Next.js App Router project or the ability to create one.
  • A code editor and an address you can use to test sign-up.
  1. Create the Clerk application

    In the Dashboard, select Create application, then choose the identifiers and sign-in methods for your users.

    Check: The application appears in the Dashboard with a Development instance.

  2. Install the Next.js SDK

    In your App Router project directory, run npm install @clerk/nextjs; create the Next.js project first if needed.

    Check: The command finishes and @clerk/nextjs appears in the dependencies.

  3. Add the API keys

    On API keys, copy the publishable key and create a secret key; add both values to the project's .env file.

    Check: The file defines NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY and CLERK_SECRET_KEY.

  4. Install clerkMiddleware()

    In proxy.ts, export clerkMiddleware() and copy the matcher from the official quickstart to include Clerk routes.

    Check: proxy.ts is at the project root, or inside src if that directory exists.

  5. Add authentication controls

    In app/layout.tsx, use the quickstart example with ClerkProvider, Show, SignInButton, SignUpButton and UserButton.

    Check: The layout has ClerkProvider inside body and its Show controls inside Suspense.

  6. Create a test user

    Run npm run dev, open localhost:3000, select Sign up and complete the verification requested by your setup.

    Check: Sign-up succeeds and the profile button replaces the signed-out controls.

Useful features

  • SignInButton and SignUpButton link to Clerk Account Portal pages by default.
  • UserButton shows the user's avatar and opens account-management options.
  • ClerkProvider supplies user and session context to Clerk components.

Practical tips

  • Keep CLERK_SECRET_KEY server-side; never put it in client code or a public repository.
  • Copy the secret key when you create it: the API keys page displays it only once.
  • Before deployment, activate Production, configure your domain and replace test keys with production keys.

Limits and precautions

  • clerkMiddleware() protects no routes by default; explicitly protect sensitive data and operations.
  • The Development instance is for testing and is limited to 100 users.
  • For Next.js 15 or earlier, use middleware.ts rather than proxy.ts; this guide targets App Router.

Documentation consulted: 2026-11-30

Guide sources

Overview and pricing

Pricing models: Freemium · Subscription.

Free tier with limitations; paid plans may be available.

Check current pricing and terms on the official site.

Features

  • Ready-to-use UI components

    Integrate secure login and registration forms with just a few lines of code.

  • Passwordless authentication

    Native support for Passkeys, magic links, and biometric authentication.

  • B2B Organization Management

    Create team spaces with role-based access control (RBAC) and invitations.

  • Machine-to-machine (M2M) tokens

    Secure communications between your different backend services or microservices.

  • API key management

    Provide your users or customers with a system for creating and revoking API keys.

Highlights

  • Seamless integration with React, Next.js, Astro and most modern frameworks.
  • Ultra-generous free plan including up to 50,000 monthly active users.
  • Pre-designed and secure UI components for registration, login, and user profiles.

Technology and platforms

  • API available
  • Platforms: Web, iOS, Android
  • Supported languages: Multilingue

Recent news

Improvements to production deployment via Clerk CLI

Announcement date:

The clerk deploy command has been optimized to facilitate deployment to production, including automated management of instances, DNS records and OAuth credentials, with an agent mode for non-interactive environments.

YouTube videos about Clerk

Community reviews

KingLand Score : 71/100.

Community votes: 1 up · 0 down.

The KingLand Score is a community index. Participating can earn points. Methodology.

Explore similar tools

Developer Tools · Dev & Tech