Skip to main content

Plexbar

Plexbar is a keyboard-driven terminal music player for Plex. It gives you a simple Textual TUI for browsing and playing your Plex music library without opening a web browser.

PlexBar screenshot

Features

  • First-run Plex connection setup
  • Browse by Artists, Albums, Tracks, Playlists, and Genres
  • Search your Plex music library
  • Queue tracks, albums, artists, playlists, and genres
  • Show cover art for the currently playing track or album
  • Show live song progress with elapsed and total time
  • Play, pause/resume, stop, and skip with keyboard shortcuts
  • Local playback through mpv

Requirements

  • Python 3.12+
  • uv
  • mpv installed and available on PATH
  • A Plex server with at least one music library
  • A Plex account that can access your Plex server

Installation

Install Plexbar as a standalone command with uv:

uv tool install plexbar

Run Plexbar:

plexbar

Installation for development

Clone the repository and sync dependencies with uv:

git clone git@github.com:feoh/plexbar.git
cd plexbar
uv sync

Run Plexbar from the project checkout:

uv run plexbar

First-run setup

If ~/.config/plexbar/config.toml does not exist, Plexbar opens a setup screen and prompts for:

  1. Plex base URL, for example http://puppy:32400 or http://127.0.0.1:32400
  2. Plex sign-in authorization in your browser
  3. Default music library

The config file is written to:

~/.config/plexbar/config.toml

Plexbar writes this file with user-only permissions where supported. During setup, Plexbar receives a Plex token from Plex after browser authorization and saves only that token. It does not ask for or store your Plex password. Do not commit or share your Plex token.

Usage

The top-level browser contains:

  • Artists
  • Albums
  • Tracks
  • Playlists
  • Genres

Press Enter to drill down into artists, albums, playlists, and genres. Genre browsing offers "By Artist" and "By Album" groupings before listing tracks. Press Enter on a track to enqueue it.

Keybindings

Key Action
/ Search Plex music
Enter Select/drill down, or enqueue focused track
p Play the queue
P Replace the queue with the focused track/album/artist/playlist/genre artist/genre album
a Append focused track/album/artist/playlist/genre artist/genre album to queue
Space Pause/resume
n Next track
s Stop playback
f Toggle full-screen now-playing/cover art, including from the queue view
Q Toggle the full-screen queue; use arrows, Page Up/Down, Home, or End to scroll
Ctrl+p Open the command palette
q Quit

In the command palette, type to filter commands, use Up/Down (or Page Up/Page Down) to move, press Enter to run a command, and press Escape to close it. The palette's Keys command opens a context-sensitive key reference alongside Plexbar; continue using the app normally while it is open, or press Escape to close it.

Local validation

uv run ruff check .
uv run ruff format --check .
uv run pytest
uv run mypy src/plexbar tests

Playback

Plexbar keeps a persistent mpv process running and controls it through mpv's JSON IPC interface for responsive pause/resume, stop, track changes, and live playback progress updates.

Metadata

Release files for plexbar 1.2.9

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for plexbar 1.2.9
File Size Uploaded Provenance Actions
plexbar-1.2.9.tar.gz 18.1 kB With provenance Details for plexbar-1.2.9.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for plexbar 1.2.9
File Interpreter ABI Platform Actions
plexbar-1.2.9-py3-none-any.whl Python 3 none any Details for plexbar-1.2.9-py3-none-any.whl

Total release size: 38.6 kB

Release files / plexbar-1.2.9.tar.gz

Download URL plexbar-1.2.9.tar.gz
Size 18.1 kB
Tags Source
SHA-256 checksum
How to use checksums
4ad7f243c5d4da36257646bae45708170a1e0bb1d033b95c204a7adc7ebd962c
BLAKE2b-256 checksum
How to use checksums
ba0d9049659c78bbfd07a9185e0bb0d6742e1610d04c978e21ed2497f2b9fb33
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 15, 2026.

Transparency log

Release files / plexbar-1.2.9-py3-none-any.whl

Download URL plexbar-1.2.9-py3-none-any.whl
Size 20.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
5fe68ab79e9afd1b6503c490c056a67b40844d838e72c6a832f8fbb80cfaad34
BLAKE2b-256 checksum
How to use checksums
70e8e232ea9aa369abfccc2b6255442441b2056db80794b1d10fd71fdea6ebb7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 15, 2026.

Transparency log

Security for plexbar 1.2.9

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for plexbar-1.2.9.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 15, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page