Skip to content

Set Up Audiobookshelf on a Linux Server – Your Own Server for Audiobooks and Podcasts

Audiobookshelf on a Linux server: as a One-Click App or with Docker Compose, with root account, audiobook and podcast libraries, apps and backups.

30 November 202613 min read7 Views0 helpful

Introduction

Audiobookshelf is a server for audiobooks and podcasts that you host yourself. Store your audiobooks on your server, and Audiobookshelf organizes them by author and series, downloads covers and descriptions, and plays them in your browser or app. You can subscribe to podcasts directly in Audiobookshelf, and the server can download new episodes automatically. Your listening progress syncs across all your devices: listen in the car on your smartphone, then pick up where you left off on your computer in the evening. Audiobookshelf is open source and free, and it can also manage e-books.

In this guide, we’ll show you two ways to get started: the easy way using your VPS’s One-Click Apps, and manual installation with Docker Compose. Then you’ll upload audiobooks, subscribe to podcasts, connect the app, and set up accounts for family and friends. Only use Audiobookshelf for content you have the rights to, such as audiobooks you purchased without copy protection, public-domain recordings, or freely available podcasts.

When Audiobookshelf on a VPS makes sense

A dedicated audiobook server in a data center is especially useful if:

  • you want your audiobooks available everywhere without keeping a computer or NAS running at home.
  • you listen on multiple devices and want your progress to sync automatically, including bookmarks and statistics.
  • you want to collect podcasts independently of a podcast app. The server downloads new episodes automatically, even when your smartphone is off.
  • you want to share your collection with family or friends. Each person gets their own account and listening progress.

Audiobookshelf is less suitable if your audiobooks are only available from providers that use copy protection, such as the Audible app or Spotify. Audiobookshelf can’t play those files. Audiobookshelf requires little computing power. For a large collection, storage space is the main factor in choosing a plan.

Audiobookshelf or Jellyfin?

Jellyfin is also available as a One-Click App and can play audio files. However, the two programs have different focuses:

AudiobookshelfJellyfin
FocusAudiobooks, podcasts, e-booksMovies, TV shows, music
Listening progressTracked per book and episode, synced across all devices, including offlineDesigned for videos; less convenient for long audiobooks
PodcastsSubscribe and download automaticallyNot built in
Chapters, series, narratorsYesLimited

Audiobookshelf is the better choice for audiobooks and podcasts. Choose Jellyfin for movies and TV shows, or Navidrome, for example, for a music collection. Both can run alongside Audiobookshelf on the same VPS without any problems.

Easy option: Audiobookshelf as a One-Click App

The fastest way to get your own audiobook server is to use the One-Click Apps on your VPS. ZapX sets up your domain and HTTPS for you, so you don’t need the console to install it.

Requirements

  • A Linux VPS (Debian or Ubuntu) with One-Click Apps set up. See Set up One-Click Apps for instructions.
  • At least 256 MB RAM and 1 CPU core; 1 GB RAM and 2 cores are recommended. Audiobookshelf uses around 120 MB when idle.
  • Around 1 GB of storage for the program, plus enough space for your collection. Depending on length and quality, an audiobook often takes up 200 MB to 1 GB.

Install

  1. Open your VPS in the ZapX dashboard and go to the One-Click Apps tab.
  2. Search the App catalog for Audiobookshelf and click Install app.
  3. Leave Use a custom subdomain or zap.cloud enabled and choose an address. With a domain, Audiobookshelf is available over HTTPS; without one, it’s only available over HTTP. HTTPS is strongly recommended for apps.
  4. Under App configuration, find the TIMEZONE field, which has the default value America/Toronto. Enter your time zone, for example, Europe/London. This determines things like podcast download and backup schedules.
  5. Click Queue installation. The app will be online in about a minute.
Warning: Set it up right after installation

Audiobookshelf doesn’t create an account with a password in advance. Until you create the root user, anyone who knows the address can complete this step and take over the server. Open the app using its Access link as soon as it’s installed, then create the root user with a strong password.

First access: Create the root user

The first time you open Audiobookshelf, you’ll see the “Initial Server Setup” page:

  1. Under “Create Root User,” the “Username” field is already set to root. You can keep it or enter a different name.
  2. Enter a strong password in “Password” and “Confirm Password.” The root user has full permissions on the server.
  3. Leave the “Directory Paths” (/config and /metadata) unchanged; they match the One-Click App volumes.
  4. Click “Submit” and sign in with your new account.

Audiobookshelf passwords aren’t listed in the App environment; you set them only in Audiobookshelf itself. Be sure to save the root password in a password manager.

