Deploy Audiobookshelf in one click
Your own audiobook and podcast server: listen in the browser or the apps, with progress kept across devices
A self-hosted alternative to Audible and Plex.
What is Audiobookshelf?
Audiobookshelf is an open-source audiobook and podcast server, a self-hosted alternative to Audible for the audiobooks you already own. It streams them to the browser and to its Android and iOS apps, and remembers where you stopped, so a book started on the phone picks up on the laptop. It fetches covers and metadata, has a chapter editor, and can merge a book's many files into a single M4B. Podcasts are searched for and added in the app, and new episodes download on their own.
People run it to keep their library and listening history on a server of their own, with no subscription. Files dropped into a library folder show up without a rescan, and whole folders upload by drag and drop. The catch is that Audiobookshelf comes with no books: it plays the files you bring. Ebooks get only a basic reader, for EPUB, PDF, CBR and CBZ.
Hosting Audiobookshelf on Pethost
- You sign in to Pethost with a passkey, GitHub or Google. No machine yet? You pick a plan, and the link waits until it is ready.
- New project opens at Audiobookshelf. You fill in what it asks for and click Create project: Admin password.
- In a minute or two Audiobookshelf is live at its own address with HTTPS. Its secrets are made at random, and its data is in the nightly backup.
- It is a project like any other: you or your agent can change it, roll it back or restore it.
Questions about Audiobookshelf
Is Audiobookshelf free and open source?
Yes. The server and its Android and iOS apps are all open source under the GPL-3.0 license, so Audiobookshelf is free to run, change and share.
Is there an Audiobookshelf app for iPhone and Android?
Yes, both in beta. The Android app is on Google Play. The iOS app is a TestFlight beta that is currently full, since Apple caps testers at 10,000. The web app also installs as a PWA.
Can several people share one Audiobookshelf server?
Yes. An admin creates accounts of type admin, user or guest, each with its own permissions, and every user's listening progress is kept separately and synced across their devices.
How should I organize folders for Audiobookshelf?
Give every book its own folder, laid out as Author/Series/Book or Author/Book. A book that is a single file may sit in the library's root, and the files' ID3 tags fill in its details.
What is the default Audiobookshelf username and password?
There is none: on a new server, the first visitor creates the root user on the Initial Server Setup page. This template creates root with the admin password you choose at deploy, so that page is never left open.
How much memory and disk does Audiobookshelf need?
Audiobookshelf is light: about 100 MB of memory; the disk is your library, and about a hundred audiobooks fit. On Pethost the Starter plan is enough for it, with room for other apps beside it.
Audiobookshelf Docker Compose file
The template is this compose.yaml and the variables written into the project’s .env as it is created. Pethost runs the file as it is written.
Containers: audiobookshelf (ghcr.io/advplyr/audiobookshelf:2.37.1).
Volumes, in the nightly backup: config, metadata, audiobooks, podcasts.
services:
audiobookshelf:
image: ghcr.io/advplyr/audiobookshelf:2.37.1
restart: unless-stopped
environment:
ADMIN_PASSWORD: ${ADMIN_PASSWORD}
# The first visitor of a new server would create its root user. So, before it answers on its
# own port, it is started on one nobody reaches and given root with the password asked.
command:
- sh
- -c
- |
PORT=8081 node dist-server/index.js &
setup=$$!
node -e '
const init = async () => {
for (let i = 0; i < 180; i++) {
try {
const status = await fetch("http://127.0.0.1:8081/status").then((r) => r.json());
if (status.isInit) return;
const body = JSON.stringify({ newRoot: { username: "root", password: process.env.ADMIN_PASSWORD } });
const answer = await fetch("http://127.0.0.1:8081/init", { method: "POST", headers: { "Content-Type": "application/json" }, body });
if (answer.ok) return;
} catch {}
await new Promise((done) => setTimeout(done, 1000));
}
process.exit(1);
};
init();
' || exit 1
kill $$setup
wait $$setup
exec node dist-server/index.js
volumes:
- config:/config
- metadata:/metadata
- audiobooks:/audiobooks
- podcasts:/podcasts
volumes:
config:
metadata:
audiobooks:
podcasts:
More in Media
- OwncastLive video and chat on a page of your own
- NavidromeA music server that streams your own collection
- RomMA library and in-browser player for your retro games
- KomgaA server and web reader for your comics, manga and ebooks
- LycheeA photo gallery to upload, sort and share your photos
- ImmichYour photos and videos, backed up from your phone, with smart search, faces and albums