2025-11-03 11:34:24 +01:00
---
layout: default
title: Admin UI
nav_order: 1
---
2025-10-17 13:14:54 +02:00
< a href = "https://lnbits.com" target = "_blank" rel = "noopener noreferrer" >
< picture >
< source media = "(prefers-color-scheme: dark)" srcset = "https://i.imgur.com/QE6SIrs.png" >
< img src = "https://i.imgur.com/fyKPgVT.png" alt = "LNbits" style = "width:300px" >
< / picture >
< / a >
2022-12-17 12:51:02 +01:00
2025-10-17 13:14:54 +02:00


[<img src="https://img.shields.io/badge/community_chat-Telegram-24A1DE"> ](https://t.me/lnbits )
2022-12-17 12:51:02 +01:00
2025-10-17 13:14:54 +02:00
# LNBits Admin UI
2022-12-17 12:51:02 +01:00
2025-11-10 15:08:33 +01:00
[What you can do ](#what-you-can-do-with-the-admin-ui ) · [First Run ](#first-run-and-super-user-id ) · [Enable/Disable ](#enabling-or-disabling-the-admin-ui ) · [Reset ](#reset-to-defaults ) · [Allowed Users ](#allowed-users ) · [Guides ](#additional-guides )
**We introduced the Admin UI as the new default to make setup simpler and more straightforward**. Instead of hand editing the `.env` file, you configure key server settings directly in the frontend with clear labels and guardrails.
2022-12-17 12:51:02 +01:00
2025-10-17 13:14:54 +02:00
< ins > On a fresh install the Admin UI is enabled by default</ ins > , and at first launch you are prompted to create **Super User** credentials so that sensitive operations, such as switching funding sources, remain in trusted hands. When the Admin UI is enabled, configuration is written to and read from the database; for all settings managed by the UI, the parameters in `.env` are largely no longer used. If you disable the Admin UI, the `.env` file becomes the single source of truth again.
2022-12-17 12:51:02 +01:00
2025-11-03 11:34:24 +01:00
For privileged actions and role details see ** [Super User ](./super_user.md )** & [User Roles ](./user_roles.md )
2025-10-17 13:14:54 +02:00
For a complete reference of legacy variables consult ** [.env.example ](../../.env.example )**.
2022-12-17 12:51:02 +01:00
2025-10-17 13:14:54 +02:00
< img width = "900" height = "640" alt = "grafik" src = "https://github.com/user-attachments/assets/d8852b4b-21be-446f-a1e7-d3eb794d3505" / >
2022-12-17 12:51:02 +01:00
2025-10-17 13:14:54 +02:00
> [!WARNING]
> Some settings remain `.env` only. Use **[.env.example](../../.env.example#L3-L87)** as the authoritative reference for those variables.
2022-12-17 12:51:02 +01:00
2025-10-17 13:14:54 +02:00
## What you can do with the Admin UI
2022-12-17 12:51:02 +01:00
2025-10-17 13:14:54 +02:00
- Switch funding sources and other server level settings
- Manage who can access LNbits (**[Allowed Users ](#allowed-users )**)
- Promote or demote Admin Users
- Gate extensions to Admins only or disable them globally
- Adjust balances with credit or debit
- Adjust site customization
2022-12-17 12:51:02 +01:00
2025-10-17 13:14:54 +02:00
> [!NOTE]
> See **[Super User](./super_user.md)** for the role and permission differences compared to Admin Users.
2022-12-17 12:51:02 +01:00
2025-11-10 15:08:33 +01:00
## First run and Super User ID
On first start with the Admin UI enabled you will be prompted to generate a Super User.
< img width = "1573" height = "976" alt = "Admin_UI_first_install" src = "https://github.com/user-attachments/assets/05aa634f-06ec-4a4d-a5c6-d90927c90991" / >
If you need to read it from disk later:
```bash
cat /lnbits/data/.super_user
# example
123de4bfdddddbbeb48c8bc8382fe123
```
> [!WARNING]
> For security reasons, Super Users and Admin users must authenticate with credentials (username and password).
After login you will see **Settings** and **Users** in the sidebar between **Wallets** and **Extensions** , plus a role badge in the top left.
< img width = "1353" height = "914" alt = "grafik" src = "https://github.com/user-attachments/assets/06bb4f36-a23a-4058-87ec-60440d322c25" / >
2025-10-17 13:14:54 +02:00
## Enabling or disabling the Admin UI
2022-12-17 12:51:02 +01:00
2025-10-17 13:14:54 +02:00
The Admin UI is enabled by default on new installs. To change the state:
2022-12-17 12:51:02 +01:00
2025-10-17 13:14:54 +02:00
1. Stop LNbits
2022-12-21 21:33:10 +01:00
2025-10-17 13:14:54 +02:00
```bash
sudo systemctl stop lnbits.service
```
2023-10-11 13:46:27 +02:00
2025-10-17 13:14:54 +02:00
2. Edit your `.env`
2022-12-21 21:33:10 +01:00
2025-10-17 13:14:54 +02:00
```
cd ~/lnbits
sudo nano .env
```
2024-04-25 11:13:08 +02:00
2025-10-17 13:14:54 +02:00
3. Set one of
2022-12-21 21:33:10 +01:00
2025-10-17 13:14:54 +02:00
```
# Enable Admin UI
LNBITS_ADMIN_UI=true
2024-04-25 11:13:08 +02:00
2025-10-17 13:14:54 +02:00
# Disable Admin UI
LNBITS_ADMIN_UI=false
```
2024-04-25 11:13:08 +02:00
2025-10-17 13:14:54 +02:00
4. Start LNbits
2024-04-25 11:13:08 +02:00
2025-10-17 13:14:54 +02:00
```
sudo systemctl start lnbits.service
```
> [!NOTE]
> With the Admin UI enabled, config is DB-backed and UI-managed settings ignore .env. Disable it to revert to [.env](../../.env.example) as the single source of truth.
## Reset to defaults
Using `Reset to defaults` in the Admin UI wipes stored settings. After a restart, a new `Super User` is created and the old one is no longer valid.
## Allowed Users
2024-04-25 11:13:08 +02:00
2025-10-17 13:14:54 +02:00
When set **at least one** , LNbits becomes private: only the listed users and Admins can access the frontend. Account creation is disabled automatically. You can also disable account creation explicitly.
< img width = "1889" height = "870" alt = "grafik" src = "https://github.com/user-attachments/assets/89011b75-a267-44ea-971a-1517968b7af5" / >
> [!WARNING]
> Assign your own account first when enabling **Allowed Users** to avoid locking yourself out. If you do get locked out, use your Super User to recover access.
## Additional Guides
- **[Backend Wallets ](./wallets.md )** — Explore options to fund your LNbits instance.
2025-11-10 15:08:33 +01:00
- **[User Roles ](./user_roles.md )** — Overview of existing roles in LNbits.
- **[Funding sources ](./funding-sources-table.md )** — What is available and how to configure each.
2026-07-22 08:13:50 -05:00
- **[Install LNbits ](./installation.md )** — Choose your preferred way to install LNbits.
2025-10-17 13:14:54 +02:00
## Powered by LNbits
LNbits empowers everyone with modular, open source tools for building Bitcoin based systems — fast, free, and extendable.
If you like this project, [send some tip love ](https://demo.lnbits.com/tipjar/DwaUiE4kBX6mUW6pj3X5Kg ) or visit our [Shop ](https://shop.lnbits.de )
2024-04-25 11:13:08 +02:00
2025-11-03 11:34:24 +01:00
[](https://shop.lnbits.com/)
2025-10-17 13:14:54 +02:00
[](https://shop.lnbits.com/)
[](https://my.lnbits.com/login)
[](https://news.lnbits.com/)
[](https://extensions.lnbits.com/)