A modern CLI tool to monitor Plex activity via the Tautulli API.
pipx install now-playing-cli
now-playing config
now-playing- Real-time monitoring - Watch active streams with live progress updates
- Library statistics - View item counts across all Plex libraries
- Secure configuration - API keys stored in system keychain (or config file with restricted permissions)
- Beautiful output - Rich terminal formatting with colors and tables
- Safe reboot - Check for active streams before rebooting your server
pipx install now-playing-clipip install now-playing-cligit clone https://github.com/dangerouslaser/now-playing-cli.git
cd now-playing-cli
pip install .For storing your API key in the system keychain instead of a config file:
pip install now-playing-cli[keyring]Run the interactive setup to configure your Tautulli connection:
now-playing configYou'll be prompted for:
- Tautulli URL - e.g.,
http://localhost:8181orhttps://tautulli.example.com - API Key - Found in Tautulli: Settings > Web Interface > API Key
The configuration is stored in ~/.config/now-playing/config.json with restricted permissions (readable only by you). If the keyring package is installed, your API key is stored in the system keychain instead.
# View current configuration
now-playing config --show
# Remove all configuration
now-playing config --clearnow-playingDisplays all active Plex streams with user, title, progress, player info, and transcode status.
now-playing watchLive-updating display that shows stream progress in real-time. Press Ctrl+C to exit.
Options:
--interval, -i- Refresh interval in seconds (default: 10)
now-playing libraryShows a table of all Plex libraries with item counts.
now-playing rebootChecks for active streams and warns before rebooting. Useful for server maintenance.
- Python 3.9+
- A running Tautulli instance connected to your Plex server
The Python version is a complete rewrite with several improvements:
| Feature | v1 (bash) | v2 (Python) |
|---|---|---|
| Configuration | Edit script directly | Interactive setup with now-playing config |
| Credential storage | Plaintext in script | System keychain or config file with restricted permissions |
| Error handling | Limited | Comprehensive with helpful messages |
| Dependencies | curl, jq | Self-contained Python package |
| Installation | Manual copy to /usr/local/bin | pip/pipx install |
To upgrade:
- Remove the old script:
sudo rm /usr/local/bin/now-playing - Install the new version:
pipx install now-playing-cli - Run setup:
now-playing config
MIT



