Automic VaultAutomic Vault

brew

Install librespot with Homebrew, apk, Nix, pacman

Open Source Spotify client library. Version 0.8.0 via Homebrew; verified from local package data.

install

Additional install commands

macOS

Homebrewverified · 100%
brew install librespot

local Homebrew formula metadata

Linux

Alpine Linux apkverified · 92%
sudo apk add librespot

Alpine Linux edge package indexes · librespot · source: dl-cdn.alpinelinux.org

Nixverified · 92%
nix profile install nixpkgs#librespot

nixpkgs package indexes · pkgs/by-name/li/librespot/package.nix · source: api.github.com

Arch Linux pacmanverified · 92%
sudo pacman -S librespot

Arch Linux sync databases · librespot · source: geo.mirror.pkgbuild.com

overview

Package summary

Open Source Spotify client library

Commands and aliases

  • librespot

history

Project history and usage

librespot is an open source Rust client library and CLI for Spotify playback and Spotify Connect receiver use. It occupies the unofficial-client space left by Spotify's deprecated closed-source libspotify, with the important limitation documented by the project that it only supports Spotify Premium accounts.

Project history

The GitHub repository was created on November 15, 2017. Its README describes the project as an open source client library that enables applications to use Spotify's service through multiple audio backends and act as a Spotify Connect receiver.

The annotated v0.1.0 tag, dated November 6, 2019, is marked as the initial release. Subsequent releases through the 0.2, 0.3, 0.4, 0.5, 0.6, and 0.7 lines show the project evolving from a library experiment into a regularly packaged Rust command-line service used by headless speakers, embedded systems, and desktop integrations.

Adoption history

librespot gained package-manager adoption because it solved a specific problem: make a machine appear as a Spotify Connect speaker without running Spotify's full proprietary desktop client. Its Rust implementation, CLI packaging, multiple audio backends, and availability on crates.io made it attractive for small servers, single-board computers, appliance images, and music-player projects.

The project remains sensitive to Spotify protocol changes because it interoperates with a proprietary service rather than a public stable protocol. That makes its release history interesting to maintainers: breakage often lands as authentication, API, metadata, or playback fixes rather than ordinary library feature work.

How it is used

The README documents cargo install librespot and a CLI invocation such as creating a named speaker with a bitrate setting. In packaged deployments it is commonly run as a background service with explicit backend, device name, bitrate, cache, and authentication options.

Why package nerds care

librespot is package-nerd significant because it is both useful and inherently awkward: an open client for a proprietary streaming ecosystem, written in Rust, shipped as a CLI daemon, and dependent on reverse-engineered behavior. It is the sort of package that turns old speakers, Raspberry Pi boxes, NAS machines, and desktops into network audio endpoints.

Timeline

  • 2017-11-15: GitHub repository created.
  • 2019-11-06: v0.1.0 initial release tag dated.
  • 2021-05-04: v0.2.0 release published.
  • 2022-05-22: v0.4.0 release published.
  • 2024-10-15: v0.5.0 release published.
  • 2025-08-31: v0.7.1 release published.

Related projects

  • Related projects include Spotify Connect clients, Mopidy integrations, pyspotify/libspotify-era applications, librespot-java, audio backends such as ALSA and PulseAudio, and service wrappers used by headless media appliances.

security posture

Risk level: green

library-like package without higher-risk signals.

Risk classifier

green risk · low confidence · appliance

Why

  • library-like package without higher-risk signals

Signals

  • metadata:library-like

Install behavior

  • No Homebrew post-install hook is recorded in formula metadata.
  • Homebrew bottle metadata is available for 6 platform targets.
  • Build metadata lists 2 build dependencies.

Recommended review

Before unattended agent use, check whether the tool reads plaintext credentials, writes remote state, publishes artifacts, or shells out to plugins.

executables

Installed executables

CommandKindExposureNote
librespotcliglobal executable

freshness

Version and freshness

These signals separate page generation age, package-manager activity, and upstream release comparison. Version lag is warned only when an evidence URL and comparable versions are present.

page generated2026-07-08
manager version0.8.0
manager updated
local dataok
upstreamcurrent
latest detectedv0.8.0

https://github.com/librespot-org/librespot

  • infoNo package-manager update timestamp was available.low confidence

install metadata

Package metadata

Package keybrew:librespot
Version0.8.0
Package managerHomebrew
Package manager pagehttps://formulae.brew.sh/formula/librespot
Homepagehttps://github.com/librespot-org/librespot
Repositoryhttps://github.com/librespot-org/librespot
Upstream docshttps://github.com/librespot-org/librespot#readme
LicenseMIT
Source archivehttps://github.com/librespot-org/librespot/archive/refs/tags/v0.8.0.tar.gz
Build dependenciespkgconf, rust
Bottleavailable (on arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux)
Homebrew post-installnot defined
Servicenone declared

registry facts

Source database details

Source DatabaseHomebrew formula API
Taphomebrew/core
Full Namelibrespot
Version Scheme0
Revision0
Head VersionHEAD
Bottle Stable Root URLhttps://ghcr.io/v2/homebrew/core
Deprecatedno
Disabledno
Keg Onlyno
URL Keys
  • head
  • stable

source database matches

Other package-manager records

Matches are pulled from external package-manager indexes and kept separate from local Automic Vault package links.

Nix95%

librespot

nix profile install nixpkgs#librespot
  • normalized package name match
  • Matched by: Librespot
nixpkgs package indexes · api.github.com · nixpkgs package indexes: pkgs/by-name/li/librespot/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
apk95%

librespot 0.8.0-r0

Open Source Spotify client library

https://github.com/librespot-org/librespot

sudo apk add librespot
  • License: MIT
  • Architecture: x86_64
  • Source Package: librespot
  • 1 dependencies
  • 1 provides
  • normalized package name match
  • Matched by: Librespot
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: librespot from https://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz
apk95%

librespot-openrc 0.8.0-r0

Open Source Spotify client library (OpenRC init scripts)

https://github.com/librespot-org/librespot

sudo apk add librespot-openrc
  • License: MIT
  • Architecture: x86_64
  • Source Package: librespot
  • normalized package name match
  • Matched by: Librespot
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: librespot-openrc from https://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz
pacman95%

librespot 0.8.0-5

Open source client library for Spotify

https://github.com/librespot-org/librespot

sudo pacman -S librespot
  • License: MIT
  • Architecture: x86_64
  • 8 dependencies
  • 2 optional deps
  • normalized package name match
  • Matched by: Librespot
Arch Linux sync databases · geo.mirror.pkgbuild.com · Arch Linux sync databases: librespot from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz

source trail

Generated from repository data

This page is generated by av-web from the private package SQLite artifact built by scripts/generate-pkg-sqlite.py.

Used sources

  • Geiger risk classifier
  • Nucleus package database
  • av.db category and tag curation
  • cross-ecosystem install command graph
  • curated package history
  • external package-manager database matches
  • package relationship graph
  • package version freshness
  • package-page enrichment