Automated Audiobook Collection Management
Listenarr is a fast, feature-rich, cross-platform audiobook management server. Built with a focus on being a complete solution for all your audiobook downloading needs. Set up your own server and get ready to streamline your audiobook listening!
What Listenarr Provides
- Serve up Audiobooks from multiple sources (torrents, NZBs) with support for various formats (MP3, M4A, M4B, FLAC, AAC, OGG, OPUS)
- First-class responsive web interface that works great on any device (phone, tablet, desktop)
- Rich metadata support with automatic enrichment from Audible and Amazon
- External API integration for searching across multiple torrent and NZB indexers simultaneously
- Download management with support for popular clients (qBittorrent, Transmission, SABnzbd, NZBGet)
- Real-time monitoring of download progress and status
- Intelligent file organization with customizable naming patterns
- Full localization support Soon™️
To see what's coming up, check out our Roadmap! If you have a suggestion or feature request, please submit them in Discussions
Notice
Warning
Listenarr is being actively developed and should be considered beta software. There may be security exploits despite best efforts. Expose this software to the internet at your own risk. The platform may be subject to changes as it is being built out. You may experience data loss and need to restart. The Listenarr team strives to avoid any data loss, but please maintain backups of important data.
Disclaimer
This app is coded with AI assistance. I started this because my wife (an avid audiobook listener) was reading through multiple series quickly and I wanted an automated way for her to request, download, and listen to new audiobooks. I am a front-end developer and I don't know C#, so I took this as an opportunity to learn and started this project.
Note
This is just a fun a side project that solved a need for me; it is not my main priority. I will choose my work, family, and mental health before this project.
Support
Join our community on Discord for help, announcements, and discussion: https://discord.gg/CwZ2Sqp9NF
Setup
The easiest way to get started is to use Docker (recommended for production), pre-built executables, or npm scripts:
Docker (Recommended for Production)
Container images: GHCR is the preferred registry for Listenarr. Use ghcr.io/listenarrs/listenarr:<tag> for the latest builds. A Docker Hub mirror (docker.io/therobbiedavis/listenarr:<tag>) is still published for backwards compatibility.
docker run -d \
--name listenarr \
-p 4545:4545 \
## OPTIONAL: Set container runtime user/group and file creation mask
-e PUID=1000 \
-e PGID=1000 \
-e UMASK=022 \
## OPTIONAL: Used by Discord Bot
-e LISTENARR_PUBLIC_URL=https://your-domain.com \
-v listenarr_data:/app/config \
-v /path/to/audiobooks:/audiobooks #optional \
-v /path/to/downloadclient-downloads:/downloads #optional \
ghcr.io/listenarrs/listenarr:canary
PUID and PGID control the user/group the container runs as. GID is also accepted as an alias for PGID for compatibility with other container stacks. UMASK controls default file permissions for newly created files and folders, and legacy UMASK_SET is also accepted as a compatibility alias. If PGID is omitted, it defaults to the same value as PUID. If neither UMASK nor UMASK_SET is provided, it defaults to 022.
Service will be available at:
Available Tags (GHCR + Docker Hub mirror):
latest / stable - Latest stable release (available soon)
canary - Latest canary build (pre-release)
canary-X.Y.Z - Specific canary version
beta - Latest beta build (pre-release)
beta-X.Y.Z - Specific beta version
X.Y.Z - Specific release version
Docker Compose (Recommended):
version: '3.8'
services:
listenarr:
image: ghcr.io/listenarrs/listenarr:canary
ports:
- "4545:4545"
environment:
- PUID=1000
- PGID=1000
- UMASK=022
- LISTENARR_PUBLIC_URL=https://your-domain.com ## OPTIONAL: Used by Discord Bot
volumes:
- listenarr_data:/app/config
- /path/to/audiobooks:/audiobooks #optional
- /path/to/downloadclient-downloads:/downloads #optional
restart: unless-stopped
# For Docker Hub, replace the image with docker.io/therobbiedavis/listenarr:canary
volumes:
listenarr_data:
Pre-built Executables
Download the latest release from GitHub Releases and extract the archive for your platform.
Windows
cd .\listenarr-win-x64
.\Listenarr.Api.exe
Linux
cd ./listenarr-linux-x64
chmod +x Listenarr.Api
./Listenarr.Api
macOS
cd ./listenarr-osx-x64 # or osx-arm64 for Apple Silicon
chmod +x Listenarr.Api
./Listenarr.Api
Prerequisites:
- Node.js 26.x (26.12.1 or later) (required for Discord bot functionality)
- Set environment variable:
LISTENARR_PUBLIC_URL=https://your-domain.com
Service will be available at:
Note:
- Pre-built executables are self-contained and include all dependencies
- Override port with:
--urls "http://localhost:5656"
- For production, set
LISTENARR_PUBLIC_URL to your actual domain
Production Deployment (Advanced)
For custom deployments or when you need to build from source:
Prerequisites:
- .NET 10.0 Runtime or later (for framework-dependent deployments)
- Node.js 26.x (26.12.1 or later) (for Discord bot)
- Set
LISTENARR_PUBLIC_URL environment variable to your production domain
Option 1: Use Self-Contained Executables (Recommended)
# Build self-contained executable for your platform
dotnet publish listenarr.api/Listenarr.Api.csproj -c Release -r win-x64 --self-contained
cd ./bin/Release/net10.0/win-x64/publish
./Listenarr.Api.exe
Option 2: Framework-Dependent Deployment
# Requires .NET Runtime installed on target system
dotnet publish listenarr.api/Listenarr.Api.csproj -c Release
cd ./bin/Release/net10.0/publish
dotnet Listenarr.Api.dll
IIS Deployment (Windows):
- Install ASP.NET Core Hosting Bundle
- Copy published files to IIS site directory
- Set environment variable in IIS Manager or web.config
- Ensure Node.js is installed on the server
Service will be available at:
Manual Setup
If you prefer to run the services separately:
Prerequisites:
- .NET 10.0 SDK or later
- Node.js 26.x (26.12.1 or later)
Install dependencies:
npm run install:all # Install frontend dependencies
Start development servers:
npm run dev # Start both API and Web (recommended)
# OR run separately:
npm run dev:api # Start only backend API
npm run dev:web # Start only frontend web
Services will be available at:
Discord bot (optional)
Listenarr includes a small reference Discord bot (in tools/discord-bot) that registers a slash command and forwards requests to the running Listenarr API. The bot is optional — the preferred integration is configuring the Discord settings from the Listenarr UI so the server manages the registration for you. Use the steps below for local development or to run the bot separately.
Prerequisites:
- A running Listenarr instance (see steps above)
- Node.js 26.x (26.12.1 or later) and npm
- A Discord application with a bot token and application ID
Quick start (development):
- Create a Discord application and bot at https://discord.com/developers/applications. Copy the Application (client) ID and the Bot Token.
- Invite the bot to your guild with the following OAuth2 URL (replace <APP_ID>):
https://discord.com/oauth2/authorize?client_id=<APP_ID>&scope=bot%20applications.commands&permissions=27648
The permissions=27648 value requests the View Channels, Send Messages, Manage Messages, and Embed Links permissions which is the bare minimum permissions needed for the bot to function.
- Configure Listenarr (recommended):
- Open the Listenarr web UI and go to Settings → Integrations → Discord (or the Discord section in Configuration).
- Set the Discord Application ID to the Application ID you copied.
- Set the Discord Bot Token to the bot token you copied.
- Optionally set Discord Guild ID and Discord Channel ID so the bot registers commands in a specific guild and limits responses to one channel.
- Enable the Discord integration and Save.
When the Listenarr server has the bot token and application ID saved, the server will register the slash command and manage the bot. The tools/discord-bot helper is provided for local development or troubleshooting.
Run the bot standalone (development):
cd tools/discord-bot
npm install
# Point the helper at your running Listenarr instance (defaults to http://localhost:4545)
LISTENARR_URL=http://localhost:4545 npm start
Windows (PowerShell):
cd tools\discord-bot
npm install
$env:LISTENARR_URL = 'http://localhost:4545'
npm start
Notes and troubleshooting:
- The helper bot reads settings from the Listenarr API; configuring the settings in the Listenarr UI is the recommended path.
- For antiforgery (CSRF) support the helper tries to use
fetch-cookie + tough-cookie if installed — install them to avoid occasional CSRF errors:
npm install fetch-cookie tough-cookie
- If you see permissions errors when deleting messages, ensure the bot has Manage Messages in the configured channel or invite it again with the proper permissions.
- The helper borrows ephemeral replies (application interaction tokens) to remove ephemeral messages; this is best-effort and may not work across restarts.
Auto-persist Listenarr URL
To make the helper easier to run, it will automatically persist the Listenarr base URL when first started interactively. Order of precedence:
LISTENARR_URL environment variable (explicit)
tools/discord-bot/.env file with LISTENARR_URL= (created automatically on first run)
- Interactive prompt on first run (saved to
.env)
- Fallback
http://localhost:4545
This means you can run the helper once and enter your public domain (for example https://listenarr.example.com) when prompted. The URL is saved to tools/discord-bot/.env so you don't need to export environment variables on subsequent runs.
CI/CD
Listenarr uses GitHub Actions for automated building and deployment:
- Canary Builds (on
canary pushes): Builds self-contained executables (Linux x64, Windows x64), creates a GitHub prerelease tagged v{VERSION}-canary, and publishes container images tagged canary / canary-X.Y.Z to GHCR & Docker Hub.