Install Script
One command to install LNbits on Debian/Ubuntu. The script handles system dependencies, cloning, virtual environment, and configuration.
Requirements
- Debian or Ubuntu (tested on 22.04+)
- Root or sudo access
Install
bash
wget https://raw.githubusercontent.com/lnbits/lnbits/main/lnbits.sh && chmod +x lnbits.sh && ./lnbits.shThe script will:
- Install system dependencies (Python, build tools, etc.)
- Clone the LNbits repository
- Set up a virtual environment with uv
- Configure the
.envfile - Start LNbits
After installation, use ./lnbits.sh to run LNbits again, or for more control:
bash
cd lnbits && uv run lnbitsUpdating
bash
cd lnbits
git pull --rebase
uv sync --all-extrasAfter updating, use Admin UI → Extensions → "Update All" to update extensions.
Next steps
- First Setup - configure Super User and wallet backend
- Configuration - customize your instance
- Funding sources - connect a Lightning backend
- Reverse proxy - set up HTTPS
- Process manager - run LNbits as a service
Related Pages
- Installation Overview - all installation methods
- Install with uv - manual uv setup
- Install with Poetry - alternative source install
- Updating LNbits - keep LNbits up to date