Self-hosted app·Finance, billing and payments
Kill Bill hosting on a Swiss Cloud VPS.
Kill Bill hosting in the Swiss Alps: Kill Bill, Kaui and MariaDB under Docker on a Cloud VPS, with RAM sizing, a pinned compose file, costs and FADP notes.
- Java
- MariaDB
- Docker
ALP1·Swiss Alps
In stockRecommended for this use case
- 1 Gbps port10 TB of transfer a monthIncluded
- Debian 13preinstalled with the orderIncluded
- DDoS protection, 1 IPv4VNC console and full rootIncluded
Optional: daily backups +20% · extra IPv4 $2 · priority support $10
Pay yearly: $62.99 a year, about 25% less
- No KYC
- Crypto only
- Swiss jurisdiction
ALP1 · Swiss Alps · Our own hardware, under Swiss law, paid in crypto
- 2 vCPU, 2 GB RAM
- 80 GB NVMe local storage
- 10 TB transfer on a 1 Gbps port
- DDoS protection included
- Swiss jurisdiction, outside the EU
01/06
Short answer.
Yes. Kill Bill runs on our Cloud VPS in ALP1, in the Swiss Alps, as three Docker containers on Debian 13: the Kill Bill server, the Kaui admin console and a MariaDB database. The cheapest way in is VPS Starter at $6.99 a month (2 vCPU, 2 GB RAM, 80 GB NVMe), which you can deploy with Debian 13 here. Memory is the number that decides everything else. Kill Bill's own documentation asks for at least 4 GiB for the Docker stack and Starter has half of that, so we treat Starter as a sandbox for catalogue design and integration work, and put production on Standard (4 vCPU, 4 GB, $12.99) or Pro (8 GB, $22.99).
02/06
What Kill Bill is, and who should run it.
Kill Bill is an open-source subscription billing and payments platform, written in Java and published under the Apache 2.0 licence. Martin Westhead, Pierre-Alexandre Meyer and Stéphane Brossier started it at Ning in 2010. It handles the parts of billing that are tedious to get right: an XML product catalogue with plans, phases and price lists, the subscription lifecycle with trials, plan changes and proration, invoice generation, payment retries and overdue (dunning) states. It does not move money itself. Payments go through gateway plugins (open-source ones exist for Stripe, Adyen, Braintree and Hyperswitch), taxes come from tax plugins, and everything is exposed through a REST API. Kaui is the browser console your finance or support staff use on top of that API.
The stable line is 0.24.x. On 4 November 2026 the newest Kill Bill release on GitHub is 0.24.20, published on 7 August 2026, and the newest Kaui is 4.0.25, published on 19 August 2026. The open-source edition is free and comes without vendor support or an SLA; the core team sells Aviate, a commercial layer with metering, prepaid wallets, coupons and direct support, at 9,999 USD a month billed annually. If you self-host Kill Bill, the escalation path is you and the community mailing list.
Who should run it: a team with at least one person comfortable operating a Java service, whose pricing has outgrown a SaaS billing tool or who does not want customer and revenue data sitting in a vendor's database. A Swiss-specific catch: the open-source core does not calculate VAT. To put Swiss VAT on an invoice you need a tax plugin (AvaTax, Vertex or Kintsugi) or an invoice plugin you write yourself.
Our servers are in Switzerland and answer to Swiss law. We act only on orders from competent Swiss authorities, and a request from abroad has to pass through one of them first.
03/06
Requirements and sizing.
| Container | What runs inside | Port | Notes |
|---|---|---|---|
killbill/killbill | Kill Bill on Tomcat, JDK 11 | 8080 | Billing engine, REST API, event bus and notification queue |
killbill/kaui | Kaui, a Rails application packaged as a Java web app | 8080 in the container, 9090 on the host | Only needed while someone uses the console |
killbill/mariadb:0.24 | MariaDB with the Kill Bill and Kaui schemas | 3306, internal only | Loads the schemas only when its volume is empty |
| Plan | vCPU / RAM / NVMe | Transfer | Price | Our verdict for Kill Bill |
|---|---|---|---|---|
| VPS Starter | 2 / 2 GB / 80 GB | 10 TB | $6.99/mo | Sandbox: catalogue design, API integration, plugin tests. Start Kaui only when you need it. |
| VPS Standard | 4 / 4 GB / 160 GB | 15 TB | $12.99/mo | Upstream's documented minimum for the full stack. Small production with one payment plugin. |
| VPS Pro | 6 / 8 GB / 320 GB | 20 TB | $22.99/mo | Production with the Analytics plugin or several tenants, with room for heaps to grow. |
Two of the three containers are JVMs, and a JVM's resident memory is its heap plus metaspace, thread stacks and code cache, so it always sits above whatever -Xmx says. MariaDB wants its buffer pool on top of that. On Starter, add a swap file as protection against the OOM killer rather than as capacity: a garbage collector walking a heap that has been paged out stalls the whole server, and a billing engine that stalls during an invoice run is late on every account at once. Before you tune anything, check which heap flags the images actually start with (docker compose exec killbill ps -ef | grep java).
CPU matters in one place people do not expect. Kill Bill hashes API secrets and user passwords with a deliberately high Shiro iteration count, and on two vCPUs that cost is visible on authenticated calls. Upstream lets you lower it (KILLBILL_SECURITY_SHIRO_NB_HASH_ITERATIONS), but changing it later means re-hashing every tenant secret and user password by hand, so decide before you create tenants, and decide from a measurement. Disk is rarely the constraint: the Kaui image alone is about 500 MB, and the database grows with invoices, payments and their history tables.
Be clear about what a single VPS is. Upstream's production advice is at least two Kill Bill instances behind a load balancer and a replicated database. One VPS is a single point of failure. Kill Bill stores its pending notifications in the database, so a stopped server runs late rather than losing work, which is acceptable for many small businesses and not for some. Kill Bill nodes are stateless, so the next step is a second VPS and a separate database host, not a bigger single box. When the database itself needs more memory than a VPS offers, our dedicated servers start at Rigi with 32 GB for $64.99 a month.
04/06
How to deploy it with us.
Order VPS Starter with Debian 13 from the deploy link, or pick Standard or Pro on the Cloud VPS page for production. Signing up is no-KYC: an email address is enough.
Prepare the host before Docker touches it. Upstream requires servers and databases to run in UTC with NTP working, so check timedatectl; customer-facing dates are handled per account, which means a Basel customer can carry the Europe/Zurich time zone while the server stays on UTC. Open only SSH and 443 inbound. Docker publishes container ports through its own iptables rules, which bypass ufw, and that is why the compose file below binds every port to 127.0.0.1. Upstream's advice to check that the kernel entropy counter exceeds 3,000 predates the random-number rework in Linux 5.18; on Debian 13's kernel the counter is capped far below that and /dev/random no longer blocks once seeded, so do not install haveged to chase a number. Then install Docker Engine with the compose plugin, from Docker's apt repository or Debian's docker.io package.
Create three files in one directory. Upstream connects to the database as root; we keep that so the schemas load as the image expects, and suggest a dedicated database user once the stack is up.
.env:
DB_ROOT_PASSWORD=<long random string>shiro.ini replaces the default admin/password login, which upstream tells you not to keep in production. Kaui authenticates against Kill Bill, so changing it here is enough:
[users]
admin = <another long random string>, root
[roles]
root = *:*compose.yaml:
services:
db:
image: killbill/mariadb:0.24
restart: unless-stopped
environment:
- MYSQL_ROOT_PASSWORD=${DB_ROOT_PASSWORD}
volumes:
- db:/var/lib/mysql
killbill:
image: killbill/killbill:0.24.20 # never :latest
restart: unless-stopped
depends_on: [db]
ports:
- "127.0.0.1:8080:8080"
environment:
- KILLBILL_DAO_URL=jdbc:mysql://db:3306/killbill
- KILLBILL_DAO_USER=root
- KILLBILL_DAO_PASSWORD=${DB_ROOT_PASSWORD}
- KILLBILL_SECURITY_SHIRO_RESOURCE_PATH=file:/var/lib/killbill/shiro.ini
volumes:
- ./shiro.ini:/var/lib/killbill/shiro.ini:ro
kaui:
image: killbill/kaui:4.0.25
restart: unless-stopped
depends_on: [killbill]
ports:
- "127.0.0.1:9090:8080"
environment:
- KAUI_CONFIG_DAO_URL=jdbc:mysql://db:3306/kaui
- KAUI_CONFIG_DAO_USER=root
- KAUI_CONFIG_DAO_PASSWORD=${DB_ROOT_PASSWORD}
- KAUI_KILLBILL_URL=http://killbill:8080
volumes:
db:For a sandbox, adding KILLBILL_CATALOG_URI=SpyCarAdvanced.xml to the Kill Bill environment loads upstream's demo catalogue. Start the stack, wait for Tomcat's "Server startup" line (upstream says a couple of minutes), then create your first tenant:
docker compose up -d
docker compose logs -f killbill
curl -u 'admin:<shiro password>' \
-H 'Content-Type: application/json' \
-H 'X-Killbill-CreatedBy: ops' \
-d '{"apiKey":"<tenant key>","apiSecret":"<tenant secret>"}' \
http://127.0.0.1:8080/1.0/kb/tenantsKaui never needs a public address. Reach it through an SSH tunnel (ssh -N -L 9090:127.0.0.1:9090 you@<vps-ip>), open http://127.0.0.1:9090, log in as admin with the shiro password and register the tenant; Kaui finds a tenant created through the API and simply syncs it. Kill Bill is a backend and upstream says so plainly. The only thing the internet should reach is your gateway's webhook, through a reverse proxy that exposes one path and returns 404 for everything else. A Caddy version of upstream's nginx example, for Adyen:
billing.example.com {
handle /notifications/killbill-adyen {
rewrite * /1.0/kb/paymentGateways/notification/killbill-adyen
reverse_proxy 127.0.0.1:8080 {
header_up Authorization "Basic <base64 of a low-privilege user>"
header_up X-Killbill-ApiKey "<tenant key>"
header_up X-Killbill-ApiSecret "<tenant secret>"
header_up X-Killbill-CreatedBy "adyen"
}
}
handle {
respond 404
}
}Back up with a logical dump, not with disk snapshots alone; a snapshot of a running database volume is crash-consistent at best. A nightly mariadb-dump (mysqldump on older images) streamed into restic and stored in an S3-compatible object storage bucket is enough for most installations:
set -a; . ./.env; set +a
docker compose exec -T db mariadb-dump -uroot -p"$DB_ROOT_PASSWORD" \
--single-transaction --databases killbill kaui \
| restic -r s3:https://<endpoint>/<bucket> backup --stdin --stdin-filename killbill.sqlUpgrades deserve the same care as the first install. The MariaDB image loads the schema only into an empty volume, so migrations in later releases are yours to run; 0.24.16, for instance, shipped a list of indexes to create by hand, and 0.24.18 started parking accounts on any invoice-run exception by default (org.killbill.invoice.parkAccountsOnAllExceptions switches it off). Kaui and Kill Bill versions also have to agree: a Kaui 4.0.10 and Kill Bill 0.24.16 pair produced a login redirect loop that rolling Kill Bill back to 0.24.15 cured. Dump first, upgrade one container at a time, then check /1.0/healthcheck. In daily operation, watch two tables: bus_events should be close to empty, and notifications should never hold available entries whose effective date has passed. Either symptom means invoices are running late.
05/06
Cost.
| Item | Per month |
|---|---|
| VPS Starter (2 vCPU, 2 GB, 80 GB NVMe, 10 TB transfer, 1 Gbps) | $6.99 |
| VPS Standard (4 vCPU, 4 GB, 160 GB NVMe, 15 TB transfer, 1 Gbps) | $12.99 |
| Daily VPS backups (+20 % of the plan) | $1.40 on Starter, $2.60 on Standard (theoretical) |
| Object storage, 250 GB bucket for dumps | $1.99 |
| Example: Standard + daily backups + 250 GB bucket | $17.58 (theoretical) |
| Kill Bill and Kaui licence | $0 (Apache 2.0) |
Yearly billing takes roughly 25 % off the plan price, which puts Standard at $116.99 a year. Each VPS includes the monthly transfer shown; VPS traffic is metered against that allowance, not unmetered. An extra IPv4 costs $2 a month and priority support $10. Payment is in crypto only (Monero, Bitcoin, Tether (USDT), Ethereum, Litecoin and other coins), with balances in US dollars. Top-ups run from $25 to $5,000 and earn a bonus of 5 % from $50, 10 % from $100, 15 % from $250 and 20 % from $500; as a theoretical example, a $100 top-up becomes $110, about six months of the Standard setup above. The unused paid part of a top-up is refundable within 14 days. Every plan is on the pricing page.
06/06
Limits, obligations and what Swiss hosting changes.
Card data should never reach this server. Kill Bill's own guidance is to tokenise cards at the gateway (client-side tokenisation or a hosted payment page), keep only the token, and never store security codes; most plugins can store raw card numbers, and that path is for testing. PCI DSS certification of your setup is your responsibility, as upstream states. Upstream also recommends keeping personal data out of Kill Bill and linking each account to your CRM through its external key. On a single VPS, that advice is worth following.
The billing data you do keep is personal data under the revised Swiss Federal Act on Data Protection, in force since 1 September 2023, and you are responsible for it. The European Commission confirmed on 15 January 2024 that Switzerland still offers an adequate level of protection, so an EU business can bill EU customers from ALP1 without additional transfer safeguards. Your gateway is a separate question: if it is a US company, payment data goes to the United States whatever server Kill Bill runs on. Since 15 September 2024 Switzerland recognises US companies certified under the Swiss-U.S. Data Privacy Framework as adequate, so check your gateway's certification. As of 31 October 2026 the US Department of Justice lists CLOUD Act executive agreements only with the United Kingdom and Australia, none with Switzerland. That removes one shortcut; it does not put data beyond every foreign legal process. The servers are operated by Hosta AG, a Swiss société anonyme (IDE CHE-107.875.655) in Riehen, and the offshore hosting page sets out what Swiss jurisdiction covers and what it does not.
Kill Bill can bill in crypto through a plugin for a gateway that supports the coins you want. If what you sell is a crypto-asset service, note that since 26 February 2026 Swiss sanctions prohibit providing such services to Russian nationals, to people residing in Russia and to entities established in Russia, subject to the exceptions in the ordinance. Screening your customers is your obligation, not ours.
Outbound port 25 is open on every VPS, so Kill Bill's email notification plugin can deliver invoices and payment reminders directly. That mail has to be mail your customers expect, and SPF, DKIM and DMARC are yours to set up (our answer on port 25 covers them). A DMCA notice has no direct legal effect in Switzerland: we forward complete complaints to you, and you remove the content or justify it. We act on a decision of a competent Swiss authority, or where content is manifestly unlawful, in line with the Swico Code of Conduct Hosting 2025.
Catalogue·Options
Every configuration, every option, every price.
Six cloud VPS plans on AMD EPYC with local NVMe. Transfer is included on every plan, from 10 TB to 100 TB a month.
| Plan | vCPU | Memory | NVMe | Transfer | Port | Price | Deploy |
|---|---|---|---|---|---|---|---|
| StarterRecommendedStaging, dev | 2 | 2 GB | 80 GB | 10 TB / month | 1 Gbps | $6.99/mo | Deploy Starter |
| StandardSmall apps | 4 | 4 GB | 160 GB | 15 TB / month | 1 Gbps | $12.99/mo | Deploy Standard |
| ProProduction | 6 | 8 GB | 320 GB | 20 TB / month | 1 Gbps | $22.99/mo | Deploy Pro |
| PowerHeavy workloads | 12 | 16 GB | 640 GB | 40 TB / month | 2 Gbps | $42.99/mo | Deploy Power |
| UltraDatabases | 16 | 32 GB | 1000 GB | 60 TB / month | 2 Gbps | $65.99/mo | Deploy Ultra |
| SummitDense hosts | 32 | 64 GB | 2000 GB | 100 TB / month | 5 Gbps | $119.99/mo | Deploy Summit |
Every plan runs on AMD EPYC with local NVMe. Yearly billing costs about 25% less.
Every plan
- AMD EPYCon every host
- Local NVMenot network storage
- DDoS protectionalways on
- 1 IPv4 addressmore at $2 each
- VNC consoleand full root access
FAQ
Questions people ask first.
Short answers about running this in ALP1. If yours is not here, open a ticket from your panel.
Can Kill Bill run on 2 GB of RAM?
For a sandbox, yes, with swap as a safety net and Kaui started only when someone needs it. It is below the 4 GiB that Kill Bill's documentation sets for the Docker stack, so do not run production on it. Standard is the smallest plan that meets the documented minimum.
Is it safe to use the latest image tags?
No. In Kill Bill's Docker setup, killbill/killbill:latest and killbill/kaui:latest are base images that download and install the newest application release when the container starts, so a restart can silently change your billing engine. Pin exact tags, as in the compose file above, and upgrade deliberately.
Should I use PostgreSQL instead of MariaDB?
Kill Bill supports PostgreSQL and upstream regression-tests against it, but you have to load a PostgreSQL compatibility schema before the main DDL and point Kaui at the PostgreSQL adapter. The official Docker path is built around MariaDB, which loads both schemas on first start. Unless your team already operates PostgreSQL well, stay on MariaDB.
Can my customers pay in crypto through Kill Bill?
Kill Bill's catalogue handles crypto currencies, and payments need a plugin for a gateway that supports the coins you accept. That is separate from how you pay us, which is crypto only. The sanctions point in the section above applies if you sell crypto-asset services.
When do I outgrow a single VPS?
When an hour without invoice runs is no longer acceptable, or when the database needs more memory than the VPS range offers. Because Kill Bill nodes are stateless, the usual path is a second VPS for a second node behind a proxy and a separate database host, rather than one larger machine.
Who do I contact if the deployment fails?
For anything about the server, the network or billing with us, open a support ticket from the client panel. For Kill Bill itself, the open-source edition has no vendor support, and upstream directs questions to its Google Group mailing list.
Sources
Every fact on this page, with its source
Consulted 4 Nov 2026 unless noted.
Swiss law and authorities
- Revised FADP in force since 1 September 2023Fedlex, RS 235.1
- Swiss-U.S. Data Privacy Framework recognised since 15 September 2024Federal Office of Justice
- Crypto-asset services prohibited for Russian nationals, residents and entities since 26 February 2026 (SR 946.231.176.72, art. 20(2))SECO press release, 25 February 2026
EU and other countries
- EU adequacy of Switzerland confirmed on 15 January 2024European Commission, adequacy decisions
- CLOUD Act executive agreements limited to the UK and Australia (verified 31 October 2026)US Department of Justice · verified 31 Oct 2026
Industry, providers and software
- Kill Bill releases: 0.24.20 published 7 August 2026, manual index migrations in 0.24.16, account parking default in 0.24.18github.com/killbill/killbill/releases
- Kaui releases: 4.0.25 published 19 August 2026github.com
- Behaviour of the latest image tagskillbill-cloud Docker README
- Kaui 4.0.10 and Kill Bill 0.24.16 redirect loopkillbill-cloud issue #320
Other references
- Docker installation, three-container layout, ports, 4 GiB memory, default credentials, JDK 11Kill Bill Getting Started
- Backend behind a reverse proxy, two instances, UTC and NTP, entropy, Shiro iterations, queue monitoring, PII and PAN guidance, healthcheckKill Bill deployment guide
- shiro.ini, KILLBILL_SECURITY_SHIRO_RESOURCE_PATH, changing the default admin, Kaui tenant syncUsers, Roles and Permissions
- History, plugins, taxes, PCI responsibility, crypto payments, stateless nodes, PostgreSQL support, environment requirementsKill Bill FAQ
- Open-source edition without support or SLA; Aviate at 9,999 USD a month billed annuallyKill Bill pricing
- Kaui image sizeDocker Hub, killbill/kaui
ALP1·Swiss Alps
Your server in the Alps, ready when you are.
Cloud VPS start at $6.99 a month and are usually set up within minutes of your order.
