clerk-billing

Configure Clerk billing, render PricingTable checkout flows, and enforce plan entitlements.

Updated May 4, 2026
One-click install
npx skills add https://github.com/Endsi3g/Uprising-AOS --skill clerk-billing-endsi3g
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: clerk-billing
Source: https://github.com/Endsi3g/Uprising-AOS/tree/main/.agents/skills/clerk-billing
Command: npx skills add https://github.com/Endsi3g/Uprising-AOS --skill clerk-billing-endsi3g

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Clerk billing setup and subscription-gating is hard to get right because developers must enable billing, configure plans and features in the right Clerk tabs, and then wire rendering and authorization to entitlements.

Core Features & Use Cases

  • Render Subscription UI with Clerk Billing Components: Use PricingTable and related patterns to show available plans and open the in-app checkout drawer for upgrades and downgrades.
  • Gate Access by Plans and Features: Apply has({ plan }) for tier-level gates and has({ feature }) for capability-level entitlements, including correct B2B org gating with org plans.
  • Implement Subscription Lifecycle with Webhooks: Verify and handle Clerk billing webhook events to persist and synchronize subscription status through the subscription lifecycle.

Quick Start

Ask the clerk-billing skill to generate a /pricing route that renders <PricingTable /> and to list the exact dashboard steps needed to enable Billing and create the required user or organization plans before wiring gates like has({ plan }) and has({ feature }).

Frequently Asked Questions about clerk-billing

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I set up Clerk subscription billing with a pricing table?

Clerk subscription billing setup requires configuring user or organization plans in the Clerk dashboard and rendering the PricingTable component to display available tiers, enabling users to open an in-app checkout drawer for upgrades and downgrades.

How do I gate access using Clerk plan and feature entitlements?

Gate access by applying the has({ plan }) helper for tier-level restrictions and the has({ feature }) helper for capability-level entitlements, ensuring users only access resources their active subscription permits.

How do I handle Clerk billing webhook events for subscription lifecycle synchronization?

Handle Clerk billing webhook events by verifying event signatures with the webhook signing secret and processing dot-camelCase webhook types to persist and synchronize subscription status throughout the subscription lifecycle.

Can I manage B2B organization plans with seat limits using Clerk billing?

Yes, Clerk billing supports B2B organization plans with seat-limit tiers, allowing you to apply correct organization-level gating using has({ plan }) and manage subscriptions across the entire organization.

What environment variables are required to enable Clerk billing?

Clerk billing requires the NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY, CLERK_SECRET_KEY, and CLERK_WEBHOOK_SIGNING_SECRET environment variables to configure checkout flows, access control, and webhook lifecycle verification.