Build a self-hosted music app on a Raspberry Pi Zero

After losing a YouTube Premium family plan, a Redditor spent a few days with Claude Code building PiTunes: a music server on a $15 Pi Zero 2 W plus a web app and an iPhone app with CarPlay.

Done withClaude Code· Nov 20, 2026

What they did

The poster, u/pf1993, was removed from a friend's YouTube Premium family plan and did not want to pay for music on their own. Over a few days they had Claude Code write PiTunes: a small Python server that runs on a Raspberry Pi Zero 2 W on a shelf at home and handles search, playlists, likes, radio, lyrics, podcasts and offline downloads, reached from anywhere over Tailscale. Claude Code also wrote the web app, a native iPhone app with a CarPlay screen, the installer and the project website. The poster knew Python but had never written Swift.

How it went

The poster and their wife each run it as an iPhone app installed through TestFlight, with separate profiles so their recommendations stay apart. On a laptop the web app gets a desktop layout. The one problem they report: a song the Pi has never played takes 10 to 15 seconds to start, then plays instantly once cached. The code and a setup guide are open source.

Worth knowing

A Pi Zero is very slow, so first plays lag; caching is what makes it usable. The iPhone app has to be built yourself or side-loaded, since it ships through TestFlight. Remote access depends on a Tailscale network.

Try it

With Claude Code· 4 parts to fill in

Help me build a self-hosted music app that runs on [my small home server, e.g. a Raspberry Pi]. Write a lightweight server in [Python or my language] that supports search, playlists, likes and offline downloads, with a separate profile per [household member]. Add a web app that works as a home-screen app on phones and has a desktop layout, plus an installer script. Assume remote access goes through [Tailscale or my VPN]. Cache anything slow to fetch. Build one feature at a time and stop after each so I can test it on the device before you continue.

Square brackets are the parts to fill in. The prompt is ours; the story is theirs.

Where they said it

Related