Premium sells the absence of ads on Google's own platform, plus a licensed catalog of over 100 million songs. No program you build can remove ads from YouTube or hand you those songs without breaking its terms, and offline downloads inside the official apps can't be exported. What an agent can build is the listening side for music you already own: a library, a queue, playlists and offline caching in a phone-installable page. That replaces YouTube Music for your own files, not Premium for YouTube.
Before you buildIf you only want a library of your own files, Navidrome or Jellyfin already do it for free. YouTube itself stays free with ads.
Build me a personal music player to replace the listening side of YouTube Music Premium, for music files I own. Requirements: - Node.js 22 + TypeScript: a Fastify server on http://localhost:4860 serving an installable PWA (Vite + vanilla TypeScript). The library folder is MUSIC_DIR in .env. - Library: scan MUSIC_DIR for mp3, flac, m4a, ogg and opus with `music-metadata`; keep tracks, albums, artists and cover art in better-sqlite3 at ./data/library.db; rescan on changes with `chokidar`. - Playback: the Media Session API for lock-screen controls and background play, gapless transitions inside an album using two audio elements, a queue you can reorder by dragging, shuffle and repeat. - Playlists and a "Liked songs" list in SQLite; import and export M3U8 files. - Search as you type with SQLite FTS5 over title, artist and album. - Offline: the service worker caches the audio of chosen playlists in the Cache API, with a storage meter and a delete button; warn in the UI that iOS can evict caches. - On mobile data, `?quality=low` transcodes to 128 kbps Opus with `ffmpeg`. - History: log each play and show a weekly most-played page. - Single user, one password in .env (signed cookie). No accounts, no telemetry, local-first, no outbound calls. - Out of scope: streaming or downloading from YouTube or any other service, video, radio and recommendations, podcasts, lyrics. - README: HTTPS with Caddy so the PWA installs on a phone, and a note that this plays files you already own and doesn't replace a catalog.
Opens your agent with the prompt filled in, you press enter. Or copy it and paste it into an empty folder.
The first prompt builds the core. Run these one at a time in the same folder to grow it into your own YouTube Premium.
Extend the music player in this folder. Requirements: - After a track has played for 50 percent or 4 minutes, send a listen to ListenBrainz with the token in LISTENBRAINZ_TOKEN in .env; queue failed submissions in ./data/library.db and retry them with backoff. - A switch in settings turns scrobbling off; with no token set, nothing is sent. - Add tests for the 50 percent rule and the retry queue, and update the README.
Add smart playlists to the music player in this folder. Requirements: - A smart playlist is a saved rule set: genre, year range, play count, added in the last N days, liked or not; combined with AND/OR. - Evaluate rules with SQL against ./data/library.db each time the playlist is opened, and cap results at 500 tracks. - Offer "cache for offline" on a smart playlist, refreshing the cache when the list changes. - Update the README.
Add a tag-fixing page to the music player in this folder. Requirements: - For an album with missing or inconsistent tags, look it up on MusicBrainz (1 request per second, descriptive User-Agent) by artist and title, and show a side-by-side diff. - Only write tags to the files after I confirm, and keep a copy of the old tags in ./data/tag-backups/. - Out of scope: automatic bulk fixing. - Update the README.
People who watch YouTube daily pay to stop seeing ads and to keep audio playing with the screen off, and the music app comes on the same bill. Forum threads about price rises show many dropping to Lite rather than leaving; those who stay say they hate ads and like the music catalog.
Estimate · Free on a computer you already run; a small VPS adds about $5 a month. You still need to own the music. The build is token usage on your agent plan.
Checked 2026-10-19 against YouTube Premium's docs: 1, 2, 3, 4
| Plan | Monthly | Annual, per month | What you get |
|---|---|---|---|
| Premium Lite | $8.99 | — | Ad-free video, background play and downloads on most non-music content, excluding Shorts; ads may appear when you search or browse. |
| Premium Individual | $15.99 | $13.33 | Ad-free everywhere on YouTube, YouTube Kids and YouTube Music, background play, downloads, 1080p Premium, 256 kbps audio, queuing, Jump ahead and Continue watching. |
| Family | $26.99 | — | Premium for up to 5 more household members aged 13 and over, each with their own account. |
| Student | $8.99 | — | Premium for eligible students. |
YouTube and YouTube Music are free with ads.
Not really. People who watch YouTube daily pay to stop seeing ads and to keep audio playing with the screen off, and the music app comes on the same bill. Forum threads about price rises show many dropping to Lite rather than leaving; those who stay say they hate ads and like the music catalog. The prompt on this page builds the closest honest substitute.
About $15.99 a month on the Premium Individual plan, $191.88 a year (checked 2026-10-19).
Ad-free viewing of YouTube videos, which can't be rebuilt; A licensed catalog of over 100 million songs plus remixes, live tracks and covers; Official downloads and background play in the YouTube and YouTube Music apps; Recommendations, Jump ahead and Continue watching across devices; Family sharing, and the share of your fee that Google passes to creators. If any of those matter to you, keep paying.
Yes: Navidrome (open source), Jellyfin (open source), Koel (open source).