Show HN: Hardcount – Self-hosted usage billing for AI products
Category: infrastructure
Tags: billing, usage-based-pricing, self-hosted, stripe, ai-infrastructure
Score: 7.0/10 (Innovation: 6, Technical: 6, Documentation: 9, Utility: 7)
Hardcount is a self-hosted usage-based billing engine for AI products, handling token-level pricing per model and token type, prepaid credit, Stripe card charging, margin reporting, and test clocks for invoice previews. It targets teams that want billing data on their own Postgres without Stripe Billing fees, positioning itself as a lighter, single-binary alternative to Lago, OpenMeter, and Flexprice.
Target audience: backend devs and founders building AI products, devops managing self-hosted billing
Repository: https://github.com/gethardcount/hardcount · Go · MIT · 6 stars
View on Hacker News