# BTCPay Server

[BTCPay Server](https://btcpayserver.org/) is a free and open-source bitcoin payment processor. [🏪](https://emojipedia.org/convenience-store/)

Who uses BTCPay Server today:

* **Merchants** who sell products and services online or in person
* **Charities and non-profits** looking to accept donations or crowdfund their dream project
* **Developers** building on top of bitcoin and payment infrastructure
* Members of **local communities** willing to onboard people to their BTCPay instance and offer payment processing as a service or for free, creating a circular economy.

## How to connect your Alby Hub wallet to BTCPay Server

### Step 1: Open Alby Hub

Go to my.albyhub.com or open Alby Hub on your device if you are self-hosting it.

### Step 2: Go to 'Connections', locate and click on BTC Pay Server

<figure><img src="/files/4wOPWzZw0Ls8uZhSDrpr" alt=""><figcaption></figcaption></figure>

### Step 3: Click on 'Connect to BTCPay Server'

<figure><img src="/files/qfKTAX7mrdfuQ1ZKqH9F" alt=""><figcaption></figcaption></figure>

### Step 4: Follow the instructions

<figure><img src="/files/wFrr2O0sl6sgfXv1oRBp" alt=""><figcaption></figcaption></figure>

### Step 5: Switch to your BTC Pay Server and install the Nostr plugin

<figure><img src="/files/Hz1uqKh7DqkScHamtbxj" alt=""><figcaption></figcaption></figure>

### Step 6: Go to “Lightning” and “Settings”.

If you already have a connection setup, change it by selecting “Change connection”, if not, simply click on “Choose a connection” in that same section.

<figure><img src="/files/ZIhxDS16MBdrIHFfv6Sa" alt=""><figcaption></figcaption></figure>

### Step 7: Add the NWC connection string to BTCPay Server

<figure><img src="/files/pWVAtvNaiPsyI4tEb1Ee" alt=""><figcaption></figcaption></figure>

**Click on 'Save' and you are done. 🚀**

For a full step-by-step guide, follow this article: <https://blog.getalby.com/manage-btcpay-server-with-any-node-or-wallet-with-nwc/>

***

Now you are ready to receive donations or sell goods and services for bitcoin.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://guides.getalby.com/user-guide/alby-hub/app-connections/btcpay-server.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
