Audiobookshelf apps¶
Bookx can speak the protocol of the Audiobookshelf server, so the many apps made for it can play the audiobooks of your Bookx library on a phone, tablet or e-reader and keep your place in step with the Bookx player. Bookx is not Audiobookshelf: it has no web interface of its own for this, no admin screens and nothing that changes a book. The apps can browse, stream, download and remember where you stopped, and that is all.
It is off until you switch it on and only your imported audiobooks (Add Audiobook, or bookx-cli library add) are
offered, not e-books.
Switch it on¶
- Open the main menu → Preferences → Sync. Find the group Audiobookshelf-compatible server.
- Switch on Audiobookshelf-compatible server. Bookx starts its library server, opens it to your network and makes a library password if you have none.
- The group now shows what the app asks for. Type these three things in the app:
| The app asks for | In Bookx it is the row | Example |
|---|---|---|
| Server address (URL) | Address for the app (copy button, QR code button) | http://192.168.1.20:8080 |
| User name | User name (copy button) | bookx |
| Password | Password: Show (opens a small window with it), Copy, Change (jumps to the field under Advanced) | the 12 characters Bookx made |
The QR code only holds the address: apps do not read a user name or password from it.
4. Read Connection check: it says whether the server answers at that address (Bookx asks it for its own /ping). Last app
login says whether an app has tried to log in, and whether it was refused.
5. Optional: to give someone their own login, add an account under Advanced → Library server accounts. The group lists
them under Other logins; each account sees only the collections you chose. Accounts and apps at the bottom opens the
list of logged-in apps, with Log out per app and Log out everywhere per account, and the window starts with How to log in,
the same three rows.

Preferences → Sync after switching it on: the switch, the address for the app (with a copy button and a QR code) and Accounts and apps. The note under the group is the warning about plain http on your network.
The address and the QR code¶
The address is the one thing every app asks for. It works from other devices on the same network. Copy address puts it on the clipboard; QR code shows it as a code you can scan from a phone, so you do not have to type it.

