# How to install BTCPay Server on a VPS?

> How to install BTCPay Server on a VPS in 8 steps with the official Docker script. The docs ask for 2 vCPU and 4 GB; Gilt costs $12.61 a month.

- URL: https://blockgilt.com/guides/how-to-install-btcpay-server/
- Last updated: 2026-11-13
- Publisher: Blockgilt (https://blockgilt.com)

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.

**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*

| Setup | Documented figure | Blockgilt plan |
| --- | --- | --- |
| Bitcoin only, pruned (opt-save-storage-xs) | 2 vCPU, 4 GB RAM, 50 GB SSD minimum | Gilt: 4 vCPU, 8 GB RAM, 250 GB NVMe, 8 TB traffic, $12.61 a month |
| Pruned Bitcoin plus Lightning | 80 GB (BTCPay figure) | Gilt, $12.61 a month |
| Bitcoin and Monero | at least 250 GB of SSD in total | Ingot: 4 vCPU, 16 GB RAM, 500 GB NVMe, 12 TB traffic, $19.25 a month |
| Unpruned Bitcoin with the bundled mempool | 0.9 TB and more | Bullion, $72.87 a month |

*Prices checked on November 10, 2026.*

## 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.

| Plan | Quantity | 30 days | 3 months | 6 months | 1 year |
| --- | --- | --- | --- | --- | --- |
| Gilt | 4 vCPU · 8 GB RAM · 250 GB NVMe | $25.22 | $75.66 | $121.05 (−20%) | $151.32 (−50%) |
| Ingot | 4 vCPU · 16 GB RAM · 500 GB NVMe | $38.50 | $115.50 | $184.80 (−20%) | $231 (−50%) |

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

**Before you pay**

- Minimum top-up $25. Top up once in crypto, then buy any plan from your balance.
- Credit on your balance does not expire and renews any of your VPS. When a top-up is only made to reach the minimum, the unspent part comes back on request within 30 days of payment, in USDT or USDC. The rest of a balance is not paid out unless the law requires it.
- Credited once your payment is checked on the blockchain. Typical network confirmation time: BTC ≈ 20 min · USDT TRC-20 ≈ 1 min · USDT ERC-20 ≈ 5 min · USDC ERC-20 ≈ 5 min · ETH ≈ 5 min · SOL ≈ 1 min · LTC ≈ 15 min · XMR ≈ 20 min

## 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](https://blockgilt.com/btcpay-server-vps/ "What VPS do you need for BTCPay Server?") 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)*

```bash
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](https://blockgilt.com/guides/how-to-run-a-pruned-bitcoin-node/ "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](https://blockgilt.com/guides/how-to-secure-a-crypto-vps/ "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*

```bash
sudo su -
bitcoin-cli.sh getblockchaininfo
btcpay-update.sh
cd "$BTCPAY_BASE_DIRECTORY/btcpayserver-docker"
./btcpay-backup.sh
```

> **Register the admin account at once** The first account registered on a new BTCPay Server becomes the server administrator. Setup can also finish even if the certificate could not be issued, so confirm HTTPS works before you share the address. For the rest of the hardening, read how to secure a VPS for a crypto node or bot.

## 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

1. [btcpayserver-docker README](https://github.com/btcpayserver/btcpayserver-docker) — BTCPay Server (checked 2026-11-10)
2. [BTCPay Server Docker installation](https://docs.btcpayserver.org/Docker/installation/) — BTCPay Server (checked 2026-11-10)
3. [BTCPay Server specifications](https://docs.btcpayserver.org/Docker/specs/) — BTCPay Server (checked 2026-11-10)
4. [BTCPay Server Docker configuration](https://docs.btcpayserver.org/Docker/configuration/) — BTCPay Server (checked 2026-11-10)
5. [BTCPay Server updating](https://docs.btcpayserver.org/Docker/updating/) — BTCPay Server (checked 2026-11-10)
6. [BTCPay Server Lightning in Docker](https://docs.btcpayserver.org/Docker/lightning/) — BTCPay Server (checked 2026-11-10)
7. [BTCPay Server backup and restore](https://github.com/btcpayserver/btcpayserver-docker/blob/master/docs/backup-restore.md) — BTCPay Server (checked 2026-11-10)
8. [BTCPay Server optional fragments](https://github.com/btcpayserver/btcpayserver-docker/blob/master/docs/fragments.md) — BTCPay Server (checked 2026-11-10)
9. [BTCPay Server synchronization FAQ](https://docs.btcpayserver.org/FAQ/Synchronization/) — 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. [Order Gilt](https://blockgilt.com/app/checkout/?plan=gilt&from=how-to-install-btcpay-server&lang=en) · [Compare all plans](https://blockgilt.com/pricing/ "How much does a VPS for a crypto node cost?")

---

Blockgilt: Blockgilt is a VPS provider for crypto nodes and trading bots, paid in crypto with no ID upload and operated by DomaineGoat LLC, a Panama-registered company. Its eight NVMe plans, from 80 GB to 6 TB, are sized for Bitcoin, Lightning, Monero and Ethereum nodes, Electrum servers, BTCPay Server, Freqtrade and Hummingbot, in Amsterdam (Netherlands), Zurich (Switzerland), Singapore and Tokyo (Japan). On the 12-month term, each plan is priced at least 25% under a named comparable plan, chosen among 72 crypto-accepting VPS hosts read on 10 November 2026.
