Agent skill · marketing growth · jeremylongshore

clerk-cost-tuning

Optimize Clerk costs and understand pricing.

Why this skill is useful

Provides specific strategies and code snippets for optimizing Clerk costs that are not widely known.

What it needs

Requires clerk account access. About 3k tokens when loaded. Last updated 2026-08-07. 2,604 stars on the source repository.

What this skill does

Clerk Cost Tuning Overview Understand Clerk pricing and optimize costs. Clerk charges by Monthly Retained Users (MRU) — a user is counted as retained only when they return 24+ hours after signing up. Covers pricing tiers, MRU reduction strategies, caching to reduce API calls, and usage monitoring. Prerequisites Clerk account active Understanding of MRU (Monthly Retained Users) Application usage patterns known Instructions Step 1: Understand Clerk Pricing Model Plan Price MRU Included Extra MRU ------ ------- ------------- ----------- Free (Hobby) $0/mo 50,000 MRU N/A Pro $25/mo ($20/mo billed annually) 50,000 MRU $0.02/MRU Business $300/mo ($250/mo billed annually) 50,000 MRU $0.02/MRU Enterprise Custom Custom Custom Key pricing concepts: MRU = unique user who returns to your app 24+ hours after signing up ("first day free" — sign-up-day activity never counts) Users who sign up and never return are not billed Users who only visit public pages are not counted Bot/crawler sessions are not counted Test/development instances are free and unlimited Step 2: Reduce MRU Count Step 3: Cache to Reduce API Calls Step 4: Monitor Usage Step 5: Clean Up Inactive Users Output Pricing model understood with MRU thresholds Route-level auth to minimize unnecessary MRU counts Request-level and cross-request caching reducing API calls Usage monitoring endpoint for admins Inactive user identification script Error Handling Issue Cause Solution ------- ------- ---------- Unexpected bill increase MRU spike from bot traffic Add bot detection, restrict auth to needed routes Feature limitations Free tier limits (no SSO, etc.) Upgrade to Pro ($25/mo, or $20/mo billed annually) High API call volume No caching Add React cache() + unstablecache() MRU count mismatch Counting test users Use separate dev instance (free, unlimited) Examples Cost Estimation Script Resources Clerk Pricing Clerk Usage Dashboard Clerk Fair Use Policy Next Steps Proceed to clerk-reference-architecture for architecture patt …

How to use it

Reference it in AdaL, Claude Code, Cursor or any coding agent — nothing to install:

@skills jeremylongshore/clerk-cost-tuning--05ec6f

View the source on GitHub

Browse the @skills marketplace