Status: built (2026-10-05). Tests: apps/auth-broker/tests/usage.test.ts. The counts a plan is sized by — and the first thing any dashboard of Clerk, Auth0 or WorkOS shows. Passkin counts them and does not yet bill by them: the pricing model (decision D7, ROADMAP.md) is open, and nothing here depends on how it is settled.
What is counted
A person is active in a month (UTC) when, at a project, they sign in or their session is refreshed in it. They are retained when that happens at least one day after they signed up at the project — someone who tried your product once and never came back is active but not retained. (Clerk's "retained MAU" works the same way; D7 leans to retained-user counting.)
Not counted: an impersonation (a member of staff acting as the person, IMPERSONATION.md), a third party's grant (an app or agent acting for the person, OAUTH.md), machine clients, API key verifications (those are counted separately, API-KEYS.md), and people who only visited a page.
A person is a user of a project: someone who signs in to two of your projects is two users, and a workspace's figure is the sum of its projects'. (Passkin ID — the person's own account — is not a product and has no count.)
Reading it
GET /v1/manage/projects/:pid/usage?months=6 → { project_id, months: [{ month: "2026-05", active_users, retained_users }, …] }
GET /v1/manage/workspaces/:tid/usage?months=6 → { workspace_id, months: [ … the sum … ], projects: [{ id, name, environment, months: [ … ] }] }
months is 1–25 (default 6): one row for each, zeros included, this month last. GET /v1/manage/projects/:pid carries stats.active_users_this_month. The dashboard's project Overview shows the table. Only the workspace's own people (any role) can read them.
How it is kept
project_monthly_users (migration 0042): one row for a person and month — project, month, user id, when first active, whether retained. No address, no content. It is written the first time a person is active in a month (once per person and month per server process: a refresh every quarter hour is not a write every quarter hour) and updated if they become retained later in the month. Kept 25 months, then deleted by the scheduled maintenance, and with the project. Listed in DATA-INVENTORY.md.
Not built
Billing (plans, limits that stop sign-ins, invoices, a payment processor — decision D7); a monthly total across a workspace that counts a person once (they are different users of different projects by design); daily or weekly active users; a count by country or by sign-in method; alerts when a project nears a plan limit; exact counts across servers — each server notes a person once a month, so the table is exact (the primary key makes a second note harmless) and only the retained flag can lag by one refresh on another server.