How to Set Up BTCPay Server for Self-Hosted Crypto Payments
BTCPay Server is a free, open-source payment processor you host yourself (or via a third-party host), letting you accept Bitcoin and Lightning payments with zero processing fees and no custodial third party ever touching your funds. Setup requires either running your own server/node or using a trusted third-party BTCPay host if you want to skip the infrastructure work.
Affiliate Disclosure: This article may contain affiliate links. This is not financial advice.
BTCPay Server is the leading self-hosted alternative to custodial crypto payment processors — no monthly fee, no percentage cut of transactions, and no third party ever holding your funds. The tradeoff is real setup effort compared to signing up for a hosted processor.
What BTCPay Server Actually Does
BTCPay Server generates Bitcoin and Lightning payment invoices, tracks whether they’ve been paid, and can plug into common e-commerce platforms (Shopify, WooCommerce) or your own custom checkout — functionally similar to a hosted processor, but running on infrastructure you control rather than a third party’s.
Two Ways to Get Started
| Approach | Effort | Custody |
|---|---|---|
| Self-host on your own server/VPS | Higher — requires technical setup and maintenance | Fully non-custodial |
| Third-party BTCPay host | Lower — sign up and configure | Depends on host’s node key setup — verify before trusting |
Setup Steps (Self-Hosted)
- Provision a server or VPS meeting BTCPay Server’s minimum requirements, or use a dedicated device set up for running Bitcoin/Lightning infrastructure
- Install BTCPay Server using its official deployment script, which also handles setting up a connected Bitcoin full node
- Connect or create a Lightning node if you want to accept Lightning payments alongside on-chain Bitcoin
- Create a store within BTCPay Server and generate your API keys/checkout integration
- Connect it to your e-commerce platform (via plugin) or embed the generated checkout links/widgets on your own site
- Test with a small transaction before relying on it for real sales
If you already run a Bitcoin Lightning node, BTCPay Server can connect to your existing node rather than requiring a separate one — see our guide on how to set up a Bitcoin Lightning node if you haven’t done this step yet.
Prefer a Managed Option Instead?
Billtoolbox Lightning Server offers a managed node so you can accept Lightning payments without running or maintaining your own infrastructure.
Is Self-Hosting Worth It?
Self-hosting makes the most sense for businesses processing enough crypto volume that a processor’s percentage fee adds up meaningfully, or that specifically prioritize non-custodial control over convenience. For lower volume or a first foray into crypto payments, a hosted processor is usually the more practical starting point — see our best crypto payment processors comparison and our broader guide on accepting Lightning payments on your website for that comparison in more detail.
Frequently Asked Questions
Is BTCPay Server really free?
The software itself is free and open-source with no transaction fees taken by BTCPay. You’ll still pay for whatever server/hosting infrastructure you run it on, and standard Bitcoin network fees still apply to on-chain transactions.
Do I need technical skills to set up BTCPay Server?
Self-hosting requires comfort with basic server administration, though the official deployment scripts simplify much of the process. Using a reputable third-party BTCPay host removes most of the technical burden at the cost of some independence.
Does BTCPay Server support Lightning payments?
Yes — BTCPay Server can connect to a Lightning node (your own or a connected one) to accept fast, low-fee Lightning payments alongside standard on-chain Bitcoin transactions.
Final Thoughts
BTCPay Server is the strongest option available for businesses that want to accept crypto payments without paying processor fees or trusting a custodial third party — the cost is real setup and maintenance effort. For most businesses just starting to accept crypto, a hosted processor remains the faster, lower-friction path; BTCPay is where you graduate to once volume or control genuinely justifies it.
Accept Bitcoin Lightning Payments with Billtoolbox
A managed Lightning node so you can accept fast, low-fee payments without running your own infrastructure.
Disclaimer: This article is for informational purposes only and does not constitute financial or technical advice. Running payment infrastructure carries security and operational responsibility — consult a qualified professional before deploying self-hosted payment systems for a live business.

