back
loading skill details...
Set up Clerk authentication in any project with the Clerk plugin, the Clerk CLI, and official framework quickstarts. Use when adding Clerk, initializing Clerk,…
Framework-agnostic Clerk authentication setup following official quickstart guides. Detects framework from package.json dependencies and fetches the corresponding Clerk quickstart documentation (supports Next.js, Remix, Astro, Nuxt, React Router, TanStack Start, React SPA, Vue, Express, Fastify, Expo, Chrome Extension, Android, iOS, and Vanilla JavaScript) Handles environment variable setup, provider configuration, and middleware/proxy file creation with version-specific guidance for Core 2 SDK differences Includes migration detection and planning for projects with existing auth providers (NextAuth, Supabase, Firebase, Auth0, Passport, custom JWT) Applies shadcn/ui theming automatically if components.json is detected; supports both keyless auto-generation and manual dashboard API key retrieval Documents critical pitfalls including async auth() calls, secret key exposure, middleware matchers, and ClerkProvider placement rules Set up Clerk Check for the Clerk plugin first. It bundles skills and the Clerk MCP server for account work. The MCP server can't write files in this project and never returns secret keys, so the Clerk CLI still sets up the project. On supported frameworks, npx -y clerk@latest init needs no Clerk account: it provisions a claimable application and writes temporary development keys. The commands below use npx -y clerk@latest. In a project that uses pnpm, Bun, or Yarn 2+, run them with pnpm dlx clerk@latest, bunx clerk@latest, or yarn dlx clerk@latest instead. Do not install the CLI globally. Before you start Show the user this checklist and wait for a yes: Here's what I'll do to get you set up with Clerk. 1. Add Clerk's agent skills and MCP server for the coding agents on this machine, through the Clerk plugin where possible, if they aren't installed yet. 2. Set up Clerk in this project, or scaffold a new app if this directory is empty. 3. Start your app with Clerk installed.
don't have the plugin yet? install it then click "run inline in claude" again.