First of all, let’s answer this question that many newbies were asking me: What is Alby Hub?
Alby Hub, is a simple LN node interface, with nice NWC functionalities to connect various LN services and be used “on-the-go”. It is NOT a LN node in itself but is offering tools to manage the LN node behind. Is like LNbits or Zeus.
Yes, I know, Alby team already have a nice documentation page about this, their Github repository is also well documented (from there I was inspired too), but with this mini guide I want to bring this information to more people, especially to my readers that maybe will find a bit complicated to read all those instructions. Also my guide is dedicated to a specific setup, that few are talking about: the advanced mode setup.
Also BTC Sessions made a nice video tutorial, but that one also is taking the simple path of using the Alby Cloud and not the “advanced” path of managing yourself the LN node behind the Alby Hub.
So let’s get started with explaining the modes you can run Alby Hub:
  • using Alby Cloud, migrating your existing custodial Alby account
  • using a VPS / hosting service with Alby Hub, pointing it to your home /remote LN node
  • using a new account, running Alby Hub on your local PC, together with your own LN node. This method also could be run as standalone LN app or as a server, depending on how is your day to day usage.
I was testing (almost) all funding sources for Alby Hub and I will make a classification. I have to mention also that you can run it as a “private node” (not routing) or as a public node (routing) with some more complex steps. In this guide I will talk only about the “private” mode, mode that can be used by all newbies that are not so familiar with the complexities of running a publicly exposed node (domains, SSL certificates, router ports etc).

BASIC REQUIREMENTS

We consider you are a simple user, that do not have any (desktop) LN node, nothing, just want to run in a self-custodial way a simple LN node for your personal needs and maybe later giving some sub-accounts to your family and friends.
  • a simple PC, even with 4 GB RAM, recommended Linux OS. Alby Hub works also on Windows machines, but I will not recommend that.
  • some basic knowledge of running some command lines in Linux Terminal. Is just copy/paste in fact.
  • a mobile phone to connect Alby Go.

SETUP STEPS

STEP 1 - OS

Install Linux on that PC, I would recommend DebianOS (is more stable, if you want to dedicate that machine only to Alby HUB + LN node), but works on any other Linux distribution, even if you have a normal Linux Mint desktop could work perfectly fine. So use whatever other Linux you like.

STEP 2 - PREPARE ALBY FUNDING SOURCE

Start here: https://albyhub.com/ and choose “do it yourself”. Then you will be redirected to login with an existing Alby account (if you want to migrate it to self-custodial) or create a new one, to start a separate one with your new self-custodial instance.
Just create a new one and you will get an invitation code for running your Alby Hub.
Go to “Desktop setup” instructions and download the executable file for the OS you are using. No need to install anything, just run the executable file.
Once you start Alby Hub app, you will be prompted to input an invitation code. If you already have an Alby account (custodial) you can get it from there, but remember that you will migrate everything to your new self-hosted Alby Hub. I would suggest to start with a new Alby registration and once you are asked what type of account you want you can choose self-hosted and get that invitation code, that later you will have to input in the setup of your Alby Hub. Later you can change or personalize the LN address and even use your own domain for that.
Alby Hub is offering a variety of funding sources that you can choose first time you start it. A very easy to use GUI interface, that help you to connect instantly with your LN node behind (funding source).
Reminder: We are talking here ONLY about using the “private node” mode, not public.
Once you start Alby Hub, you will be prompted with this screen, where you have to choose “Advanced setup” if you do not want to use the Alby Cloud option:
Then you will be prompted to choose one of the backend funding source:

LDK

The simplest one and straight forward. If you choose that one, it will install automatically a LDK node instance and start right away, going to open one or many channels with the LSPs offered or any other node peer you like. LDK will not use so many resources, being a lightweight LN implementation. Also do not need to run beside a full bitcoin core node, it uses public Esplora servers. If you want to run your personal Esplora server, you have that option too, but you need to dig more into CLI configurations.

Phoenixd

Another simple and straight forward funding source for Alby Hub. Only that this one will use the “walled garden” liquidity from Acinq and will charge the 1% fees for that. If you do not want to deal with channels node management, this is a perfect solution.
Installation of phoenixd is quite simple, just follow these simple command lines: https://phoenix.acinq.co/server/get-started
Once phoneixd is up and running go to Alby Hub and input the required authorization code for that local server:

LND

