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
  • 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 focused track/album/artist/playlist/genre artist/genre album immediately and replace queue
a Append focused track/album/artist/playlist/genre artist/genre album to queue
Space Pause/resume
n Next track
s Stop playback
f Toggle focus between browsing and now playing
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, and track changes.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

plexbar-1.2.3.tar.gz (14.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

plexbar-1.2.3-py3-none-any.whl (16.7 kB view details)

Uploaded Python 3

File details

Details for the file plexbar-1.2.3.tar.gz.

File metadata

  • Download URL: plexbar-1.2.3.tar.gz
  • Upload date:
  • Size: 14.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.14

File hashes

Hashes for plexbar-1.2.3.tar.gz
Algorithm Hash digest
SHA256 6dea7eeb0d8f7454d4bcf4898148ce72fa40158be3ff02d30f1bb4888eda14a9
MD5 7c8a1377d43690c957c9491376416d6b
BLAKE2b-256 bf76a20ecf1c5f629d197b903e123f3d54e85fc00ea7538804d12c79a17baffd

See more details on using hashes here.

Provenance

The following attestation bundles were made for plexbar-1.2.3.tar.gz:

Publisher: publish.yml on feoh/plexbar

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file plexbar-1.2.3-py3-none-any.whl.

File metadata

  • Download URL: plexbar-1.2.3-py3-none-any.whl
  • Upload date:
  • Size: 16.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.14

File hashes

Hashes for plexbar-1.2.3-py3-none-any.whl
Algorithm Hash digest
SHA256 f78216dc7d6b03ff1662197064d7aa2e57a5eb415dff78ec254ddf5441e1d7d8
MD5 d84fbbbe64e8040c5c3b32df76c07445
BLAKE2b-256 585da84087b30921ad7bd5ca4aa3cb8f30c45f76381a5524eb2e62d3efd52651

See more details on using hashes here.

Provenance

The following attestation bundles were made for plexbar-1.2.3-py3-none-any.whl:

Publisher: publish.yml on feoh/plexbar

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Release history Release notifications | RSS feed

1.2.8

2 files

1.2.7

2 files

1.2.6

2 files

1.2.5

2 files

1.2.4

2 files

This release

1.2.3 This release

2 files

1.2.2

2 files

1.2.1

2 files

1.2.0

2 files

1.1.1

2 files

1.1.0

2 files

1.0.0

2 files

0.1.6

2 files

0.1.5

2 files

0.1.4

2 files

0.1.3

2 files

0.1.2

2 files

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