A cross platform, self-hosted server compatible with Bitpay API
Clone or download
Pull request Compare This branch is 2 commits ahead, 238 commits behind btcpayserver:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.


BTCPay Server

Docker Automated build Deploy to Azure

BTCPay Server


BTCPay Server is a free and open-source cryptocurrency payment processor which allows you to receive payments in Bitcoin and altcoins directly, with no fees, transaction cost or a middleman.

BTCPay is a non-custodial invoicing system which eliminates the involvement of a third-party. Payments with BTCPay go directly to your wallet, which increases the privacy and security. Your private keys are never uploaded to the server. There is no address re-use, since each invoice generates a new address deriving from your xpubkey.

The software is built in C# and conforms to the invoice API of BitPay. It allows for your website to be easily migrated from BitPay and configured as a self-hosted payment processor.

You can run BTCPay as a self-hosted solution on your own server, or use a third-party host.

The self-hosted solution allows you not only to attach an unlimited number of stores and use the Lightning Network but also become the payment processor for others.

Thanks to the apps built on top of it, you can use BTCPay to receive donations or have an in-store POS system.


  • Direct, P2P Bitcoin payments
  • Lightning Network support (LND and c-lightning)
  • Altcoin support
  • Complete control over private keys
  • Fully compatability with BitPay API (easy migration)
  • Enchanced privacy
  • SegWit support
  • Process payments for others
  • Payment buttons
  • Point of sale
  • No transaction fees (other than those for the crypto networks)
  • No processing fees
  • No middleman
  • No KYC

Supported Altcoins

In addition to Bitcoin, BTCPay supports the following cryptocurrencies:

  • BGold
  • Dash
  • Dogecoin
  • Feathercoin
  • Groestlcoin
  • Litecoin
  • Monacoin
  • Polis
  • UFO
  • Viacoin


Please check out our complete documentation for more details.

You can also read the BTCPay Merchants Guide.

How to build

While the documentation advise using docker-compose, you may want to build yourself outside of development purpose.

First install .NET Core SDK 2.1 as specified by Microsoft website.

On Powershell:


On linux:


How to run

Use the run scripts to run BTCPayServer, this example show how to print the available command line arguments of BTCPayServer.

On Powershell:

.\run.ps1 --help

On linux:

./run.sh --help

Other dependencies

For more information see the documentation How to deploy a BTCPay server instance.