A more complex and robust funding source, that require previous installation before you want to link it to your Alby Hub. Would be nice if Alby team will include an automated installation of LND like the LDK.
What I would recommend is to install a LND instance in “neutrino mode” on the same machine where are you going to run Alby Hub. In this way you do not require to run also a heavy bitcoin core node, with full blocks that will eat up almost all the machine resources. And don’t worry, the “neutrino mode” is not a “privacy concern”, neutrino is only delivering blocks data filters, do not read any xpub or addresses, IPs etc. It is used also by Zeus (embedded), Blixt, Breez.
Installing lnd from source: With the preliminary steps completed, to install lnd, lncli, and all related dependencies run the following commands:
git clone https://github.com/lightningnetwork/lnd cd lnd make install
The command above will install the current master branch of lnd. If you wish to install a tagged release of lnd (as the master branch can at times be unstable), then visit the release page to locate the latest release. Assuming the name of the release is v0.x.x, then you can compile this release from source with a small modification to the above command:
git clone https://github.com/lightningnetwork/lnd cd lnd git checkout v0.x.x make install
In that document you will also find the following lnd.conf configuration for neutrino mode:
bitcoin.node=neutrino feeurl=https://nodes.lightning.computer/fees/v1/btc-fee-estimates.json
Once the LND is up and running, continue with backing the macaroons and TLS certificate required to connect Alby Hub, those will be necessary in this next step:
LND address - your local LND instance, eg. http:/127.0.0.1:9735 TLS Certificate - path to the LND TLS cert file, usually in lnd/data Admin Macaroon - your backed admin macaroon to authorize the connection

Cashu Mint

