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.
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.
Jellyfin is also available as a One-Click App and can play audio files. However, the two programs have different focuses:
| Audiobookshelf | Jellyfin | |
|---|---|---|
| Focus | Audiobooks, podcasts, e-books | Movies, TV shows, music |
| Listening progress | Tracked per book and episode, synced across all devices, including offline | Designed for videos; less convenient for long audiobooks |
| Podcasts | Subscribe and download automatically | Not built in |
| Chapters, series, narrators | Yes | Limited |
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.
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.
- 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.
- Open your VPS in the ZapX dashboard and go to the One-Click Apps tab.
- Search the App catalog for Audiobookshelf and click Install app.
- 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.
- Under App configuration, find the
TIMEZONEfield, which has the default valueAmerica/Toronto. Enter your time zone, for example,Europe/London. This determines things like podcast download and backup schedules. - Click Queue installation. The app will be online in about a minute.
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.
The first time you open Audiobookshelf, you’ll see the “Initial Server Setup” page:
- Under “Create Root User,” the “Username” field is already set to
root. You can keep it or enter a different name. - Enter a strong password in “Password” and “Confirm Password.” The root user has full permissions on the server.
- Leave the “Directory Paths” (
/configand/metadata) unchanged; they match the One-Click App volumes. - 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.
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:
- 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.”
- Under “Media Type,” choose “Books,” enter a name under “Library Name,” such as “Audiobooks,” and enter the path
/audiobooksunder “Folders.” - Under “Metadata Provider,” choose where Audiobookshelf should get covers and descriptions, such as “Google Books” or “Audible.de.”
- 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.
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.
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.
- 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.
| Hardware | Minimum | Recommended |
|---|---|---|
| RAM | 256 MB | 1 GB |
| CPU | 1 core | 2 cores |
| Storage | 1 GB for the program | 10 GB plus your collection |
You’ll need additional storage for audiobooks and downloaded podcast episodes.
Only SSH and the HTTPS reverse proxy need to be accessible from the internet. With ufw, the commands are:
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.
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.
Create a directory with subfolders, then create a compose.yaml file inside it:
mkdir -p /opt/audiobookshelf/audiobooks /opt/audiobookshelf/podcasts /opt/audiobookshelf/config /opt/audiobookshelf/metadata
cd /opt/audiobookshelf
nano compose.yaml
Add this content:
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. Thelatesttag always pulls the newest version.TZ: The time zone, used for scheduled podcast downloads and backups, among other things../audiobooksand./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 port13378. External access will go through the reverse proxy later.
Start Audiobookshelf from the same directory:
docker compose up -d
Check whether the container is running with docker compose ps, and view the logs with docker compose logs -f.
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:
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.
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:
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.
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.
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:
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:
rsync -a /opt/audiobookshelf/audiobooks/ BACKUP_USER@BACKUP_HOST:/backup/audiobooks/
Create a backup first, then pull the new version:
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.
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.
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-audiobooksand_audiobookshelf-podcasts. Find the exact name withdocker volume ls | grep audiobookshelf. Upload files asrootto the volume’s_datasubfolder. 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.”
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:
/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.
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.
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:
- 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. - Sign in with your username and password.
- 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.
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.
- 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
/audiobookshelfpath. Using a dedicated subdomain is easier.
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.
