selfhost.directory

The index of self-hostable projects — ranked, categorized and served with live updates.
Own your data and stop giving it to big tech.

Kill Bill logo

Self-host Kill Bill

killbill-0.24.22

Open-source billing and payments you run yourself

ReleaseOpen CoreApache-2.0
Updatedlast month
LanguageJava
Setup difficultyModerate
Stars
5 847
RAM
at least 4 GiB of memory
Port
8080 (Kill Bill API/server)
Docker
killbill/killbill
Install with Docker Compose
Kaui admin UI showing a demo customer account with balance, bill cycle day and next invoice dateKaui invoice after an immediate plan upgrade: new plan charged, credit for the unused old planDaily new subscriptions report from the analytics plugin, shown in Kaui

What is Kill Bill?

Kill Bill is an Apache-2.0 licensed billing and payments platform that teams have run since 2010. The engine models price catalogs and plans, tracks subscriptions through their phases, meters usage, generates invoices each cycle and drives payments through gateway plugins, while also handling credits, tax, dunning, currencies, locales and many tenants on stateless nodes. Operators work with Kaui, an open-source back-office web UI, or with a REST API that has official clients in six languages; per-tenant webhook callbacks push events to external systems, and Java plugins add functionality without touching the core. Self-hosting is straightforward: bring up the server, Kaui and a MariaDB database from one Docker Compose file, deploy WARs onto Tomcat 9 with JDK 11, or follow the Kubernetes deployment guide; MySQL, MariaDB and PostgreSQL are all supported. The Apache-licensed core is offered without assistance guarantees — Aviate, a commercially licensed accelerator from the same team, layers on a catalog editor, coupons, wallets, usage modules and engineer-level support for a fixed monthly fee.

Kill Bill alternatives

Should you self-host Kill Bill?

Kill Bill scores 68/100 on selfhost.directory (how scoring works) and ranks #3 of 13 in Billing. It has 5 847 GitHub stars, +67 in the last 30 days.

It shipped 7 stable releases in the past year. The latest, killbill-0.24.22, came out on 28 September 2026. New versions land roughly every 5 weeks.

Setup is moderate: expect some configuration beyond a single command. An official Docker image is available. It is Apache-2.0-licensed and written mostly in Java.

Its closest alternative on selfhost.directory is Lago (72/100, 10 774 stars). It scores higher overall, so compare the two before you pick. See Kill Bill vs Lago side by side.

Features

  • Admin UI (Kaui)
  • Automatic invoicing
  • Embeddable as a Java library
  • Multi-currency and localization
  • Multi-tenancy
  • Payment gateway integration via plugins
  • Payment retries and dunning
  • Plugin System
  • Proration and credits
  • Recurring, usage and one-time billing
  • Reporting and analytics
  • REST API
  • Role-based Access Control
  • Tax calculation via plugins
  • Webhooks / push notifications

Kill Bill README

Kill Bill - Open-Source Subscription Billing & Payments Platform

Kill Bill, the Open-Source Subscription Billing & Payments Platform, duck logo

Kill Bill is an open source subscription billing and payments platform, in production since 2010. It handles catalogs and pricing, subscriptions, usage metering, invoicing, payments across gateways, credits, tax and dunning. You run it on your own infrastructure and you own your data, so there is no vendor lock-in.

How to install Kill Bill

Install Kill Bill with Docker Compose

Environment variables
KILLBILL_DAO_URL, KILLBILL_DAO_USER, KILLBILL_DAO_PASSWORD, KILLBILL_CATALOG_URI, KAUI_CONFIG_DAO_URL, KAUI_CONFIG_DAO_USER, KAUI_CONFIG_DAO_PASSWORD, KAUI_KILLBILL_URL

Save this file as docker-compose.yml:

