Skip to main content
Monetize your own SaaS customers: define plans (plan → Account Kit + per-primitive quotas), subscribe each tenant user, and Naive meters usage and enforces quotas. Distinct from your own agent profile Billing (credits).

Endpoints

Plans

quotas maps a primitive slug to its max calls per period (month | day).

Subscription

assignKit (default true) also assigns the plan’s Account Kit to the tenant — one call applies tier permissions + quotas. Drive this from your Stripe webhook.

Usage & quota enforcement

Metered primitives (seo, aeo, email) record one usage event per successful call. Exceeding a quota returns 429 rate_limited. Tenants with no subscription are not limited.

SDK

See the Customer Billing guide and the billing sub-client.