Nodes welcome · NVMe sized for the chain · no KYC. Pay in crypto: BTC, USDT, USDC, ETH, SOL, LTC, XMR
Language: English
Pick a block

Guide · checked 10 November 2026

How to install BTCPay Server on a VPS?

BTCPay Server installs with one Docker script from the btcpayserver-docker repository. You set a few variables, source the script and register the first account.

Last updated: · 8 min read

Quick answer

How to install BTCPay Server on a VPS?

To install BTCPay Server on a VPS, point a domain at the server, open TCP ports 80 and 443, clone btcpayserver-docker, export BTCPAY_HOST and the chain variables, then source btcpay-setup.sh. The docs ask for 2 virtual cores and 4 GB of RAM. Blockgilt sizes Gilt for it: 4 vCPU, 8 GB RAM, 250 GB NVMe, 8 TB traffic, $12.61 a month.

In brief
  • The official install is a Docker script from btcpayserver-docker, sourced as root.
  • The docs ask for 2 vCPU, 4 GB of RAM and 50 GB of SSD for a pruned Bitcoin-only install.
  • Ports 80 and 443 must be open and a domain must point to the VPS.
  • opt-save-storage-xs keeps about 25 GB of blocks; pruning excludes txindex, ElectrumX and mempool.
  • Gilt costs $12.61 a month on 12 months; Ingot costs $19.25 with Monero.
  • Update with btcpay-update.sh and back up with btcpay-backup.sh.

What does BTCPay Server need on a VPS?

BTCPay Server requirements from its documentation, with the Blockgilt plan that meets them
SetupDocumented figureBlockgilt plan
Bitcoin only, pruned (opt-save-storage-xs)2 vCPU, 4 GB RAM, 50 GB SSD minimumGilt: 4 vCPU, 8 GB RAM, 250 GB NVMe, 8 TB traffic, $12.61 a month
Pruned Bitcoin plus Lightning80 GB (BTCPay figure)Gilt, $12.61 a month
Bitcoin and Moneroat least 250 GB of SSD in totalIngot: 4 vCPU, 16 GB RAM, 500 GB NVMe, 12 TB traffic, $19.25 a month
Unpruned Bitcoin with the bundled mempool0.9 TB and moreBullion, $72.87 a month

Prices checked on

What are the steps to install BTCPay Server on a VPS?

  1. Order a plan and log in as root

    Choose Gilt for a pruned Bitcoin node with Lightning, log in over SSH and switch to root with sudo su -.

  2. Point a domain at the server

    Create a DNS record for the host name, for example btcpay.example.com, that points to the IPv4 address of the VPS. The automatic HTTPS needs it.

  3. Open ports 80 and 443

    The bundled automatic HTTPS needs incoming TCP ports 80 and 443 open to the internet.

  4. Clone btcpayserver-docker

    Make a BTCPayServer directory and clone the repository inside it.

  5. Export the variables

    Set BTCPAY_HOST, NBITCOIN_NETWORK, BTCPAYGEN_CRYPTO1, BTCPAYGEN_LIGHTNING, BTCPAYGEN_REVERSEPROXY and a pruning fragment.

  6. Source btcpay-setup.sh

    Run . ./btcpay-setup.sh -i. The script must be sourced, because running it in a child shell loses the environment it sets up.

  7. Check HTTPS, then register the first account

    Open the site in a browser. The first registered account becomes the administrator, so create it at once.

  8. Wait for the sync, then take a backup

    The site can open before Bitcoin Core and NBXplorer finish syncing. Check progress before you accept payments, then run the backup script.

Which Blockgilt plan fits?

Gilt runs BTCPay Server with a pruned Bitcoin node and Lightning; Ingot has the disk for Monero as well.

Term

Gilt

4 vCPU · 8 GB RAM · 250 GB NVMe

$25.22

3 months $75.666 months $121.05 (−20%)1 year $151.32 (−50%)

  • 4 vCPU, 8 GB RAM, 250 GB NVMe
  • BTCPay Server with Lightning, pruned Bitcoin and Monero
  • 8 TB traffic at 1 Gbit/s, 1 IPv4 + IPv6 /64
  • $12.61 a month on the 12-month term ($151.32 a year)
  • HostBrr Value 32GB: $16.82 a month for 8 vCPU / 32 GB / 320 GB NVMe (10 November 2026)
Order this VPS

Ingot

4 vCPU · 16 GB RAM · 500 GB NVMe

$38.50

3 months $115.506 months $184.80 (−20%)1 year $231 (−50%)

  • 4 vCPU, 16 GB RAM, 500 GB NVMe
  • A full Monero node, or several bots side by side
  • 12 TB traffic at 1 Gbit/s, 1 IPv4 + IPv6 /64
  • $19.25 a month on the 12-month term ($231.00 a year)
  • ServaRica V2 KVM Slim Slice 4: $25.67 a month for 4 vCPU / 16 GB / 500 GB NVMe (10 November 2026)
Order this VPS

In every plan: NVMe sized for the chain · Inbound P2P ports open · Nodes welcome, mining banned · IPv4 + IPv6 /64 · Root over SSH · No KYC

Which VPS plan runs BTCPay Server?

Gilt runs BTCPay Server with a pruned Bitcoin node and Lightning, and Ingot adds the room for Monero.

The BTCPay server specifications page asks for 2 virtual cores, 4 GB of RAM and 50 GB of SSD as a bare minimum for a pruned Bitcoin-only install, and its storage formula adds 15 GB of chainstate to 10 GB of base system. Gilt’s 4 vCPU, 8 GB of RAM and 250 GB NVMe cover that with room to spare. According to Blockgilt’s sizing of 10 November 2026, a 15 GB chainstate plus the 25 GB block target of the xs profile uses about a sixth of Gilt’s disk, leaving the rest for the database, Lightning and growth. For Monero, BTCPay plans at least 250 GB in total, which fits Ingot. Read BTCPay Server VPS for the full sizing.

