Skip to main content
Install the Commet Skill so your coding agent can integrate the current SDK and verify its work against the live API contract.
1

Install

2

Configure

.env
src/lib/server/commet.ts
3

Subscribe

customers.create is idempotent — if a customer with the same id already exists, it returns the existing record.
src/routes/api/billing/subscribe/+server.ts
4

Check Access

src/routes/api/billing/access/[customerId]/+server.ts
5

Track Usage

src/routes/api/billing/usage/+server.ts
Usage is aggregated and billed at end of period.
6

Customer Portal

src/routes/api/billing/portal/+server.ts