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 set up Core Lightning on a VPS?

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.

Last updated: · 7 min read

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
ItemRequirement
Bitcoin Coreversion 25.0 or above, synced, relaying transactions (blocksonly=0)
Index and ZMQnot required: no txindex, no ZMQ
Pruned backendworks, but gets stuck if bitcoind prunes blocks Core Lightning has not read
Config file~/.lightning/config
Leaf2 vCPU, 4 GB RAM, 80 GB NVMe, 4 TB traffic, $3.50 a month on 12 months
Gilt4 vCPU, 8 GB RAM, 250 GB NVMe, 8 TB traffic, $12.61 a month on 12 months

Prices checked on

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.

Term

Leaf

2 vCPU · 4 GB RAM · 80 GB NVMe

$7

$21 for 3 months

6 months $33.60 (−20%)1 year $42 (−50%)

  • 2 vCPU, 4 GB RAM, 80 GB NVMe
  • Trading bots, a pruned Bitcoin node with Lightning
  • 4 TB traffic at 1 Gbit/s, 1 IPv4 + IPv6 /64
  • $3.50 a month on the 12-month term ($42.00 a year)
  • HostBrr Value 8GB: $4.67 a month for 2 vCPU / 8 GB / 80 GB NVMe (10 November 2026)
Order this VPS

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

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 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, and the general sizing is in VPS for 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 or the pruned version first.

The file ~/.bitcoin/bitcoin.conf
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
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
network=bitcoin
alias=my-node
bitcoin-rpcuser=REPLACEME
bitcoin-rpcpassword=REPLACEME
bitcoin-rpcconnect=127.0.0.1
Start and use the node
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.

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 (6)
  1. Core Lightning installation — Core Lightning (checked 2026-11-10)
  2. Core Lightning configuration — Core Lightning (checked 2026-11-10)
  3. Core Lightning backup and recovery — Core Lightning (checked 2026-11-10)
  4. Core Lightning getting started — Core Lightning (checked 2026-11-10)
  5. Using Bitcoin Core with Core Lightning — Core Lightning (checked 2026-11-10)
  6. Core Lightning release 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.

From $3.50/month · no KYC

Pick a block