Sync watched status, ratings, and collections between Plex and Trakt.
pip install paktOr with pipx (isolated environment):
pipx install paktWith system tray support (Windows):
pip install pakt[tray]pakt setup # Interactive setup wizard (links Plex via PIN)
pakt sync # Run syncSee the CLI Reference for detailed options and examples.
pakt setup # Link Plex account via PIN authentication
pakt setup --token # Manual token entry instead of PIN
pakt login # Authenticate with Trakt
pakt logout # Clear Trakt authentication
pakt status # Show configuration statuspakt servers discover # List available Plex servers from your account
pakt servers list # Show configured servers
pakt servers add NAME # Add server from discovered list
pakt servers add NAME --url URL --token TOKEN # Add server manually
pakt servers remove NAME
pakt servers enable NAME
pakt servers disable NAME
pakt servers test NAME # Test server connectionpakt sync # Sync all enabled servers
pakt sync --server NAME # Sync specific server(s) only
pakt sync -s NAME -s NAME2 # Sync multiple specific servers
pakt sync --dry-run # Preview without making changes
pakt sync --verbose # Show detailed item listpakt libraries # Show library selection for default server
pakt libraries --all # Sync all libraries (clear selection)
pakt libraries -m "Movies" # Select specific movie library
pakt libraries -s "TV Shows" # Select specific show librarypakt serve # Start web UI at localhost:7258
pakt serve --host 0.0.0.0 # Listen on all interfaces
pakt serve --port 9000 # Use custom port
pakt serve --tray # With system tray icon (Windows)
pakt serve --no-tray # Without system tray (default)Start the web UI:
pakt serveOpen http://localhost:7258 in your browser.
Sync - Run manual syncs with real-time progress and console output. Use "Dry Run" to preview changes without applying them. Enable "Verbose" to see individual items being synced.
Stats - Shows connection status for Trakt and all configured Plex servers, library counts, and last sync results.
Settings - Configure sync options, manage servers, and set up scheduling.
Options are organized by direction:
- Plex → Trakt: Watched, Ratings, Collection, Watchlist
- Trakt → Plex: Watched, Ratings, Watchlist
Global defaults can be overridden per-server in the Server Settings section.
Enable automatic syncing at a set interval (in hours).
Important: The scheduler only runs while the web server is running. If you stop pakt serve, scheduled syncs will not occur. For persistent scheduling, run the server in the background (see Background Mode below).
Each Plex server has independent configuration:
- Libraries: Select which movie/show libraries to sync (empty = all)
- Sync Options: Override global defaults with per-server settings (Global/On/Off)
Run without a console window:
pythonw -m pakt serve --traySee the Automation Guide for startup configuration and scheduled tasks on Windows, macOS, and Linux.
docker-compose up -dWeb UI at http://localhost:7258. Config persists in the pakt-config volume.
First-time setup: Run interactively to authenticate:
docker-compose run --rm pakt pakt setup
docker-compose run --rm pakt pakt loginSee the Docker Guide for networking, volumes, and advanced configuration.
| Data | Plex → Trakt | Trakt → Plex |
|---|---|---|
| Watched status | ✓ | ✓ |
| Ratings | ✓ | ✓ |
| Collection | ✓ | - |
| Watchlist | ✓ | ✓ |
Collection sync includes media info (resolution, HDR, audio codec).
Pakt supports syncing multiple Plex servers to a single Trakt account:
- Run
pakt setupto link your Plex account via PIN - Select which servers to enable
- Run
pakt syncto sync all enabled servers
Each server can have:
- Independent library selection
- Per-server sync option overrides
Servers are synced sequentially. Items that exist on multiple servers are deduplicated by external ID.
Config location:
- Windows:
%APPDATA%\pakt - Linux/macOS:
~/.config/pakt
All configuration is stored in config.json. See the Configuration Reference for all options.
Default port is 7258 (PAKT on phone keypad). To change, edit config.json:
{
"web": {
"host": "127.0.0.1",
"port": 9000
}
}Or use CLI flags: pakt serve --host 0.0.0.0 --port 9000
Free Trakt accounts have a 100-item limit on collections and watchlists. Pakt will warn you if you hit these limits. Upgrade to Trakt VIP for unlimited.
Having issues? See the Troubleshooting Guide for common problems and solutions.
See CHANGELOG.md for release history.
MIT