Hardcount is an MIT, self-hosted usage billing server that prices AI tokens per model and shows margin per customer
Shown on HN Nov 3, the Go server takes usage events (or LiteLLM's) priced by model and token type, sells prepaid credit, makes monthly invoices that Stripe charges with no Stripe Billing fee, and keeps data in your own Postgres, with test clocks to preview a month's invoice. It's pre-1.0 with one maintainer, Stripe and cards only, and no production users yet (Show HN).