Self-hosted app·Lightning, ecash and crypto payments
Self-hosting LNbits on a Swiss VPS.
LNbits VPS in the Swiss Alps from $6.99/mo: sizing by funding source, Docker Compose with Phoenixd and Caddy, real costs, and the custody rules you inherit.
- Lightning
- Docker
- Caddy
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/08
Short answer.
Yes. LNbits runs comfortably on our VPS Starter (2 vCPU, 2 GB RAM, 80 GB NVMe, 10 TB transfer, $6.99 a month) in ALP1, provided the Lightning backend behind it is a hosted service or a light daemon such as Phoenixd. LNbits on top of your own LND or Core Lightning with a Bitcoin node underneath needs a larger VPS or a dedicated server; the table below says which.
The decision that matters most is not the server. LNbits holds no bitcoin itself: it is a ledger and a set of payment tools sitting on a funding source, and that funding source decides who controls the keys and, once other people keep balances on your instance, which financial rules you answer to. Choose the backend first and the plan follows.
02/08
What LNbits is and who runs it.
LNbits is a free, MIT-licensed Lightning wallet and accounts system written in Python. One instance holds many users, each with any number of wallets and API keys. Balances are rows in LNbits' database; the sats sit in the funding source, one of more than twenty supported backends: LND, Core Lightning, Eclair, Phoenixd, Breez SDK, Spark, Nostr Wallet Connect, or custodial APIs such as Alby, Blink and Strike. The current release is v1.6.2 (18 September 2026), a PostgreSQL backup hotfix on top of v1.6.0, which brought sandboxed WASM extensions and Lightning Addresses on core wallets.
Merchants come for the extensions. TPoS turns a tablet into a PIN-protected till that prices in CHF and converts to sats at the counter, SatsPay builds checkout pages for a web shop, and Split Payments divides each incoming payment between partners. Communities use the multi-user side: a Verein handing out wallets to its members, or an event selling drinks against NFC Bolt Cards with per-day limits. The project's support channels are its Telegram group and community forum.

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/08
Requirements and sizing.
LNbits itself is modest. Its documentation gives a Raspberry Pi 4 with 2 GB of RAM as a workable host, roughly the profile of VPS Starter. The official Docker image listens on port 5000 and keeps its state in /app/data: the SQLite database by default, uploaded assets, extensions and the super-user file. The project recommends PostgreSQL for production; for one shop with a few terminals SQLite is adequate, for an instance with hundreds of users it is not where to economise.
What moves the sizing is the backend:
| Setup | Plan | Price / month |
|---|---|---|
| LNbits + hosted backend (NWC, Alby, Blink) | VPS Starter — 2 vCPU / 2 GB / 80 GB NVMe | $6.99 |
| LNbits + Phoenixd on the same VPS | VPS Starter | $6.99 |
| LNbits + PostgreSQL + Phoenixd, many users | VPS Standard — 4 vCPU / 4 GB / 160 GB | $12.99 |
| LNbits + LND or CLN + pruned bitcoind | VPS Pro — 6 vCPU / 8 GB / 320 GB | $22.99 |
| LNbits + LND or CLN + full archival bitcoind | Dedicated Rigi — EPYC 4244P, 32 GB, 1 TB NVMe | $64.99 |
An archival Bitcoin node does not fit in 80 GB, and its initial sync on 2 GB of RAM is an exercise in patience, hence the dedicated line; running the node itself is covered in our Lightning node guide. The 10 TB monthly transfer will not be the constraint, since an invoice and its status updates weigh a few kilobytes. From outside, only ports 80 and 443 need to answer; 5000 stays on localhost and Phoenixd's API on 9740 inside the Docker network. Your own LND or CLN adds 9735 for peers.
04/08
How to deploy it with us.
- 01Order VPS Starter with Debian 13: deploy VPS Starter. No-KYC: an email address is enough to open the account.
- 02Point a DNS A record, say
pay.example.com, at the VPS's IPv4. LNURL, Lightning Addresses and Phoenixd-backed invoices need LNbits at a public HTTPS address. - 03Install Docker Engine and the Compose plugin from Docker's Debian repository, and Caddy from Debian's own (
apt install caddy). - 04In
/opt/lnbits, fetch the example configuration withwget https://raw.githubusercontent.com/lnbits/lnbits/main/.env.example -O .env, then writecompose.yaml:
services:
phoenixd:
image: acinq/phoenixd:latest # pin the tag you tested
restart: unless-stopped
environment:
- HOME=/phoenix
volumes:
- ./phoenixd:/phoenix/.phoenix
lnbits:
image: lnbits/lnbits:latest # pin the tag you tested
restart: unless-stopped
depends_on:
- phoenixd
ports:
- "127.0.0.1:5000:5000"
environment:
- HOST=0.0.0.0
- PORT=5000
volumes:
- ./data:/app/data
- ./.env:/app/.envThe 127.0.0.1: prefix is not decoration. Docker writes its own firewall rules, so a port published as plain 5000:5000 is reachable from the internet even while ufw reports it denied, as Docker's documentation admits. Binding to localhost leaves Caddy as the only way in.
- 05In
.env, setLNBITS_BASEURL=https://pay.example.com/, a long randomAUTH_SECRET_KEY(otherwise it is derived from the super user) and aFIRST_INSTALL_TOKEN. Without the token, whoever reaches the first-install page before you owns the instance. The shippedFORWARDED_ALLOW_IPS="*"is acceptable here only because port 5000 answers on localhost alone. - 06Put this in
/etc/caddy/Caddyfileand reload Caddy, which obtains the certificate itself:
pay.example.com {
reverse_proxy 127.0.0.1:5000
}- 07Start Phoenixd first (
docker compose up -d phoenixd), copyseed.datandphoenix.confout of./phoenixd/and store them offline before a single sat arrives. Then start LNbits, enter the token, create the super user, and under Admin → Funding choose PhoenixdWallet with endpointhttp://phoenixd:9740/and thehttp-passwordfromphoenix.conf.
Before anyone else logs in, remove user-id-only from the allowed authentication methods unless you hand out wallet links on purpose; with it enabled, a wallet URL is its own password. A shop instance should also have new account creation switched off in the Admin UI, with LNBITS_MAX_USERS in .env as a hard ceiling. Updates are docker compose pull and docker compose up -d, after reading the release notes; 1.6.0 changed how extensions are packaged.
The daily VPS backup option (+20 %) captures the whole disk. Keep a second copy off the machine: restic with its S3 backend pointed at a bucket from our object storage, $1.99 a month for 250 GB, holding ./data and the Phoenixd seed. Do not mount the bucket underneath the SQLite file.
05/08
What Phoenixd costs before the first sale.
Phoenixd removes channel management and charges for it. Liquidity is bought from ACINQ in chunks of 2 million sats by default, at 1 % plus the on-chain mining fee, paid upfront; in ACINQ's own example, a 10,000-sat mining fee makes the first purchase cost 30,000 sats. Smaller payments are held as fee credit until they cover it. For a shop with steady sales that is a fair price for not running a node. For a tip page that may take months to see 30,000 sats, an NWC wallet is cheaper, and ACINQ as your only peer costs some privacy against a node of your own.
06/08
Cost.
VPS Starter is $6.99 a month: 2 vCPU, 2 GB RAM, 80 GB NVMe, 10 TB of transfer on a 1 Gbps port, an IPv4 address, full root and outbound port 25 open. Yearly billing takes about 25 % off, roughly $5.25 a month or $62.99 a year. Daily backups bring the month to about $8.39 (theoretical); an extra IPv4 is $2 a month and priority support $10. The rest is on our pricing page.
Payment is in Monero, Bitcoin, Tether (USDT), Ethereum, Litecoin and other coins, with prices and balances in US dollars. Top-ups run from $25 to $5,000, with a bonus of 5 % from $50, 10 % from $100, 15 % from $250 and 20 % from $500, so $100 becomes $110 of credit, about fifteen months of Starter at the monthly rate (theoretical). The unused paid part of a top-up is refundable within 14 days.
The price does not include administration: we do not run LNbits or your Lightning node, and we do not hold your seed, so a lost seed is not something we can restore. A single VPS is also a single point of failure, and while it is down your till cannot issue invoices. A merchant who cannot live with that keeps a phone wallet as a fallback; anyone who would rather not administer a server at all may be better served by the LNbits project's own hosted service.
07/08
Why Switzerland, and why us.
Hetzner's current cloud terms prohibit only applications that mine crypto currencies, but in August 2022 its support said publicly that anything even remotely related, staking and trading included, was excluded, and on 2 November 2022 it cut off more than 1,000 Solana validators in one sweep. A written rule that narrow, enforced that broadly, is a poor foundation for a payment system. On our network mining is allowed, crypto workloads such as LNbits and Lightning nodes are welcome, and we are paid in crypto ourselves.
Hosta AG is a Swiss société anonyme in Riehen, the servers sit in ALP1 in the Swiss Alps, and the revised Federal Act on Data Protection has applied since 1 September 2023. The European Commission confirmed on 15 January 2024 that Switzerland still provides adequate protection, so a European merchant can keep customer records here without additional transfer safeguards. As of 31 October 2026 the United States has CLOUD Act executive agreements only with the United Kingdom and Australia. That is not immunity: a Swiss court order or a mutual legal assistance request still reaches the server, as our offshore hosting page explains.
08/08
Acceptable use and your obligations.
LNbits makes it trivial to give wallets to other people, and that is where the operator's exposure begins, because those users hold no keys. FINMA describes custody wallet providers as holding clients' private keys and thereby providing a payment transaction service, which the Anti-Money Laundering Act governs when done professionally; in practice that means joining a self-regulatory organisation or obtaining FINMA authorisation. A closed instance for your own shop is a different case from a public wallet service. We do not make that assessment for you, so take advice before opening sign-ups. Since 26 February 2026, Swiss sanctions also prohibit crypto-asset services to Russian nationals, residents of Russia and entities established there, subject to the ordinance's exceptions; if your instance serves third parties, applying that rule is your job.
Not allowed on our network: fraud, payment pages impersonating another business, laundering, and manifestly unlawful content. A DMCA notice has no direct legal effect in Switzerland. We forward complete complaints to the customer, who must remove the content or justify it, and we act on a decision of a competent Swiss authority or where the 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.
Is the $6.99 Starter plan enough for LNbits?
For LNbits with a hosted backend or Phoenixd, yes; the project itself treats a 2 GB machine as sufficient. It is not enough for a Bitcoin full node: take VPS Pro for a pruned node with LND or CLN, or a dedicated server for an archival one.
Is LNbits custodial?
For the people using your instance, yes: their balances are rows in your database, backed by sats in your funding source. Who holds the actual keys depends on that backend. With Phoenixd or your own node it is you; with Alby, Blink or Strike it is the provider.
What happens to payments if the VPS goes down?
LNbits cannot create invoices and Phoenixd cannot receive while the server is offline, so the sale has to go through another route. Funds already received stay in the channel and are recoverable from the seed, which is why the seed backup comes before the first payment.
Can LNbits send email notifications from the VPS?
Outbound port 25 is open on every VPS, so direct SMTP works. For mail that has to arrive, use an authenticated relay on port 587; a fresh server IP rarely reaches inboxes on its own.
Do you need my identity to host an LNbits instance?
No-KYC: an email address is enough to open an account, and payment is in crypto. Your obligations toward your own users under anti-money-laundering or sanctions law are separate and stay with you.
Sources
Every fact on this page, with its source
Accessed 3 Nov 2026 unless noted.
Swiss law and authorities
- Revised FADP in force since 1 Sep 2023Fedlex RS 235.1
- Swiss sanctions on crypto-asset services to Russian persons since 26 Feb 2026SECO press release, 25 Feb 2026
EU and other countries
- EU adequacy for Switzerland confirmed 15 Jan 2024European Commission: adequacy decisions
- CLOUD Act executive agreements with the UK and Australia only, verified 31 Oct 2026US DOJ: CLOUD Act resources · verified 31 Oct 2026
Industry, providers and software
- LNbits release history, v1.6.2 (18 Sep 2026), v1.6.0 (2 Sep 2026), v1.5.4 user and extension caps (23 Apr 2026)GitHub: lnbits/lnbits releases
- FIRST_INSTALL_TOKEN, AUTH_SECRET_KEY, FORWARDED_ALLOW_IPS, LNBITS_MAX_USERS, default auth methodsLNbits .env.example
- Hetzner's current prohibition on mining applicationshetzner.com
- Hetzner's August 2022 statement on mining, staking and tradingDecrypt, Aug 2022
Other references
- Docker image, port 5000, /app/data volume, PostgreSQL option, update commandsLNbits docs: Docker
- Raspberry Pi 4 with 2 GB RAM as a workable hostLNbits docs: Installation FAQ
- Super-user creation, Admin UI funding setup, PostgreSQL and HTTPS for productionLNbits docs: First Setup
- TPoS, SatsPay, Split Payments, Bolt CardsLNbits docs: Hardware & Merchants FAQ
- Funding sources and their custody modelsLNbits docs: Wallet Backend Comparison
- Phoenixd auto-liquidity: 2M sat default, 1 % + mining fee, fee credit, worked exampleACINQ: phoenixd auto liquidity
- Published Docker ports bypass ufwdocs.docker.com
- Custody wallet providers and the Anti-Money Laundering ActFINMA: Developments in FinTech
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.