Create audiobook and podcast libraries

The One-Click App includes two media folders, each in its own volume: /audiobooks for audiobooks and /podcasts for podcasts. Create a library for each folder:

  1. After your first login, click “Add your first library.” Later, you can find your libraries by clicking the gear icon in the top-right corner, then going to “Libraries” and clicking “Add Library.”
  2. Under “Media Type,” choose “Books,” enter a name under “Library Name,” such as “Audiobooks,” and enter the path /audiobooks under “Folders.”
  3. Under “Metadata Provider,” choose where Audiobookshelf should get covers and descriptions, such as “Google Books” or “Audible.de.”
  4. Click “Create.”

Then create a second library with “Media Type” set to “Podcasts” and the folder /podcasts. A library can only contain one type of media, so audiobooks and podcasts need separate libraries.

Updates and backups

To check whether an update is available for your installation, open the app’s settings (gear icon), go to App update, and click Check for updates. If there’s a new version, install it by clicking Apply update. Accounts, progress, and media files are preserved because they’re stored in the app’s volumes. Audiobookshelf itself displays an “Update” notice in the bottom-left corner when a newer version is available. For the One-Click App, however, install updates only through App update, not from that notice.

Audiobookshelf has its own backup feature: click the gear icon, go to “Backups,” then click “Create Backup” to create a backup or configure automatic backups. A backup contains users, listening progress, libraries, settings, and covers, but not your media files. Download the backup and keep a separate copy of your audiobooks somewhere else.

You can change the app’s address under App actions. You can also stop, reinstall, or uninstall the app there. When uninstalling, you can choose whether to delete the data volumes too. Back up your audiobooks first.

Manual installation

The rest of this guide covers manual installation from the console using Docker Compose. This is useful, for example, if you want to integrate Audiobookshelf into an existing server environment or store your audiobooks in custom folders. This guide is based on the official Audiobookshelf Docker Compose guide.

Requirements

  • A Linux server running Debian or Ubuntu that you can access over SSH.
  • Docker with the Compose plugin. See our guide to Set up Docker for instructions.
  • A domain or subdomain pointing to your server’s IP address with an A record (e.g., abs.example.com) for HTTPS access.
HardwareMinimumRecommended
RAM256 MB1 GB
CPU1 core2 cores
Storage1 GB for the program10 GB plus your collection

You’ll need additional storage for audiobooks and downloaded podcast episodes.

Configure the firewall

Only SSH and the HTTPS reverse proxy need to be accessible from the internet. With ufw, the commands are:

Code
ufw allow OpenSSH
ufw allow 80/tcp
ufw allow 443/tcp
ufw enable

Don’t open port 13378, which Audiobookshelf uses in the Compose file below. See Firewall Management on Linux for more information.

Warning: Docker bypasses ufw

When Docker publishes a port on all network interfaces, it adds its rules outside of ufw. This would make the port accessible from the internet despite the firewall. Bind port 13378 to 127.0.0.1, as shown in the next step.

Install with Docker Compose

Create a directory with subfolders, then create a compose.yaml file inside it:

Code
mkdir -p /opt/audiobookshelf/audiobooks /opt/audiobookshelf/podcasts /opt/audiobookshelf/config /opt/audiobookshelf/metadata
cd /opt/audiobookshelf
nano compose.yaml

Add this content:

Code
services:
  audiobookshelf:
    image: ghcr.io/advplyr/audiobookshelf:latest
    container_name: audiobookshelf
    environment:
      - TZ=Europe/Berlin
    volumes:
      - ./audiobooks:/audiobooks
      - ./podcasts:/podcasts
      - ./config:/config
      - ./metadata:/metadata
    ports:
      - 127.0.0.1:13378:80
    restart: unless-stopped

The key lines:

  • image: The official Audiobookshelf image. The latest tag always pulls the newest version.
  • TZ: The time zone, used for scheduled podcast downloads and backups, among other things.
  • ./audiobooks and ./podcasts: Your media. Add other folders, such as one for e-books, using the same pattern. The folders must not be nested inside each other.
  • ./config: The database containing users, libraries, progress, and settings. Audiobookshelf requires this folder to be on the same server, not on a network drive.
  • ./metadata: Covers, cache, logs, and built-in backups.
  • ports: Audiobookshelf is only accessible on the server itself through port 13378. External access will go through the reverse proxy later.

Start Audiobookshelf from the same directory:

Code
docker compose up -d

Check whether the container is running with docker compose ps, and view the logs with docker compose logs -f.

