v3.1.0 is out · Read the release notes →

Your music.
Your way.

Harmony is a self-hosted music manager. It syncs your Spotify and YouTube Music playlists, downloads only the songs you're missing, and keeps a clean, tagged library ready for Navidrome.

  • Free & open source (MIT)
  • Runs on any Docker host or Synology NAS
  • No cloud account required

Why Harmony exists

Hundreds of playlists. Zero duplicate downloads.

The same song shows up in dozens of playlists, and most downloaders grab it every single time. Harmony remembers what's already in your library, downloads only what's missing, and refuses a remix or karaoke version when you asked for the original.

  1. SourceSpotify & YouTube MusicPlaylists, albums, tracks
  2. HarmonyMatch · Download · OrganizeSkips what you already own
  3. LibraryTagged files + M3U playlistsArtist / Album / Track
  4. NavidromeStream everywherePhone · desktop · web

Features

Everything between “I like this playlist” and “it's on my phone.”

Exact-match downloads

Every file is checked for artist, title, version and duration before import. Live, remix, sped-up and cover substitutes are rejected.

Playlist auto-sync

Follow Spotify and public YouTube Music playlists as Sources. Harmony checks them hourly to weekly and fetches only new songs.

Built for Navidrome

Clean Artist/Album folders and order-preserving M3U playlists, with a Navidrome rescan after every change.

Instant library search

Search titles, artists, albums, genres, ISRCs and MusicBrainz IDs. Sort and filter by bitrate, year, codec or missing artwork.

Metadata & artwork

Fix tags by hand or pull them from MusicBrainz, with cover art from the Cover Art Archive. You review every change before it's saved.

Import your own music

Upload MP3, FLAC, M4A, Ogg or Opus. Harmony groups them by album, flags gaps and conflicts, and never overwrites a file it already has.

Health & backups

Spot missing files, artwork or tags and resolve duplicates with a preview first. Back up or restore everything in one click.

Works on your phone

One responsive app for desktop and mobile that installs as a PWA. Includes light and dark themes and live download progress.

Tour

See it in action.

Real screenshots from Harmony v3, using a demo library of fictional artists.

harmony.local/dashboard
Dashboard with library totals, attention items, live download workers, and queue health
Library totals, items needing attention, live download workers, and queue health.

The whole app fits in your pocket.

Queue a download from the couch, check on a sync from the train. The mobile layout has bottom navigation and installs to your home screen.

Mobile library with song cards Mobile downloads page Mobile playlist cards

Install

Up and running in three commands.

All you need is Docker. Works on Linux, macOS and Windows (Docker Desktop), and Synology Container Manager.

  1. Get the code

    git clone https://github.com/azimul-kabir/harmony.git
    cd harmony
  2. Set a password

    cp .env.example .env
    # then set WEB_AUTH_PASSWORD in .env

    Point MUSIC_HOST_PATH at your existing music folder if you have one.

  3. Start it

    docker compose up -d --build

    Open http://localhost:8080 and sign in as admin.

Prefer a prebuilt image? docker pull ghcr.io/azimul-kabir/harmony:v3.1.0 (linux/amd64). For everything else, see the configuration guide.

FAQ

Good questions.

Does Harmony play music?

No. Harmony gets, organizes and maintains your files. Playback is left to Navidrome or any media server that reads folders and M3U playlists. Pair it with a Subsonic client like Symfonium (Android), Amperfy (iOS) or Feishin (desktop).

Do I need Spotify API credentials?

No. Spotify credentials are optional and only needed if you explicitly turn on the official metadata API.

What happens if the exact song can't be found?

It stays marked as unavailable. Harmony won't quietly fill the gap with a live version, remix or cover just to make a playlist look complete.

I already have a music collection. Will Harmony mess it up?

Harmony indexes what's there and uses it to skip downloads you don't need. It never replaces an existing file automatically, and every destructive action asks you to confirm a preview first.

How do I back up Harmony or move it to a new machine?

Open Settings → Operations and choose Download backup. You get one ZIP with your library index, Sources, playlists, history, settings and cached artwork. On the new install, choose Restore backup and restart Harmony. Keep a copy of your music folder too; the music files themselves aren't in the backup.

Does it run on ARM / Apple Silicon?

The published image targets linux/amd64. On ARM hosts and Apple Silicon Macs, build locally with docker compose up -d --build.

Under the hood

Small, boring, dependable tech.

A single container with a single SQLite file and no external services to run. The web UI streams live progress over Server-Sent Events.

Read the architecture notes →
  • Python 3.12
  • FastAPI
  • SQLAlchemy 2
  • Alembic
  • SQLite + FTS5
  • yt-dlp
  • SpotDL
  • Mutagen
  • Watchdog
  • Server-Sent Events
  • Vanilla JS
  • Docker

Take back your library.