# How to set up Core Lightning on a VPS?

> How to set up Core Lightning on a VPS in 8 steps: a synced bitcoind, the Ubuntu binary, config. Leaf runs it from $3.50 a month with 4 GB RAM.

- URL: https://blockgilt.com/guides/how-to-set-up-core-lightning-on-a-vps/
- Last updated: 2026-11-13
- Publisher: Blockgilt (https://blockgilt.com)

Core Lightning needs a synced Bitcoin Core with RPC, one Ubuntu binary release and a short config file. It does not need ZMQ or an index.

**Quick answer — How to set up Core Lightning on a VPS?**

To set up Core Lightning on a VPS, sync Bitcoin Core with RPC enabled, download the Ubuntu binary release, verify its signed SHA256SUMS, unpack it into /usr/local, point a config file at bitcoind and start lightningd. Core Lightning needs no txindex. **Blockgilt** runs it on Leaf: 2 vCPU, 4 GB RAM, 80 GB NVMe, 4 TB traffic, $3.50 a month.

**In brief**

- Core Lightning needs Bitcoin Core 25.0 or above, synced, with blocksonly=0.
- It needs no txindex and no ZMQ.
- Verify SHA256SUMS with gpg, then the archive with sha256sum -c --ignore-missing.
- Config lives in ~/.lightning/config; start with lightningd --network=bitcoin.
- Back up hsm_secret once and emergency.recover after each channel.
- Leaf costs $3.50 a month; Gilt costs $12.61.

## What does Core Lightning need on a VPS?

*Core Lightning requirements from its documentation, with the Blockgilt plan that runs it*

| Item | Requirement |
| --- | --- |
| Bitcoin Core | version 25.0 or above, synced, relaying transactions (blocksonly=0) |
| Index and ZMQ | not required: no txindex, no ZMQ |
| Pruned backend | works, but gets stuck if bitcoind prunes blocks Core Lightning has not read |
| Config file | ~/.lightning/config |
| Leaf | 2 vCPU, 4 GB RAM, 80 GB NVMe, 4 TB traffic, $3.50 a month on 12 months |
| Gilt | 4 vCPU, 8 GB RAM, 250 GB NVMe, 8 TB traffic, $12.61 a month on 12 months |

*Prices checked on November 10, 2026.*

## What are the steps to set up Core Lightning on a VPS?

1. **Sync Bitcoin Core** — Run bitcoind with server enabled and an RPC login, and wait for the sync to finish. Do not set blocksonly=1: Core Lightning needs a node that relays transactions.
2. **Download the release** — On Ubuntu 24.04 take the clightning Ubuntu amd64 tar.xz from the GitHub release page, together with SHA256SUMS and its .asc signature.
3. **Verify the signature and the checksum** — Import the maintainers key listed in SECURITY.md, verify the signed SHA256SUMS file, then check the archive against it.
4. **Install into /usr/local** — Extract the archive with the tar command from the Core Lightning documentation.
5. **Write the config file** — Create ~/.lightning/config with the network and the bitcoind RPC login.
6. **Start lightningd** — Run lightningd on the bitcoin network and read the log until it reports that it is synced.
7. **Fund the wallet and open a channel** — Use lightning-cli newaddr to get a deposit address, listfunds to see the balance, connect to a peer and fundchannel to open a channel.
8. **Back up hsm_secret and emergency.recover** — Copy the secret once and the recovery file each time you open a channel, off the server.

## Which Blockgilt plan fits?

Leaf runs Core Lightning with a pruned node; Gilt leaves room for BTCPay Server.

| Plan | Quantity | 30 days | 3 months | 6 months | 1 year |
| --- | --- | --- | --- | --- | --- |
| Leaf | 2 vCPU · 4 GB RAM · 80 GB NVMe | — | $21 | $33.60 (−20%) | $42 (−50%) |
| Gilt | 4 vCPU · 8 GB RAM · 250 GB NVMe | $25.22 | $75.66 | $121.05 (−20%) | $151.32 (−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 Core Lightning?

Core Lightning runs on Leaf with a pruned backend, and on Bullion if you want a full local chain.

The project documents no RAM or disk figure of its own, so the size comes from the node beside it. A pruned Bitcoin Core fits in 7 GB on bitcoin.org’s numbers, and Leaf offers 80 GB NVMe and 4 GB of RAM. According to Blockgilt’s sizing of 10 November 2026, that is more than ten times the pruned minimum. Choose Bullion (1.5 TB NVMe) if you also want to run an Electrum server. The comparison with the other implementation is in [LND vs Core Lightning](https://blockgilt.com/lnd-vs-core-lightning/ "Should you run LND or Core Lightning on a VPS?"), and the general sizing is in [VPS for Lightning node](https://blockgilt.com/vps-for-lightning-node/ "Which VPS do you need for a Lightning node?").

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. Mining is not allowed on any plan, with any coin or software. A node that downloads, verifies and relays blocks does not mine, and neither does a Lightning node, an indexer or a trading bot.

## What must Bitcoin Core provide for Core Lightning?

Bitcoin Core must be version 25.0 or above, fully synced, with JSON-RPC enabled and transaction relay on.

The documentation lists these conditions and adds two relaxations: ZeroMQ is not required, and bitcoind does not need `txindex`. If you prune, keep the target generous, because bitcoind cannot serve a block it has already deleted and Core Lightning then cannot synchronize any more; this happens when it stays offline for a long time. Follow [how to run a Bitcoin node on a VPS](https://blockgilt.com/guides/how-to-run-a-bitcoin-node-on-a-vps/ "How to run a Bitcoin node on a VPS?") or the [pruned version](https://blockgilt.com/guides/how-to-run-a-pruned-bitcoin-node/ "How to run a pruned Bitcoin node?") first.

*The file ~/.bitcoin/bitcoin.conf*

```ini
server=1
rpcuser=REPLACEME
rpcpassword=REPLACEME
```

## How do you download and verify Core Lightning?

Download the Ubuntu binary, SHA256SUMS and its .asc file from the GitHub release page, verify the signature on the sums file, then check the archive.

The release page of v26.06.10 says to check the signatures against the manifest by passing both files to gpg, then run the checksum with `--ignore-missing`. It points to SECURITY.md in the repository for the maintainers’ keys, so import the key from there before the first verification. The project builds reproducible binaries for Ubuntu 22.04, 24.04 and 26.04. The commands below use Ubuntu 24.04 on amd64; change the version and the file name to the latest release.

*Download, verify and install*

```bash
VER=v26.06.10
wget https://github.com/ElementsProject/lightning/releases/download/$VER/clightning-$VER-Ubuntu-24.04-amd64.tar.xz
wget https://github.com/ElementsProject/lightning/releases/download/$VER/SHA256SUMS-$VER
wget https://github.com/ElementsProject/lightning/releases/download/$VER/SHA256SUMS-$VER.asc
gpg --verify SHA256SUMS-$VER.asc SHA256SUMS-$VER
sha256sum -c SHA256SUMS-$VER --ignore-missing
sudo tar -xvf clightning-$VER-Ubuntu-24.04-amd64.tar.xz -C /usr/local --strip-components=2
```

## What goes in the Core Lightning config file?

The config file sets the network and the bitcoind RPC login, and optionally the alias and the address to announce.

Create a file named `config` in `~/.lightning/`. Options are written without the leading dashes. `bitcoin-rpcuser`, `bitcoin-rpcpassword`, `bitcoin-rpcconnect` and `bitcoin-rpcport` come from the bcli plugin and say how to reach bitcoind. `addr` sets the address to listen on and `announce-addr` the one to announce. `network` is not valid inside a per-network file. Inbound P2P ports stay open, so a node can accept peers: 8333 for Bitcoin, 9735 for Lightning, 18080 for Monero, and any port you open in your own firewall, so the default Lightning port 9735 accepts peers.

*~/.lightning/config*

```ini
network=bitcoin
alias=my-node
bitcoin-rpcuser=REPLACEME
bitcoin-rpcpassword=REPLACEME
bitcoin-rpcconnect=127.0.0.1
```

*Start and use the node*

```bash
lightningd --network=bitcoin --log-level=debug
lightning-cli getinfo
lightning-cli newaddr
lightning-cli listfunds
```

## How do you back up a Core Lightning node?

Back up `hsm_secret` once and `emergency.recover` after each new channel, and never rely on a snapshot of the database.

The project documentation states that recovering `hsm_secret` is enough for on-chain funds but only necessary, not sufficient, for funds in channels, and that there is no single-seed backup for them. `emergency.recover` is updated each time you open a channel. Static channel recovery needs the cooperation of your peers and is a last resort. Snapshot-style copies of the database are discouraged because any lost state can mean lost funds; replication through the db write hook is the recommended approach. No plan includes backups. Keep your wallet seeds, Lightning channel backups and bot configs somewhere other than the VPS. 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. Details are in [how to back up a Lightning node](https://blockgilt.com/guides/how-to-back-up-a-lightning-node/ "How to back up a Lightning node?").

## Frequently asked questions

### Does Core Lightning need a full node?

No. It works with a synced pruned node, but it gets stuck if bitcoind prunes blocks it has not processed yet.

### Does Core Lightning need ZMQ or txindex?

No. The documentation says ZeroMQ is not required and bitcoind does not need txindex.

### Where is the config file?

In ~/.lightning/config, or in a network subdirectory such as ~/.lightning/bitcoin/config.

### Which file protects my channels?

hsm_secret is necessary, and emergency.recover is the static channel backup. Neither works alone for in-channel funds.

### Can Blockgilt recover my node?

No. No plan includes backups. Keep your wallet seeds, Lightning channel backups and bot configs somewhere other than the VPS.

**Verdict**

- **Blockgilt Leaf is the better choice if** Core Lightning runs on a pruned bitcoind, on 80 GB of NVMe for $3.50 a month on 12 months.
- **Gilt is the better choice if** you add BTCPay Server or more plugins, at $12.61 a month.

## Sources

1. [Core Lightning installation](https://docs.corelightning.org/docs/installation) — Core Lightning (checked 2026-11-10)
2. [Core Lightning configuration](https://docs.corelightning.org/docs/configuration) — Core Lightning (checked 2026-11-10)
3. [Core Lightning backup and recovery](https://docs.corelightning.org/docs/backup-and-recovery) — Core Lightning (checked 2026-11-10)
4. [Core Lightning getting started](https://docs.corelightning.org/docs/getting-started) — Core Lightning (checked 2026-11-10)
5. [Using Bitcoin Core with Core Lightning](https://github.com/ElementsProject/lightning/blob/master/doc/getting-started/advanced-setup/bitcoin-core.md) — Core Lightning (checked 2026-11-10)
6. [Core Lightning release v26.06.10](https://github.com/ElementsProject/lightning/releases/tag/v26.06.10) — Core Lightning (checked 2026-11-10)

**Run Core Lightning on a Leaf** 2 vCPU, 4 GB of RAM and 80 GB of NVMe for $3.50 a month on 12 months. [Order Leaf](https://blockgilt.com/app/checkout/?plan=leaf&from=how-to-set-up-core-lightning-on-a-vps&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.