First access

Audiobookshelf isn’t protected until you create the root user. Set it up before making it accessible to the public. The easiest way is to use an SSH tunnel from your own computer:

Code
ssh -L 13378:127.0.0.1:13378 root@SERVER_IP

With the connection active, open http://localhost:13378 in your browser and create the root user as described above under “First access: Create the root user.” Then create libraries using the /audiobooks and /podcasts folders.

Access over HTTPS using a reverse proxy

For everyday use and the apps, make Audiobookshelf available over HTTPS using a domain. For the basics, see Set up an nginx reverse proxy and Create an SSL certificate (Let's Encrypt). Here’s an nginx server block:

Code
server {
    listen 80;
    server_name abs.example.com;

    client_max_body_size 0;

    location / {
        proxy_pass http://127.0.0.1:13378;
        proxy_http_version 1.1;
        proxy_set_header Upgrade $http_upgrade;
        proxy_set_header Connection "upgrade";
        proxy_set_header Host $host;
        proxy_set_header X-Real-IP $remote_addr;
        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
        proxy_set_header X-Forwarded-Proto $scheme;
        proxy_redirect http:// $scheme://;
    }
}

The Upgrade and Connection lines forward the WebSocket connection that Audiobookshelf uses to report progress live to browsers and apps. client_max_body_size 0 removes nginx’s size limit. Without this line, uploads through the web interface fail at 1 MB. Then get the certificate with certbot --nginx -d abs.example.com. Certbot adds HTTPS and HTTP redirection to the block.

Tip: Use Caddy instead of nginx

Caddy takes less setup: it obtains the certificate itself, forwards WebSockets automatically, and doesn’t limit uploads. Just add abs.example.com { reverse_proxy 127.0.0.1:13378 } to the Caddyfile.

Back up your data

The built-in backup under “Backups” includes the database, progress, settings, and covers, and is saved to metadata/backups. For a full backup, briefly stop Audiobookshelf and archive the config and metadata folders:

Code
cd /opt/audiobookshelf
docker compose stop
tar -czf /root/audiobookshelf-$(date +%F).tar.gz config metadata
docker compose start

None of these backups include your audiobooks or podcast episodes. Regularly copy your media folders to another system, for example, using rsync:

Code
rsync -a /opt/audiobookshelf/audiobooks/ BACKUP_USER@BACKUP_HOST:/backup/audiobooks/

Update Audiobookshelf

Create a backup first, then pull the new version:

Code
cd /opt/audiobookshelf
docker compose pull
docker compose up -d

Your libraries, accounts, and progress will be preserved because they’re stored in the config folder. Remove old images afterward with docker image prune. If you want to manage updates yourself, replace latest with a fixed version, such as 2.37.2, and change it when needed. See the Audiobookshelf releases for details on what’s changed.

Audiobooks, podcasts, and apps

Whether you use the One-Click App or install manually, the process is the same from here on. Only the paths to the media folders differ.

Upload audiobooks: web interface or SFTP

For individual audiobooks, the web interface is all you need. Click the upload icon at the top (up arrow), choose the audiobook library under “Library” and “Folder,” then drag files or entire folders into the box, or click “Choose files” or “Choose a folder.” Check the “Title” and “Author,” then click “Upload.” Audiobookshelf stores the files in the appropriate folder. Only admins and accounts with the “Can Upload” permission can upload files.

For a large collection, SFTP is more convenient. See Connect using SFTP for instructions.

  • One-Click App: The media folders are in Docker volumes whose names end with _audiobookshelf-audiobooks and _audiobookshelf-podcasts. Find the exact name with docker volume ls | grep audiobookshelf. Upload files as root to the volume’s _data subfolder. For audiobooks, that’s /var/lib/docker/volumes/<Name of the volume>/_data.
  • Manual installation: Upload audiobooks to /opt/audiobookshelf/audiobooks.

Audiobookshelf runs in the container as root, so it can also read and edit files you upload as root. Audiobookshelf usually detects new files automatically because it monitors the folders. If a book is missing, click “Scan” next to the library under “Libraries.”

Name your folders correctly

Audiobookshelf identifies the author, series, and title from the folder structure. Put each audiobook in its own folder under a folder for the author, optionally with a folder for the series in between:

Code
/audiobooks/Author Name/Book Title/Chapter 01.mp3
/audiobooks/Author Name/Series Name/Book 1 - Book Title/Book Title.m4b

If there are several files in a book’s folder, Audiobookshelf plays them in order as one audiobook. A single .m4b file with chapter markers is the clearest option. Supported formats include MP3, M4B, M4A, FLAC, OGG, and Opus, as well as e-books in EPUB or PDF format. See the guide to folder structure for more examples.

If the cover or description is incorrect, open the book, click the pencil icon, and find the correct entry in the “Match” tab.

Subscribe to podcasts

Switch to the podcast library in the top-left corner and click “Add” on the left. Enter the podcast’s name or RSS feed URL, then click “Submit.” Import subscriptions from another podcast app with “Upload OPML File.”

Click the podcast you found, check the details, and confirm with “Submit.” To get older episodes, open the podcast page and click “Find Episodes.” Select the episodes you want and start the download. With “Auto Download Episodes,” the server automatically downloads new episodes. This option is off by default. In the podcast settings, choose how many episodes Audiobookshelf should keep so you don’t run out of storage.

Connect apps and sync listening progress

You can listen directly in your browser using your installation’s address. The official app is available for Android in the Google Play Store. The iOS app is currently available only as a TestFlight beta, and Audiobookshelf says spots are often full. Check Mobile Apps for the latest information. On iPhone, you can also use the web interface in Safari.

To connect the app:

  1. Enter your installation’s address as the server address in the app, for example, https://abs.example.com. The app can’t automatically find the server.
  2. Sign in with your username and password.
  3. Choose a library and start an audiobook.

Your progress syncs automatically with the server. If you download an audiobook in the app, you can listen to it offline too. Your progress will sync as soon as the device is back online.

Add users for family and friends

As an admin, add accounts by clicking the gear icon, going to “Users,” and selecting “Add User.” Under “Account Type,” choose “Guest,” “User,” or “Admin.” Under “Permissions,” you can set options such as:

  • “Can Download”: Can the person download audiobooks in the app to listen on the go?
  • “Can Upload” and “Can Delete”: Can they upload or delete files? Both are off by default.
  • “Can Access All Libraries”: If you turn this off, you can select specific libraries, such as just the children’s audiobooks.
  • “Can Access Explicit Content”: Content marked as explicit stays hidden unless this permission is enabled.

Each account has its own progress, bookmarks, and statistics. Give admin permissions only to people who will help you manage the server.

Audiobookshelf limitations

  • No copy protection: Audiobooks with DRM, such as those from Audible or streaming subscriptions, won’t play in Audiobookshelf. It’s designed for files without copy protection.
  • Storage space: Audiobooks and podcast episodes are stored on the server. With the One-Click App, more storage requires a larger VPS plan.
  • iOS app is in beta: The official iOS app is only available through TestFlight. If the beta is full, you can use the web interface in your browser.
  • Fixed path: Under a subfolder of a domain, Audiobookshelf only works with the /audiobookshelf path. Using a dedicated subdomain is easier.

Conclusion

You’ve set up Audiobookshelf on your server, secured the root user, created libraries for audiobooks and podcasts, and learned how to upload files, subscribe to podcasts, connect the app, and back up your data. Now you can pick up your audiobooks on any device without manually syncing your progress.

Prefer not to manage Docker yourself? Choose the easy option and install it as a One-Click App, as described above under “Easy option: Audiobookshelf as a One-Click App.” You can set up the domain and HTTPS and install updates with just a few clicks.

For more information, visit the Audiobookshelf website and the Audiobookshelf documentation.

Free tools

Related tools for servers and developers

View all

FAQ

Frequently asked questions

For most people, the One-Click App is the easier option: ZapX sets up your domain, HTTPS, and updates, while your audiobooks and podcasts are stored in separate volumes. Manual installation with Docker Compose is useful if you want to integrate Audiobookshelf into an existing server environment, store media in custom folders, or manage the version and reverse proxy yourself.
No. Audiobookshelf can’t play audiobooks with copy protection (DRM). It’s designed for files without copy protection, such as DRM-free audiobooks you purchased, public-domain recordings, or freely available podcasts. Audiobookshelf can, however, get covers and descriptions from Audible for your own files.
The official app is available for Android in the Google Play Store. The iOS app is currently only available as a TestFlight beta, and spots are often full. On iPhone, you can use the web interface in Safari instead. In the app, enter your server’s address, such as https://abs.example.com, and sign in with your account.

Feedback

Was this article helpful?

Your feedback helps us prioritize and improve content.

0 of 0 people found this article helpful.

Personal support

Need more help than the guide provides?

Our ZAP-Hosting support team knows your product — briefly describe your issue and we'll help you personally.

Zappy knows this guide and answers you right in the chat.