// open source

bxb

Usage-based metering and billing for SaaS. Self-hosted on your infra. Any pricing model. Python/FastAPI.

AGPL-3.0 v0.1
// tech stack

Built on proven infrastructure

Every component chosen for production reliability, async performance, and developer experience.

Language Python 3.12+ Modern async, type hints
Framework FastAPI Async, OpenAPI native
S
ORM SQLAlchemy 2.0 Async support
Main Database PostgreSQL Primary data store
Streamed Events ClickHouse Columnar analytics engine
Validation Pydantic v2 Rust-powered data validation
Migrations Alembic Schema version control
Background Jobs arq Redis-based async workers
Package Manager uv Blazing-fast Python toolchain
// why self-host

Full control over your billing infrastructure

Run bxb on your own servers. No usage limits, no data leaving your network, no surprises.

Data sovereignty

Your billing data stays on your servers. Full control over where data lives, how it's stored, and who can access it.

No vendor lock-in

Open-source AGPL-3.0 license. Fork it, modify it, run it forever — no sunset risk, no forced migrations.

Unlimited usage

No per-event fees, no metering taxes on your metering. Process billions of events without worrying about your billing bill.

Source code access

Audit the code, extend the platform, contribute upstream. Full transparency into how your billing infrastructure works.

// need help?

Don't want to manage it yourself?

We offer managed hosting, enterprise support, custom development, and migration assistance so you can run bxb in production without building the ops team.

EARLY ACCESS

We're onboarding early customers now. Sign up to get notified when managed bxb is available.