Running full or pruned nodes of any public blockchain is welcome on every plan, along with Lightning nodes, Electrum servers, block explorers and RPC endpoints you operate yourself.

How do you install BTCPay Server with Docker?

You clone the btcpayserver-docker repository as root, export the deployment variables and source btcpay-setup.sh -i.

The script installs Docker if it is missing, installs the repository’s pinned Docker Compose, stores the container environment in $BTCPAY_BASE_DIRECTORY/.env and registers a systemd service btcpayserver.service, so the stack restarts after a reboot. Replace the host name with your own domain before you run it. Use lnd instead of clightning if you prefer LND, and none to skip Lightning; on a pruned node, remember that the smallest profile is not recommended for Lightning.

Install BTCPay Server (Bitcoin, pruned, Core Lightning)
sudo su -
mkdir BTCPayServer
cd BTCPayServer
git clone https://github.com/btcpayserver/btcpayserver-docker
cd btcpayserver-docker
export BTCPAY_HOST="btcpay.example.com"
export NBITCOIN_NETWORK="mainnet"
export BTCPAYGEN_CRYPTO1="btc"
export BTCPAYGEN_LIGHTNING="clightning"
export BTCPAYGEN_REVERSEPROXY="nginx"
export BTCPAYGEN_ADDITIONAL_FRAGMENTS="opt-save-storage-xs"
. ./btcpay-setup.sh -i
exit

How does pruning work in BTCPay Server?

Pruning in BTCPay Server is a fragment you add with BTCPAYGEN_ADDITIONAL_FRAGMENTS, and opt-save-storage-xs keeps roughly the last 25 GB of blocks.

The fragments are opt-save-storage (about 100 GB), opt-save-storage-s (50 GB), opt-save-storage-xs (25 GB) and opt-save-storage-xxs (about 5 GB, not recommended for Lightning). The targets are not hard limits. Pruning is incompatible with opt-txindex, ElectrumX and the bundled mempool service, so any of those need an unpruned node. Initial synchronization of a full node takes between one and five days according to the BTCPay FAQ; a pruned install still downloads the whole chain once. For the general idea see how to run a pruned Bitcoin node. Before you open the store to customers, read how to secure a VPS for a crypto node or bot.

How do you check, update and back up BTCPay Server?

Check the chain with bitcoin-cli.sh getblockchaininfo, update with btcpay-update.sh and back up with btcpay-backup.sh as root.

btcpay-update.sh is run as root and updates the repository and the stack. The backup script archives Docker volumes, generated secrets and database dumps, leaves out blockchain data that can be downloaded again, and keeps LND’s wallet and channel.backup when present. The BTCPay documentation warns that old Lightning channel state is dangerous: broadcasting a revoked state can cost you all funds in the channel, so a nightly snapshot of a channel database is not a current backup. No plan includes backups. Keep your wallet seeds, Lightning channel backups and bot configs somewhere other than the VPS. Copy the archive to another machine. Blockgilt never holds your coins, seeds or exchange API keys: the node and the wallet on your VPS are yours to run, and nobody on the team will ask for a seed phrase or a private key.

Check, update and back up
sudo su -
bitcoin-cli.sh getblockchaininfo
btcpay-update.sh
cd "$BTCPAY_BASE_DIRECTORY/btcpayserver-docker"
./btcpay-backup.sh

Frequently asked questions

Do I need a domain for BTCPay Server?

Not for local or manually proxied setups, but the bundled automatic HTTPS needs a domain whose DNS points to the server and ports 80 and 443 open.

Can BTCPay Server run on a pruned node?

Yes. Add an opt-save-storage fragment. It cannot be combined with opt-txindex, ElectrumX or the bundled mempool.

Which Lightning implementation can I choose?

BTCPAYGEN_LIGHTNING accepts clightning, lnd, phoenixd or none. Switching later does not migrate wallets or channels.

How long does the first sync take?

The BTCPay FAQ says one to five days for a full Bitcoin node. Check getblockchaininfo before you accept payments.

Does Blockgilt hold my funds?

No. Blockgilt never holds your coins, seeds or exchange API keys: the node and the wallet on your VPS are yours to run, and nobody on the team will ask for a seed phrase or a private key.

Verdict
  • Blockgilt Gilt is the better choice if you install BTCPay for Bitcoin and Lightning with headroom: 8 GB of RAM is twice the 4 GB the docs ask for, at $12.61 a month.
  • Ingot is the better choice if the store also takes Monero, at $19.25 a month on 12 months.
Sources (9)
  1. btcpayserver-docker README — BTCPay Server (checked 2026-11-10)
  2. BTCPay Server Docker installation — BTCPay Server (checked 2026-11-10)
  3. BTCPay Server specifications — BTCPay Server (checked 2026-11-10)
  4. BTCPay Server Docker configuration — BTCPay Server (checked 2026-11-10)
  5. BTCPay Server updating — BTCPay Server (checked 2026-11-10)
  6. BTCPay Server Lightning in Docker — BTCPay Server (checked 2026-11-10)
  7. BTCPay Server backup and restore — BTCPay Server (checked 2026-11-10)
  8. BTCPay Server optional fragments — BTCPay Server (checked 2026-11-10)
  9. BTCPay Server synchronization FAQ — BTCPay Server (checked 2026-11-10)

Order a Gilt for your BTCPay install

4 vCPU, 8 GB of RAM and 250 GB of NVMe for $12.61 a month on 12 months.

From $3.50/month · no KYC

Pick a block