Stop renting software.

← All tools · music streaming

Open source alternatives to Spotify

Spotify Premium Individual plan starts at $12.99/mo (billed monthly) (pricing, checked 2026-11-02). Here are 4 self-hostable options – free to run on your own server.

Spotify alternatives compared

Navidrome

★ 24.5kGPL-3.0
self-host: easy

navidrome/navidrome

Jellyfin

★ 58.9kGPL-2.0
self-host: easy

jellyfin/jellyfin

Koel

★ 17.3kMIT
self-host: easy

koel/koel

Core is MIT. Some extra features need Koel Plus, a one-time paid license. License file

Ampache

★ 3.8kAGPL-3.0
self-host: easy

ampache/ampache

FAQ

What is the best open source alternative to Spotify?

Jellyfin is the most-starred option we list (58.9k GitHub stars, license: GPL-2.0). Also worth comparing: Navidrome, Koel, Ampache. The best pick depends on your team size and how much you want to maintain.

How hard is it to self-host a Spotify alternative?

We rate it easy: on our scale that means usually a single Docker container or one small app plus a database.

How much does Spotify cost compared to self-hosting?

Spotify's Premium Individual plan starts at $12.99/mo (billed monthly); we checked the vendor's pricing page on 2026-11-02. The alternatives listed here charge no license fee to self-host; you pay for your own server and your time.

Can I build my own Spotify with AI?

Partly: a web player that scans your own music folder, reads tags, builds playlists and streams with range requests is a doable AI build (or implement the Subsonic API and reuse existing mobile apps). The catalog is the moat: self-hosting only plays music you already own.

All self-hosted file, photo, music and media servers

Compare Spotify alternatives with the rest of the category: Best self-hosted file, photo, music and media servers – 10 open-source tools ranked by GitHub stars, covering Dropbox, Google Photos, Plex, Google Drive.

Build it yourself with AI

Partly: a web player that scans your own music folder, reads tags, builds playlists and streams with range requests is a doable AI build (or implement the Subsonic API and reuse existing mobile apps). The catalog is the moat: self-hosting only plays music you already own.

Paste this prompt into Cursor, Claude Code, Codex or any coding agent to build a minimal self-hosted Spotify clone, deployable with Docker on a VPS.

You are a senior full-stack engineer. Build a minimal, self-hosted clone of Spotify (music streaming) that I can run on my own VPS. Keep it small, production-sane, and easy to maintain.

## Goal
Replace my paid Spotify subscription for a single person or small team. MVP only — no billing, no enterprise features.

## Core features (build exactly these)
1. library scan of a music folder with tag and cover-art extraction
2. browse by artist, album and genre with search
3. playlists and favorites per user
4. HTTP range streaming with optional transcoding
5. Subsonic-compatible API for mobile clients

## Stack
- Next.js (App Router, TypeScript) + Tailwind + shadcn/ui
- PostgreSQL with Drizzle ORM (migrations checked in)
- Auth: Better Auth (email + password, optional GitHub OAuth); every query scoped to the signed-in user/workspace
- Background jobs (if needed): pg-boss on the same Postgres
- File storage (if needed): S3-compatible (MinIO container)

## Data model (start here, extend only if required)
User, Track, Album, Artist, Playlist, PlayEvent
Use UUID primary keys, createdAt/updatedAt on every table, and foreign keys with sensible ON DELETE behavior.

## Deliverables
1. Working app with the features above and a clean, minimal UI
2. docker-compose.yml with app, postgres and Caddy (automatic HTTPS) — `docker compose up -d` must be all I run
3. .env.example documenting every variable; no secrets in code
4. Seed script with demo data
5. README: local dev, deploy on a fresh Ubuntu VPS (install Docker, set DNS A record, compose up), backups (pg_dump cron), and updating

## Rules
- Build in small steps; after each feature, run typecheck and the app, and fix errors before moving on
- Validate all input with zod; rate-limit public endpoints
- Write a few Playwright smoke tests for the main flow
- Ask me before adding any dependency beyond the stack above

For reference (study the approach, don't copy code): https://github.com/navidrome/navidrome, https://github.com/jellyfin/jellyfin, https://github.com/koel/koel, https://github.com/ampache/ampache

Recommended hosting

Need a server to run Navidrome or another Spotify alternative?

Disclosure: some links are affiliate links. If you sign up through them we may earn a commission at no extra cost to you. It never affects which tools we list. Details

One self-hosted swap per week

A new SaaS teardown and its open-source replacement, every week. No spam.

We only use your email to send the SelfHostThis newsletter (stored with our email provider Resend, EU). Every email has a one-click unsubscribe link, and you can ask us to delete your data anytime. We use double opt-in. Datenschutz · Privacy policy

More in this category: all self-hosted file, photo, music and media servers, ranked by GitHub stars · all categories