[Enhancement]: Allow root user auto-creation via environment variables #3016

Open
opened 2026-04-25 00:13:00 +02:00 by adam · 0 comments
Owner

Originally created by @alex-sviridov on GitHub (Sep 28, 2025).

Type of Enhancement

Server Backend

Describe the Feature/Enhancement

If this environment variable is specified, Audiobookshelf automatically creates a superuser with the provided username and password at start, not asking user to provide this information via web-interface.

Why would this be helpful?

This is useful for development and automated deployment (skip this excessive step of root user creation)

Future Implementation (Screenshot)

`
if (devEnv.InitUserName) process.env.INIT_USER_NAME = devEnv.InitUserName

if (devEnv.InitUserPassword) process.env.INIT_USER_PASSWORD = devEnv.InitUserPassword
`

Audiobookshelf Server Version

v2.26.3

Current Implementation (Screenshot)

Image
Originally created by @alex-sviridov on GitHub (Sep 28, 2025). ### Type of Enhancement Server Backend ### Describe the Feature/Enhancement If this environment variable is specified, Audiobookshelf automatically creates a superuser with the provided username and password at start, not asking user to provide this information via web-interface. ### Why would this be helpful? This is useful for development and automated deployment (skip this excessive step of root user creation) ### Future Implementation (Screenshot) ` if (devEnv.InitUserName) process.env.INIT_USER_NAME = devEnv.InitUserName if (devEnv.InitUserPassword) process.env.INIT_USER_PASSWORD = devEnv.InitUserPassword ` ### Audiobookshelf Server Version v2.26.3 ### Current Implementation (Screenshot) <img width="500" height="500" alt="Image" src="https://github.com/user-attachments/assets/c2cdcf8c-a21d-4d26-a8ba-01863c8ad2ef" />
adam added the enhancement label 2026-04-25 00:13:00 +02:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/audiobookshelf#3016