> For the complete documentation index, see [llms.txt](https://guides.getalby.com/user-guide/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://guides.getalby.com/user-guide/alby-hub/app-connections/btcpay-server.md).

# BTCPay Server

How to connect to 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

Open Alby Hub on your device.

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

<figure><img src="https://2706948649-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FWIUBf3ZZaBGu2ee6Y8lU%2Fuploads%2FPS47XuNruU2pVlF7kTXM%2FScreenshot%202026-04-22%20at%2010.29.21.png?alt=media&amp;token=d93ecb32-57be-41d1-a948-a3aa46080fa5" alt=""><figcaption></figcaption></figure>

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

<figure><img src="https://2706948649-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FWIUBf3ZZaBGu2ee6Y8lU%2Fuploads%2FrwvB1c7B8sYAOfmH8O8Y%2FScreenshot%202026-04-22%20at%2010.31.57.png?alt=media&amp;token=9fa9af38-ac1c-4342-babf-e61d088152a0" alt=""><figcaption></figcaption></figure>

### Step 4: Follow the instructions

<figure><img src="https://2706948649-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FWIUBf3ZZaBGu2ee6Y8lU%2Fuploads%2FGWSc3JbOpR4n2q0mcts9%2FScreenshot%202026-04-22%20at%2010.33.46.png?alt=media&amp;token=8fde127a-8af2-4952-9fed-7f339045b93a" alt=""><figcaption></figcaption></figure>

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

<figure><img src="https://2706948649-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FWIUBf3ZZaBGu2ee6Y8lU%2Fuploads%2FtFi2UVR8GSlMIeP2wLGG%2Fimage.png?alt=media&amp;token=d2079782-f627-488f-b43a-95a735d8d623" 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="https://2706948649-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FWIUBf3ZZaBGu2ee6Y8lU%2Fuploads%2FrbsUACzaJUQbXJSL4Wi6%2Fimage.png?alt=media&amp;token=3aebf8ff-74e1-4f47-81d4-5538ae33185c" alt=""><figcaption></figcaption></figure>

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

<figure><img src="https://2706948649-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FWIUBf3ZZaBGu2ee6Y8lU%2Fuploads%2FEsnGk0ywmtqnc4vA5bQF%2Fimage.png?alt=media&amp;token=daa42085-f0db-4f55-b3e1-c33704e278c7" 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
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

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

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

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

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
