Open-source Spotify alternatives you can self-host

Navidrome, Koel, Ampache, Gonic, Funkwhale and more compared: formats, the apps they work with, federation and how much server each one needs.

This guide contains advertising for blitz.cloud. Links to it are marked as ads.

Spotify streams a catalog it licenses from labels. These tools stream your own files instead: the music you already own, ripped, bought or recorded, organized the way you tagged it. Navidrome and Koel are the easiest to get running for one or two people, Funkwhale is the only one built to share music between separately run servers, and Ampache and Polaris are built for libraries that have outgrown everything else on this list.

What to look for

Before picking one, it helps to know what actually differs between them:

  • Does it speak the Subsonic protocol? If so, you can use any of the existing mobile apps (DSub, Substreamer, Amperfy, Ultrasonic) instead of waiting for an official one.
  • How big is your library, and is it already tagged well? Some of these tools organize messy folders for you; others expect clean metadata going in.
  • Do you want to share music with people outside your own household, or keep it strictly private?
  • How much hardware do you have? A Raspberry Pi running gonic is a different project from a server running Ampache for 100,000 tracks.

Navidrome has about 24,800 GitHub stars (November 2026), is written in Go, and is licensed under GPL-3.0. It speaks the Subsonic and OpenSubsonic protocols, so it works with Subsonic, Madsonic and Airsonic clients out of the box.

It watches your music folder and picks up new files and metadata changes on its own, handles multi-disc albums and compilations without the usual folder gymnastics, and transcodes on the fly, including to Opus. Multiple accounts each get their own play history, playlists and favorites. It runs from one Docker container or a single binary on Linux, macOS, Windows or a Raspberry Pi.

Navidrome is also one of the apps in this list you can run with one click, on your own server with Docker or on a managed host such as blitz.cloud Ad, where it installs from the App Store. The free plan without a card sleeps an app after a period without visitors, which is fine for occasional listening but means the first stream after a quiet stretch has to wait for it to wake up.

Koel

Koel has about 17,300 GitHub stars (November 2026), is built on Laravel and Vue, and is licensed under MIT. It covers the basics well: library scanning, smart playlists, scrobbling, and a radio and podcast view, plus connections to Last.fm, Spotify and MusicBrainz for metadata and an AI assistant that takes plain-language commands.

A paid Koel Plus tier adds multiple libraries, single sign-on, cloud storage and white-label branding for organizations that want to resell it. None of that is needed for a personal server; the free, self-hosted version does everything above on its own.

Funkwhale

Funkwhale is a federated audio platform licensed under BSD-3-Clause, built in Python. It is the one tool on this list where servers can talk to each other: your library, or parts of it, can be shared with other Funkwhale instances the way Mastodon servers share posts, and you can discover and play music hosted on someone else's pod without copying the files yourself.

That makes it a better fit for a small community pooling freely licensed music than for a private jukebox of your own ripped CDs. Funkwhale is hosted on its own GitLab instance rather than GitHub, so the star count that works for the other tools here does not apply to it. It supports Subsonic clients too, and runs as a set of Docker containers.

Ampache

Ampache has about 3,900 GitHub stars (November 2026), is written in PHP, and is licensed under AGPL-3.0. Its own documentation is upfront that it is not a media organizer: it presents a collection that is already tagged and sorted, rather than cleaning one up for you.

It streams both audio and video, and the current release (Ampache 8) needs PHP 8.5 or newer plus Node.js for its build, with MySQL or MariaDB as the database. A Jellyfin-compatible API is in development alongside its own. It ships as a Docker image. If your library is large, well-tagged and you just need a server in front of it, Ampache is built for exactly that; if your tags are a mess, start somewhere else first.

Gonic

Gonic has about 2,700 GitHub stars (November 2026), is written in Go, and is licensed under GPL-3.0. It is a Subsonic server built to run on modest hardware: its own numbers put a first scan of 50,000 tracks at about 10 minutes and a repeat scan at around 6 seconds.

It supports jukebox mode for gapless playback straight from the server, podcasts, and scrobbling to Last.fm and ListenBrainz. Configuration is a handful of environment variables or command-line flags, and it runs as a single Go binary, via systemd or in Docker. Gonic is the other app here available with one click on blitz.cloud Ad, alongside the usual route of running it yourself.

Swing Music

Swing Music has about 2,100 GitHub stars (November 2026), is written in Python, and is licensed under AGPL-3.0 or later. It builds daily mixes from your listening habits, tracks album versions separately (a Deluxe or Remaster edition does not get mixed up with the original), and adds silence detection with crossfading between tracks.

It runs on Windows, Linux, macOS and ARM64 boards, through a setup script, a portable Windows build, or Docker. There is no official mobile app yet, so it works best from a browser rather than on the move.

Black Candy, Polaris and mStream

Three smaller projects round out the list. Black Candy (about 4,400 stars, Ruby, MIT) pulls artwork from Discogs and runs on SQLite or PostgreSQL. Polaris (about 2,700 stars, Rust, MIT) is built for very large collections, with per-field search across libraries of 100,000 songs or more. mStream (about 2,400 stars, Node.js, GPL-3.0) can also federate between separate mStream servers, and adds its own torrent client and YouTube-DLP integration for pulling in audio from other sources, which is worth knowing about before you point it at anything you do not have the rights to.

Comparison table

StackProtocolLicense
NavidromeGoSubsonic/OpenSubsonicGPL-3.0
KoelLaravel, VueOwn APIMIT
FunkwhalePythonSubsonic, ActivityPubBSD-3-Clause
AmpachePHPOwn API (Jellyfin API in progress)AGPL-3.0
GonicGoSubsonicGPL-3.0
Swing MusicPythonOwn APIAGPL-3.0
Black CandyRubyOwn APIMIT
PolarisRustOwn APIMIT
mStreamNode.jsOwn API, federationGPL-3.0

How to run them

All nine publish a Docker image, so a small VPS or a home server is the usual way to run one yourself: updates, backups and HTTPS are then your job. The Subsonic-compatible ones (Navidrome, Funkwhale, Gonic) have the advantage of working with mobile apps that already exist, so you are not waiting on an official app that may never arrive.

New to self-hosting in general? Start with self-hosting for beginners. The full list of Spotify alternatives, including closed-source streaming services, lives under Spotify alternatives.

FAQ

What is the best free Spotify alternative to self-host?

Navidrome for most people: a single Docker container, a modern interface, and support for the Subsonic apps that already exist on every phone's app store. Koel is the pick if you want built-in podcast and radio support without adding anything extra.

Do I need to already own the music?

Yes. None of these tools stream a licensed catalog the way Spotify does. You load your own files, whether that is music you have bought, ripped from CDs you own, or recorded yourself.

Can I stream to my phone?

The Subsonic-compatible tools (Navidrome, Funkwhale, Gonic, Ampache) work with existing Subsonic apps such as DSub, Substreamer and Amperfy. Koel, Swing Music, Black Candy, Polaris and mStream have their own web interfaces, and some have their own apps as well.

Which of these can share music between different servers?

Funkwhale, through federation: your pod can connect to others and let their users discover and play what you host, under whatever rules you set. mStream also supports connecting separate servers, though its federation works differently.

Which one handles the biggest libraries?

Ampache and Polaris are both built with very large collections in mind; Polaris specifically names collections of 100,000 songs or more as a target it is tuned for.