The QR code of the address (here http://192.168.1.20:8080, the example address used in all pictures). It holds the address only, not the password.
For use over the internet, put Bookx behind a reverse proxy with HTTPS (Reverse proxy); do not open the port to the internet as it is.
Accounts and apps¶
Accounts and apps lists the logins of the apps (which app, when it was last used) and lets you log one out, or an account out of every app.

Under Apps that are logged in: one line per app (as it names itself), the account, and when it was last used.

The window Accounts and apps: the accounts that may log in, and under Apps that are logged in one line per app with a Log out button. The three apps here logged in with real requests to the server; no phone app was run to make the picture.
An older app: a login that never expires¶
Some apps cannot renew a login (the KOReader audiobook plugin is one). For them switch Allow older apps on for the account and press Make token: Bookx shows a login that never expires once, and keeps only a fingerprint of it. It then appears in the list of apps as never expires and ends with Log out like any other.

The token is shown once. This one belongs to the picture's test library and was never used.

After Make token the list has a line for the older app.
More accounts, HTTPS and the port¶
Under Advanced (the same Sync page) are the settings of the library server that the apps use: the port, Use HTTPS, the library password and Library server accounts. Turn on HTTPS if your app accepts the certificate; a self-signed one has to be installed on the phone first.

Advanced: the library password (masked, with a button to show it), the port (the firewall must allow it) and Use HTTPS.
Library server accounts gives someone their own login: the account name and password work in the apps, and the account sees only the collections (tags) you chose.

Adding an account: a name, a password (typed twice) and the collections it may see. Here kids sees only books tagged adventure.

The account is listed with what it sees. Changes restart the running server.
What each app needs¶
| App | Where to type it | The fields it shows | Notes |
|---|---|---|---|
| Voice (Android) | Connect Audiobookshelf | Server address, then Continue, then Username, Password and Sign in | Plays, downloads, remembers your place and bookmarks. Wrong password: “That username or password isn't right.” Wrong address: “Voice can't reach an Audiobookshelf server there. Are you on the right network?” |
| Audiobookshelf (official, Android and iOS) | Connect to Server | Server address, Username, Password, Submit | Plays and downloads. The cloud icon says there is no live connection, and the bookmark button of the player is hidden until the live connection is supported. |
| Lissen (Android) | Connect to server | Server URL, Login (this is the user name), Password, Connect | Plays, keeps the place. |
| KOReader audiobook plugin | its menu Audiobookshelf Server URL, then Log in to … | server URL, Username, Password | Needs Allow older apps for the account (see below). |
| Music Assistant, Home Assistant | the Audiobookshelf provider of Music Assistant | server URL, user name, password | Browses and plays through the same calls. |
The field names above are the ones in the source of each app (Voice, the official app, Lissen and the KOReader plugin); none of them was run on a phone here, so a label may differ on your version. Music Assistant's field labels were not checked.
Older apps. The KOReader plugin cannot renew a login, so it needs the login that never expires: in Accounts and apps switch Allow older apps (a login that never expires) on for the account, then log in from the plugin.

Diagram: the apps talk to Bookx over your network and Bookx reads your audiobooks. The apps themselves are not shown: Voice, the official app and Lissen have not been run here, so there is no honest screenshot of them.
The app asks for a user name and password¶
That is expected. Use:
- User name
bookxand the library password (the Password row of the group, Show reveals it), or - the name and password of an account made under Advanced → Library server accounts.
The Audiobookshelf password of another server does not work here, and neither does your Bookx sync account of KOReader.

Show opens the password in a small window (this is the made-up password of the test library). Copy copies it without showing it.
If an app asks for the password again and again, even right after you typed it: that was a fault of Bookx with the official
Audiobookshelf app (it took its stored login for an old-style one), fixed in the version after 0.10.0-beta.1. If it still does, copy the diagnostics (main menu → About →
Copy Diagnostics): the area Audiobookshelf-compatible server has one line per refused request with a short reason such as expired-token,
ended-login or refresh-token-used-twice-login-ended, and nothing that identifies you.
If the app says the login is wrong, look at Last app login in the group: it says the app tried and was refused, which means the
address is right and the name or password is not. Names are exact (bookx, not Bookx). If Last app login says no app has
tried, the app never reached Bookx: check the address.
If the app cannot connect¶
- Address: it must be the one shown in Address for the app, with
http://(orhttps://when HTTPS is on) and the port. Android apps need the port when it is not 80 or 443. The phone must be on the same network (Wi-Fi) as this computer, not on mobile data or a guest Wi-Fi. - Test it in the phone's browser: open
http://<address>/ping. The page must show{"success":true}. If it does not, the phone cannot reach Bookx, and no app setting will help. - Firewall: many Linux distributions, Fedora among them, block incoming connections to port 8080 by default. If Connection
check says the server answers but the phone cannot reach it, Bookx shows a note when it sees firewalld running without
the port. Allow it with
sudo firewall-cmd --add-port=8080/tcp(until the next restart; add--permanentand runsudo firewall-cmd --reloadto keep it). - Server version: Voice needs an Audiobookshelf server of version 2.26 or newer; Bookx answers as 2.38.0.
- HTTPS: an app that tries
https://on a plain-http Bookx fails. Typehttp://explicitly.

Connection check says whether the server answers at the address shown; Check now asks again. Last app login says whether an app tried and was refused.
Your place is shared¶
The login bookx is you at this computer: its place in every audiobook is the same one the Bookx player uses. Stop in the
app and Bookx continues from there, and the other way round. Other accounts have their own places. When two devices
disagree, the newer write wins; a recording the app uploaded later never moves your place back if you listened
somewhere else since. A book that is finished stays finished until you move away from the end.

Diagram: one place, two players.
Audiobooks linked to e-books¶
An audiobook you linked to an e-book (Bookx shows the two together) is not shown to the apps by default, because only the
audiobooks Bookx imported are. To include them, switch on Audiobooks linked to e-books in the Audiobookshelf group of
Preferences → Sync (or start bookx-cli serve --abs --abs-linked). The server restarts to apply it. Then, for such a book:
- the app sees the audiobook and the e-book file (
ebookFormat, and the file under files), and can download the e-book (the KOReader plugin audiobookshelfbridge lists the books that have an e-book and downloads them to the reader); - the place in the e-book and the place in the audio are one place: an app that reports where the reader is in the e-book
(
ebookProgress) moves your listening place, and the other way round, using the same matching of chapter titles as Continue in audiobook in Bookx. The reader's own location text (an EPUB CFI) is given back to the app that sent it, as long as you have not moved on, and is kept in the library.

The switch is off until you turn it on.

Diagram: the e-book and the audiobook are one place.
Only EPUB, PDF, MOBI, AZW3, CBZ and CBR files are offered as e-books. A file that is not an EPUB is matched by the share of the book only.
Security¶
- Off by default, and only while the library server runs.
- Apps log in with a password and then use short-lived tokens that Bookx stores only as a fingerprint. A reused token ends that login. Log out everywhere ends all of an account's logins.
- Older apps may get a login that never expires, only for accounts you allow and only on request; it is shown once.
- The Android apps accept plain
httpon your network. Anybody on that network can then read the password and the audio. Bookx says so under the switch. Turn on HTTPS under Advanced if your app accepts the certificate (a self-signed one has to be installed on the phone first), or use a reverse proxy with a real certificate. - Apps can read the audio of the books their account may see and write their own place. They cannot change, upload or delete books or files.

The Privacy page lists the server among everything Bookx can connect to, and says that it is off until you switch it on.
From the command line¶
On the command line the same server is bookx-cli serve --abs; see Command line. It refuses to listen
beyond this computer without HTTPS unless you pass --allow-cleartext.

bookx-cli serve --abs (real output; the server runs until you press Ctrl+C).
Limits¶
- Live updates between devices (Socket.IO) are minimal: an app that listens gets your place and bookmarks when another device changes them. There is no web interface, no podcasts, no transcoding or HLS: the original files are always sent, so a device must be able to play them. Opus files are listed but some devices cannot play them.
- Series show up as in Audiobookshelf (from the series name and number of each book), collections are your Bookx tags (the tag Audiobook itself is left out), and the home screen has Continue Series and Recent Series. Playlists you make in an app are kept in your library, per account (the book list of a playlist follows the order you gave it). Cover images are sent as they are, not resized, and without a login: like Audiobookshelf, Bookx gives the cover of an item to anyone who has its (hard to guess) id, because several apps ask for covers without a token.
- The apps' statistics screens show what the account played (the newest 5000 sessions), by book, day and weekday; Bookx keeps no more of an app than its name.
- Audiobooks linked to e-books are only shown when you switch on Audiobooks linked to e-books (above).
- If you move or replace the audio files after Bookx scanned them, the app gets not found for them until you open the book in Bookx again.

Diagram: the limits at a glance.
What has been checked¶
The protocol was checked against recorded answers of an Audiobookshelf 2.38.0 server (the shapes of the login, the libraries, series,
collections, playlists, statistics, e-books and the live events) and against three third-party clients whose own code runs unchanged: the Python
library behind Music Assistant and Home Assistant, the client module of the KOReader audiobook plugin, and the e-book plugin audiobookshelfbridge of KOReader (it
signs in, lists the books that have an e-book and downloads one). The first report from phones (Android, apps from F-Droid): Lissen worked, with covers and with
its progress arriving in Bookx; Voice, the Audiobookshelf app and Storii logged in and listed and played the audiobooks but showed no covers
(Bookx asked them for a login they do not send for covers), and the Audiobookshelf app asked for the password at every start. Both are fixed
in the version after 0.10.0-beta.1 and covered by tests that replay what these apps send; they have not been confirmed on a phone since. Vaani does not start on a phone whose
system web view is too old, which is not something Bookx can change. The list that will be done on phones before the next release is the phone checklist, and
the compatibility table has every client and route. See also
Troubleshooting if an app cannot connect: check the address (with http:// and the port), the user
name bookx, that Preferences → Sync shows the server on, and the firewall.

The simplest check you can run yourself: ask the running server whether it is there. /ping answers {"success":true}.