Organize a local music library from a desktop app, a terminal interface, or a CLI. musren renames audio files from their metadata, embeds synchronized lyrics and album artwork, recognizes unidentified tracks, and groups albums into folders. Everything runs on your machine; only lyrics, artwork, and recognition contact remote services.
- Rename files from artist, title, and optional album track numbers.
- Embed lyrics from synced lyrics providers.
- Embed covers from MusicBrainz and the Cover Art Archive, skipping existing artwork.
- Recognize tracks with AcoustID or Shazam and write the identified metadata.
- Group albums into folders with a
Singlesfolder for loose tracks, and revert the grouping later. - Preview and confirm every operation, with per-file progress and errors, and keep or undo the renames after a run.
- Three interfaces on one shared engine: Tauri desktop app, Textual TUI, and a Typer CLI.
- Local history and credentials stored in the OS credential store.
- Themes: Kanagawa Lotus (light) and Wave (dark), or follow the system theme.
Download the package for your platform from the
latest release. Release
packages and checksums are listed on the
releases page.
After downloading all files into one directory, verify them with
sha256sum -c SHA256SUMS.txt before installing.
- Desktop app: run the NSIS installer (Windows 10 or newer). The installer is currently unsigned, so SmartScreen may show an unknown-publisher prompt.
- Portable TUI and CLI: download
musren-windows-x64.exeand double-click it. Python and the optional Python dependencies are bundled; no installer is required.
Download the DMG for Apple Silicon or Intel (macOS 11 or newer), open it, and drag musren into Applications. The app uses an ad-hoc signature but is not notarized; on first launch, control-click the app, choose Open, then approve it in the security prompt.
Download the .deb package from the latest release, then install it with:
sudo apt install ./*amd64.debThe package installs the Tauri desktop app and declares its runtime dependencies for APT. Ubuntu 22.04 and Debian 12 are the supported build baselines.
Download the musren-desktop-git package for x86_64 from the
latest release, then
install it with:
sudo pacman -U ./musren-desktop-git-*.pkg.tar.zstThe package is built from the tagged release source and includes its runtime dependencies. AUR publication is not required.
The CLI and TUI require Python 3.10 or newer. From a source checkout:
python3 -m venv .venv
source .venv/bin/activate
python -m pip install ".[tui]"
musren-tuiAdd the optional features you need:
python -m pip install ".[tui,lyrics,recognition,musicbrainz]"
python -m pip install ".[tui,shazam]"The PyInstaller worker bundled with the desktop app only includes the extras
installed in its build environment; fpcalc stays an external requirement.
Desktop builds, the PyInstaller worker, installable Python packages, and artifact paths are covered in Building from source.
Pick a folder and an operation, select Preview to inspect the files in scope, then Run. Progress, per-file results, and errors appear in the output panel, and completed runs are kept in local history. Rename asks whether to keep or undo the changes.
Run musren-tui. Choose a folder and an operation, then preview and run it the
same way. Browse with fzf when it is installed, pause or cancel a running job,
and keep or undo renames. See the terminal interface guide.
Every interface shares the same operations:
| Operation | Result |
|---|---|
| Rename | Names from artist, title, and optional album track numbers |
| Lyrics | Synchronized lyrics embedded in the audio file |
| Covers | Album artwork embedded; existing artwork is skipped |
| Recognize | Metadata from AcoustID or Shazam |
| Albums | Tracks grouped into album folders and Singles |
| Revert albums | Audio files moved from subfolders back to the selected root |
musren rename --directory "Music collection" --format 2
musren lyrics --directory "Music collection" --recursive
musren covers --directory "Music collection" --recursive
musren albums revert --directory "Music collection"
musren --helpRunning musren without arguments opens the original interactive menu. The
CLI reference lists every command and flag.
AcoustID requires an API key and the external Chromaprint fpcalc binary. Set
the key in the desktop Settings screen, the TUI Configuration tab, or the
CLI:
musren config set acoustid YOUR_KEYInstall fpcalc and make it available in PATH. Windows binaries come from
Chromaprint releases; on
macOS use brew install chromaprint; on Debian or Ubuntu use
sudo apt-get install libchromaprint-tools.
The CLI, TUI, and desktop app share the OS credential store: Secret Service or
KWallet on Linux, Windows Credential Locker, and macOS Keychain. The TUI and
desktop settings mask the value after entry. Legacy plaintext values in
~/.musren/config.json are removed only after a successful write and read-back.
| Guide | Contents |
|---|---|
| Terminal interface | Forms, keyboard controls, previews, and cancellation |
| CLI reference | Commands, flags, formats, and configuration |
| Testing | Checks for the CLI, TUI, and desktop app, per operation |
| Building from source | CLI/TUI install, desktop worker, frontend, Tauri, and artifact paths |
| Desktop guide | Desktop development, packaging, and release notes |
| Contributing | Environment setup, repository map, and checks |
| Releases | Package builds, Windows executable, and publishing |
| Changelog | Changes by version |
python -m pip install -e ".[dev,tui]"
python -m pytest -q
python -m ruff format .
python -m ruff check .Use an isolated environment. The contributor guide covers setup, and Testing explains how to exercise each interface and operation.
Licensed under MIT.