An interesting and damn simple connection as funding source. If you do not want to deal with all above LN nodes, channels management liquidity etc. this is one of the most straight forward and simple solutions.
YES, is custodial, but if you deal with small amounts, only for donations, nostr zaps, small payments etc, this is enough.
By default is offering the Minibits.cash mint, but you can use whatever other mint you like (see more here: https://bitcoinmints.com/ ), or your own mint if you run one.
The only concerning part with this funding source is that there’s no way to have backup the tokens or keys for this funding source. Not yet, I am sure the Alby team is working on that. So if your Alby Hub get busted, you do not have a backup of the funds (or I couldn’t find it myself until now).

Greenlight / Breez SDK

This is a Greenlight funding source method, based on invitation code and a Breez API key. You can request them here. Greenlight is a “Lightning-as-a-service” node, where the user hold the keys but do not manage the channels liquidity and the server.

STEP 3 - START USING YOUR ALBY HUB

Aaaand that’s it! Once you connect a funding source, you are ready to go and use your Alby Hub, connecting it to various LN apps with NWC, connecting to Alby Go as a mobile wallet, create limited accounts or even act as “uncle Jim” with the special deployment of “Alby Jim”.
The variety of apps connections is incredible and easy to setup with provided instructions in the interface.

MORE RESOURCES:

ENJOY LIGHTNING NETWORK!
Now I've completely set it up. So relieved. Thank you so much. Great guide!
reply
send me a SN DM with your LN address of that hub and I will send you 210 sats.
reply
I've not attached it with my SN wallet so far. As soon as I do I'll send.
reply
it doesn't matter if is linked or not to SN. I am not sending to your SN, I will send to your Alby Hub directly. Is just to test your setup and I will send from another source not SN. If you want.
reply
Thanks Darth This is gonna be super helpful for me and for many many others.
reply
I think Alby team, with this approach of offering different LN backend options, by levels of complexity, hit a good point where other solutions didn't get it very well.
The easiest of just starting the app and choose a different funding source, from the easiest and automated, through a custodial one (cashu), with a simple line installation of phoenixd and up until complex LND installation is offering all kind of flavors.
Now, nocoiners do not have more excuses not to run a self-custodial node, on any PC, no need to complex machines. Even with LND, as I explained, I've test it in neutrino mode, that works perfectly fine on any machine.
reply
Nocoiners shouldn't have any excuse even without Alby. From smaller payments, the custodial wallets like Blink also work fine.
reply
200 sats \ 1 reply \ @articfoxb 7h
uncle jim #701502
reply
oh I've missed that guide...
reply
Thank you so much sir for making such a simple step by step guide.
reply
23 sats \ 0 replies \ @Golu 8h
Thanks Darthcoin. It'll help me become sovereign as I don't have to depend on my brother for learning about setting up my first, no second but first non custodial wallet.
reply
122 sats \ 2 replies \ @ChrisS 8h
Great guide. I just set everything up. Pretty cool to be able to zap someone with having a zero balance on SN.
I have a question about fees. I set up alby hub with LDK backend, opened a channel with 1 million sats inbound liquidity for 16416 sats and sent 10k sats with a 24 sat lightning network fee to it. But I ended up with only 9,644 sats in my balance. Where did the other 356 sats go?
reply
send me a SN DM with your LN address of that hub and I will send you 210 sats for a test.
reply
I had the same thing with LDK, but after I made that payment I received back the 365 sats. I really don't know the logic of this. Must be some opening channel scripts from the LSP side.
reply
Well, If you use default setup (LDK) then it is a lightning node, isn't it?
Nice guide though Darth!
reply
22 sats \ 1 reply \ @wingalt 7h
It looks like an easy to use version of LNBits, especially the friends and family extension is super handy to become an uncle Jim, thanks Darth and well done Alby
reply
yes, only that LNbits is more advanced stuff. This one any newbie can run it.
reply
Amazing! Much impressive and thoughtful guide, thanks
reply
You did it! Thanks. I'm sure I speak for everyone.
reply
Is not so detailed as I would like to be, but at least is giving the directions for all the options you have a s new user. Yes, if you want to go for LND backend, you must do more steps and installations, but I didn't wanted to convert this guide into a LND installation guide.
I would like to see that @Alby team will make the installation of LND and phoenixd in automated mode, when is chosen, like the LDK one. So the user do not have to deal with all those additional steps. In that moment any not so experienced user will have to do just few clicks and his node is up and running.
I've tested various backend funding sources and the LDK is the simplest one and still powerful. The user do not have to do almost anything, just click "next" and then open at least a channel.
reply
I can just speak for myself, but I really like the way you started by explaining exactly what the Alby Hub is. I have been using it for weeks, yet I still wasn't quite sure how to describe it.
reply
Yes I got that question from many people and many had the impression that is another standalone LN node. I don't know why they have that in mind.
Alby Hub do not work without a LN backend node, but can "act like one" with a simple UI. What pleasant surprised me was the connection with Alby Go. So damn simple and fast.
reply
Yes, and the graphics are so big! You can see it easily even when paying a bar tab when you're a little drunk! One thing I was worried about was the big fiat and btc balance fonts. Somebody looking over your shoulder. I messaged them. They said you can change permissions in the NWC connect so the app doesn't know balances.
reply
Just followed your guide and created this account using my self-hosted Albyhub! thanks.
reply
send me a SN DM with your LN address of that hub and I will send you 210 sats.
reply
212 sats \ 3 replies \ @ChrisS 9h
Just create a new one and you will get an invitation code for running your Alby Hub.
I am unable to create an account without an invite code. Does anybody have one I can use?
reply
Once you create a new account with an email, you will get that code. Nobody have to give you any other invitation.
reply
0 sats \ 1 reply \ @ChrisS 9h
When I click sign up now I am met with this page and can’t submit my name and email without a invite code
reply
Strange why worked for me without invite code? Try these: #660901
reply
Very well-written guide. Thanks for going in depth on the multiple backends. For me just containing everything to what the default offers is enough for me, but I'm glad to see there's quite a bit of flexibility out of the box.
reply
Thanks! I'm going to set up Alby HUB this weekend, your guide will be helpful.
reply
Justice for 80 IQ Windows pleb users🤣🤣
reply
80?! Is too much. Seriously now, you have to be really dumb to use windoze nowadays, just as a normal user.
I understand those devs that are forced to use windoze for their work, with a controlled environment (win Server etc), but as a regular user, just for internet, email and bitcoin you are really fucked up using windoze.
A simple Linux Mint is waaaay more robust and safe than any stupid Win 11 on a laptop.
reply
I'm wondering why you even need Alby Hub if you already have a back- end like Phoenixd or LND.
reply
We are talking about experienced node operators or limited end users? NWC connections are really cool in this case and Alby is offering a simple UI for those backends.
Not everybody should run Alby Hub and not everybody should run phoenixd or LND... I think Alby Hub is just offering all flavors for all tastes.
reply
NWC connections
I guess it would be worth setting up Alby Hub if that's the best way to configure Nostr Wallet Connect. Do all of the back-end nodes support NWC?
reply
I don't think is about support for NWC by the backends. NWC is something built on top of any node and do not require any specific code for the LN implementation in order to be supported. Is more about the easy way for a newbie to get a working NWC wallet for his nostr zaps and many other LN apps out there.
Alby wanted to get rid of the custodial accounts used by all these noobs and I think that this Alby Hub come to help them all to get rid of custodial accounts, but also offering more expanded options with different backends.
They could easily just integrated LDK or even Greenlight and the user not even had to do all the setups. Will be just click-and-play and that's it.
But instead of that, they choose to offer more options and that is excellent choice IMHO.
reply
100 sats \ 1 reply \ @ChrisS 4h
How do backups work beyond the 24 words with channel states etc... How can I test restoring the node on another device?
reply
I would suggest to do a SCB backup separately if you use LND. For the LDK, follow these instructions: https://guides.getalby.com/user-guide/v/alby-account-and-browser-extension/alby-hub/backups#id-2.-channel-backups
reply