
Clerk is only available for React projects
Environment variables
Sign up for a Clerk account and create a new project. Add your public Clerk publishable key, sign-in URL, sign-up URL, and secret key to the.env file.
- Astro
- Next.js
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.

.env file.
# .env
PUBLIC_CLERK_PUBLISHABLE_KEY=
PUBLIC_CLERK_SIGN_IN_URL=
PUBLIC_CLERK_SIGN_UP_URL=
CLERK_SECRET_KEY=
# .env
NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY=
NEXT_PUBLIC_CLERK_SIGN_IN_URL=
NEXT_PUBLIC_CLERK_SIGN_UP_URL=
CLERK_SECRET_KEY=