services:
  killbill:
    image: killbill/killbill:latest
    ports:
      - "8080:8080"
    environment:
      - KILLBILL_DAO_URL=jdbc:mysql://db:3306/killbill
      - KILLBILL_DAO_USER=root
      - KILLBILL_DAO_PASSWORD=killbill
      - KILLBILL_CATALOG_URI=SpyCarAdvanced.xml
  kaui:
    image: killbill/kaui:latest
    ports:
      - "9090:8080"
    environment:
      - KAUI_CONFIG_DAO_URL=jdbc:mysql://db:3306/kaui
      - KAUI_CONFIG_DAO_USER=root
      - KAUI_CONFIG_DAO_PASSWORD=killbill
      - KAUI_KILLBILL_URL=http://killbill:8080
  db:
    image: killbill/mariadb:0.24
    volumes:
      - db:/var/lib/mysql
    environment:
      - MYSQL_ROOT_PASSWORD=killbill
volumes:
  db:

Then, from the same folder, run: docker compose up

Starts Kill Bill (port 8080), Kaui (port 9090) and a MariaDB database; the first start takes a few minutes.

How to configure Kill Bill

  • KILLBILL_DAO_URLJDBC URL of the Kill Bill database

    values: e.g. jdbc:mysql://db:3306/killbill

  • KILLBILL_DAO_USERDatabase user for Kill Bill
  • KILLBILL_DAO_PASSWORDDatabase password for Kill Bill
  • KILLBILL_CATALOG_URICatalog loaded at startup

    values: e.g. SpyCarAdvanced.xml

  • KAUI_CONFIG_DAO_URLJDBC URL of the Kaui database

    values: e.g. jdbc:mysql://db:3306/kaui

Kill Bill releases & version history

@ Every self-hosted release, weekly

One Monday email with the week's stable releases across the directory.

FAQ

What is a plugin?

Software running on top of the platform that adds a feature or behavior not part of the Kill Bill core.

Can Kill Bill accept cryptocurrency payments from my customers?

Yes, by using a payment plugin for a gateway that supports the desired coins, such as Bitcoin or Ethereum.

Does Kill Bill support coupons and/or discounts?

Via discount plans in the catalog, a PhasePriceOverride when creating a subscription, or a custom coupon plugin built on the EntitlementPluginApi.

Does Kill Bill include catalog functionality?

Yes, an XML catalog with subscription plans, one-off products, product tiers, pricing lists and multiple subscription types; a plugin API allows alternative catalog implementations.

How does Kill Bill support international billing?

The core is internationalized: the catalog handles every currency including cryptocurrencies, and accounts can have their own locale and time zone.

What happens when a payment fails?

The failure is recorded and payment is retried on a per-tenant schedule; if the invoice stays unpaid, configurable overdue (dunning) states can block changes or pause the service.

What types of payment methods does Kill Bill support?

Whatever cards your gateway accepts (plus ACH if the gateway offers it), and external payments such as checks or cash can be recorded via Kaui or the API.

What payment gateways can I use with Kill Bill?

Through plugins, so you are not locked to one provider: open-source plugins cover Stripe, Adyen, Braintree and Hyperswitch, and you can write one for any other gateway.

How does Kill Bill handle payments?

Kill Bill itself is not a gateway; when a payment is due it invokes a payment-gateway plugin and the gateway processes the transaction.

Does Kill Bill handle proration?

Yes. On a mid-period plan change, the unused part of the old plan is credited and the new plan charged for the remainder, per your catalog's billing policies.

Does Kill Bill support recurring billing / usage billing / one-time billing?

All three: recurring subscriptions, usage-based charges (priced in tiers or blocks) and one-off transactions.

Which databases does Kill Bill support?

The team develops against MySQL and regression-tests MariaDB and PostgreSQL; deployments on Percona and Aurora also exist.

Can you run Kill Bill in the cloud?

Yes, in private data centers and public clouds such as AWS and Azure, via Docker, Tomcat or Kubernetes; its stateless nodes scale behind a load balancer.

Is Kill Bill a Software-as-a-Service (SaaS)?

No. It is open-source software you run in your own data center or cloud; only Aviate, the enterprise product, is offered as a hosted sandbox.

More in Billing

Rate this project

Click to rate — no account needed.

0 comments

Posting as guest
Loading comments…