Adding Clerk auth to your CLI
A practical OAuth 2.0 + PKCE localhost-callback pattern for authenticating CLI users with Clerk.

Clerk provides embeddable UIs, APIs, and dashboards for authentication and user management.
clerk.comCrawled Oct 16, 2026
A practical OAuth 2.0 + PKCE localhost-callback pattern for authenticating CLI users with Clerk.
Understand the differences between authentication vs. authorization and the purpose they both serve.
Hands-on articles, how-tos, and tutorials for developers shipping auth, SSO, and user management into their apps
The page explains how to build a secure blog application with tRPC, Drizzle, Next.js, and Clerk.
The guide compares multi-tenant and single-tenant SaaS architectures, including their pros, cons, use cases, scaling, and tenant isolation.
Bootstrap a new project in seconds using Clerk CLI`s `init` command
Clerk apps can be taken to production with a single, resumable command run from a terminal.
The Clerk CLI provides authentication capabilities for coding agents.
Part 1 of 4: per-connection vs per-MAU enterprise SSO pricing explained, why the real bill outruns the sticker, and how Clerk's MRU-based model fits B2B SaaS.
Part 2 of 4: the hidden costs of enterprise SSO — the SSO tax, SCIM fees, and the six-figure price of building it in-house versus buying managed auth like Clerk.
Part 3 of 4: enterprise SSO pricing compared across WorkOS, Auth0, Okta, Clerk, and more, with worked cost scenarios for startup, mid-stage, and established teams.
The page explains how SDKs and APIs serve different functions in software development.
Clerk has open roles and builds authentication and user management for the modern web.
The company offers support through tickets and at support@clerk.com.
Clerk builds authentication, user management, and billing for modern applications.
Talk to Clerk. Reach sales for demos and pricing, or support for product questions and onboarding help.
Clerk provides a user management layer for modern platforms, including multi-tenant auth, white-labeled sign-in, and managed sessions for apps built by customers.
Clerk pricing starts free for up to 50,000 monthly retained users. Pro plans from $20/mo. No credit card required. Compare all plans and features.
The company’s sales team discusses pricing and enterprise contracts and handles demo requests.
Clerk's blog index lists recent company, engineering, and guides posts about authentication and developer tooling. Featured items include an MCP server that lets approved agents read and change Clerk apps, accountless Next.js setup that provisions a claimable app and development keys, and a guide to adding Clerk auth to a CLI with OAuth 2.0 + PKCE. The page also archives 2026 posts on Clerk Deploy, API keys, AI-era auth, free subscription periods, and outage postmortems.
Clerk expands its Model Context Protocol (MCP) server to automate app management tasks. Agents using MCP can now create test users without requiring the Clerk CLI setup. The system redirects users to the Clerk Dashboard when manual intervention is needed.
Clerk introduces an accountless setup for Next.js developers, allowing them to build applications without requiring users to sign up, log in, or create an app in the Dashboard. This streamlines development workflows by eliminating permission prompts and account creation steps for agents or users.
Clerk publishes an engineering guide titled “Adding Clerk auth to your CLI,” describing a practical OAuth 2.0 + PKCE localhost-callback pattern for authenticating CLI users with Clerk. The post is framed around two valid paths, five moving parts, a one-time setup, keeping the implementation small enough to audit, what the guide does not cover, and a shorter next path.
Clerk publishes a guide and reference implementation for adding OAuth 2.0 with PKCE localhost-callback authentication to command-line interfaces. The pattern uses Clerk OAuth Applications, a one-shot local HTTP listener, and operating-system keychain storage. Clerk also provides a vendorable TypeScript example in the clerk/cli-auth-example repository.
Georgian Partners invests in Clerk, a developer platform improving authentication workflows for modern applications. The company aims to enhance developer experience by simplifying identity management tools. Clerk targets builders seeking streamlined, scalable solutions for user access control.
Clerk raises a $50 million Series C led by Menlo Ventures and Anthropic’s Anthology Fund, with Georgian and previous investors participating. Founded in 2019 by Colin and Braden Sidoti, Clerk manages more than 200 million users across over 15,000 applications and is building agent identity infrastructure for AI-native applications.
Clerk experienced a service outage on June 26, 2025. The company details the timeline of the incident and outlines immediate corrective actions taken. Engineers investigate root causes to prevent future disruptions.
Clerk makes passkeys available in beta for applications. The passwordless authentication option is described as a simple-to-use and secure way for applications to authenticate users.
Clerk raises $30 million in a Series B led by CRV, with Stripe, Andreessen Horowitz, and Madrona participating. The authentication startup plans to use the proceeds to expand into authorization and will soon integrate Stripe Billing to set user permissions based on subscription plans as part of a strategic partnership with Stripe. Clerk reports about 1,300 paying customers and 16 million users under management, and plans to grow its workforce from 55 to 80 by year-end.
Clerk raises a $15 million Series A led by Madrona. Madrona managing director Karan Mehandru joins Clerk’s board. New investors include Vercel CEO Guillermo Rauch, Mango Capital, and former Auth0 CRO Dave Wilner, while Andreessen Horowitz, S28 Capital, and Fathom Capital also participate. Clerk plans to expand beyond authentication into authorization, roles, billing entitlements, and broader framework support.