Hardcount open-sources self-hosted AI usage billing tool
Understand this story
Hardcount has released an open-source, self-hosted usage billing tool aimed at AI products: it can price by model and token type, sell prepaid credits, and generate invoices, with billing data stored in the user's own Postgres and actual charges handled by Stripe. The tool currently runs in test mode and does not involve real money movement; however, Stripe will still charge cards and collect its usual card processing fees, plus Stripe Tax fees if used. Before version 1.0.0, minor versions may break the API, and patch versions may also change behavior that users depend on.
AI overview based on source reports · Updated 2 days ago
Coverage timeline
Follow the coverage to explore different perspectives.
- Hacker News AIShow HN: Hardcount – Self-hosted usage billing for AI products
Hardcount is an MIT-licensed, self-hosted usage billing tool for AI products that prices tokens per model and token type, sells prepaid credit, and shows per-customer and per-model margin, with billing data kept in your own Postgres while Stripe charges cards. It is a pre-1.0 project with one maintainer, Stripe-only payments, no SDKs, and no production users yet, and it targets volumes up to about a million usage events a day. A Docker Compose quickstart runs it in test mode with test clocks to preview invoices before real customers are billed.
Activity for this story
- Current comparable activity
- 3
- Peak comparable activity
- 10Nov 3 22:00
- Change in the past 24 hours
- -51%
Trends compare the same fully observed participants, which may cover fewer participants than current activity. Move the pointer or tap the chart to inspect hourly activity; use the left and right arrow keys with a keyboard.