ARR Integration
Since: 0.18.0
User-facing guide to integrating Sonarr, Radarr, and Bazarr with Phlix for automated media management.
Overview
ARR applications (Sonarr, Radarr, Prowlarr, Bazarr) monitor download clients and automatically add new content to your library. Phlix acts as a client for these applications, serving the media they manage.
| Application | Manages | Connects to Phlix as |
|---|---|---|
| Sonarr | TV series | Media server (movie library or TV library) |
| Radarr | Movies | Media server |
| Bazarr | Subtitles for Sonarr/Radarr | Subtitle provider |
| Prowlarr | Indexer management | Indexer source for Sonarr/Radarr |
Phlix does not download or manage downloads — it only serves the media that the ARR applications have already downloaded through their own download client integration.
Setting up the connection
1. Create a Phlix API key
- Open the Phlix web UI as an admin user.
- Go to Admin → Server Settings → API Keys.
- Create a new API key with a descriptive name (e.g.
Sonarr).
2. Add Phlix as a client in Sonarr / Radarr
Sonarr
- Settings → Connect → + → Generic
- Fill in:
- Name:
Phlix - URL:
http://your-phlix-host:8096 - API Key: your Phlix API key from step 1
- Name:
- Test the connection and save.
Radarr
- Settings → Connect → + → Custom Script
- Fill in:
- Name:
Phlix - URL:
http://your-phlix-host:8096 - API Key: your Phlix API key from step 1
- Name:
- Radarr does not have a native Generic import — use the Custom Script connector pointing at Phlix's import endpoint.
3. Create the library in Phlix
Create a library in Phlix (e.g. /mnt/media/movies for Radarr, /mnt/media/tv for Sonarr) and scan it so Phlix is aware of the content.
ARR configuration reference
Default ports
| Application | Default port | URL |
|---|---|---|
| Sonarr | 8989 | http://localhost:8989 |
| Radarr | 7878 | http://localhost:7878 |
| Prowlarr | 9696 | http://localhost:9696 |
| Bazarr | 6767 | http://localhost:6767 |
Phlix API endpoints used by ARRs
ARR applications interact with Phlix through the standard media library API:
| Action | Method | Endpoint |
|---|---|---|
| List library items | GET | /api/v1/libraries/{libraryId}/items |
| Get media item | GET | /api/v1/media/{id} |
| Get download health | GET | /api/v1/system/status |
| Trigger rescan | POST | /api/v1/admin/library/rescan |
Troubleshooting
ARR shows "No items found" in Phlix
- Verify the library in Phlix has been scanned and contains items.
- Check the ARR log for the specific error — the most common cause is the media path in the ARR not matching the path Phlix serves.
- Make sure the media directory is accessible to the
phlixsystem user.
Import fails with a path mismatch
ARR applications import media by copying or hard-linking from the download location to the library folder. If Phlix and the ARR run as different users, ensure both can read/write the relevant directories:
# Allow both phlix and the download client's user access to the media directory
sudo chgrp -R media-group /mnt/media
sudo chmod -R 2775 /mnt/mediaBazarr subtitles not syncing
Bazarr manages subtitles separately from Sonarr/Radarr. Verify Bazarr is pointed at the same library root as Phlix:
- Bazarr → Settings → Sonarr / Radarr — confirm the series/movie root folder matches what Phlix has scanned.
- Run a manual scan in Bazarr: Settings → History → Rescan.
More detail
Developer documentation for the underlying ARR API client library (which runs in the detain/phlix-shared package) is at /dev/arr-clients. This covers the Sonarr/Radarr/Prowlarr/Bazarr API wrappers, their configuration options, and how to extend them.