metered-usage-best-practices

Installation
SKILL.md

Metered Usage

Gate access and track consumption with check() and report().

check()

Verify whether a customer can use a feature.

const result = await paykit.check({
  customerId: "user_123",
  featureId: "messages",
})

if (!result.allowed) {
  throw new Error("Usage limit reached")
}
Related skills
Installs
15
GitHub Stars
1
First Seen
Apr 11, 2026