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
nuxt.config.ts
Nuxt auto-imports from server/utils/, so the client is available in all server routes.
server/utils/commet.ts
3

Subscribe

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

Check Access

server/api/billing/access/[customerId].get.ts
5

Track Usage

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

Customer Portal

server/api/billing/portal.get.ts