Getting Startedยถ
This guide will help you set up Plex integration with plistsync from start to finish.
Prerequisitesยถ
Installationยถ
First, install the Plex optional dependencies:
pip install 'plistsync[plex]'
uv add plistsync --extra plex
Plex Accountยถ
Youโll need an active Plex account to use this application. If you donโt have one, sign up at plex.tv. Additionally, you must have a self-hosted Plex Media Server instance running, as some API endpoints are not available through the public Plex API and require direct server access.
Configurationยถ
Enable Plex in your plistsync configuration file:
# ./config/config.yaml
services:
plex:
enabled: true
server_url: your_plex_server_url_here
server_name: optional_server_name
Authenticationยถ
Once configured, authenticate plistsync with your Plex account:
plistsync auth plex
This will start an interactive authentication flow:
Youโll be prompted to open a browser to Plexโs authorization page
Log in with your Plex credentials
Grant
plistsyncthe requested permissionsThis will save an authentication token in the
configfolder
Authentication Previewยถ
Verificationยถ
Test that everything is working by getting your user data:
from plistsync.services.plex.api import PlexApi
print(PlexApi().identity())
This should return your machineIdentifier and some related metadata.