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")
}