Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

ytmusic-hub

Skill by OpenMinis

Lets an AI assistant read and write YouTube Music data with Python and ytmusicapi, using browser cookies for login. Covers playlists, liked songs, search, charts and lyrics, for users who want programmatic access to their account.

  • Score 78
  • 640 stars
  • MIT
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

Install ytmusic-hub

Built from the published package, never by AI.

git clone --depth 1 https://github.com/OpenMinis/MinisSkills /tmp/MinisSkills && mkdir -p ~/.claude/skills && cp -r /tmp/MinisSkills/ytmusic-hub ~/.claude/skills/ytmusic-hub

Run in your terminal. Claude Code loads skills from ~/.claude/skills automatically.

Step-by-step: install ytmusic-hub in Claude Code

Skills can run scripts on your machine. Some need an API key: check the README.

About

ytmusic-hub is an agent skill that lets an AI assistant read and write YouTube Music data using the ytmusicapi Python library. It covers fetching playlists and liked songs, creating, editing and deleting playlists, adding and removing tracks, searching, browsing recommendations and charts, and reading lyrics.

Authentication uses browser cookies collected with browser_use get_cookies, then a setup script writes a browser-auth file. A shared client module handles DNS pollution and SSL issues in iSH. The skill is aimed at users who want programmatic access to their own YouTube Music account, for example to build a playlist from liked songs or export a playlist as Markdown.

Written from the project's SKILL.md and checked against it.

What it can do

  • Playlist managementGet, create, edit and delete playlists, and add or remove tracks.
  • Liked songs and libraryFetch liked songs, library songs, albums and artists, and like or unlike songs.
  • SearchSearch YouTube Music with optional filters for songs, videos, albums and artists.
  • Browse and recommendationsRead the home feed, global or country charts, and mood playlists.
  • LyricsFind a song's lyrics through its watch playlist data.
  • Artists and albumsLook up artist, album, user and user playlist details.

What you need

  • Python
  • ytmusicapi (pip install)
  • A YouTube Music login in a browser
  • browser_use tool to collect cookies
  • Access to music.youtube.com

Try asking

  • Search for a song and add it to my YouTube Music playlist
  • Create a private playlist with my 20 most recent liked songs
  • Export my YouTube Music playlist as a Markdown list

Good to know

  • ytmusicapi is unofficial, so bulk operations may trigger Google rate limiting
  • Cookies typically last days to weeks and must be refreshed when they expire
  • The auth file contains login credentials and should not be shared

Security check

A

No download-and-run commands, hidden instructions or signs of sending keys out were found.

Checked automatically: ytmusic-hub/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work

Inside the skill

  • SKILL.md7 KB
  • evals/evals.json3 KB
  • scripts/export_playlist.py1 KB
  • scripts/list_playlists.py535 B
  • scripts/recommend_from_likes.py5 KB
Show all 11 files
  • scripts/recommend_from_seed_jay.py2 KB
  • scripts/recommend_from_seed_jay_v2.py4 KB
  • scripts/search_and_add.py856 B
  • scripts/setup_auth.py2 KB
  • scripts/test_auth.py780 B
  • scripts/ytmusic_client.py5 KB

Alternatives to ytmusic-hub

All alternatives →

Compare with intelligence-vocabulary, media-use or media_library

ytmusic-hub: common questions

How does ytmusic-hub log in to YouTube Music?

It uses browser cookies gathered with browser_use get_cookies, and a setup script turns them into a browser-auth file at a fixed workspace path.

How do I remove a song from a playlist?

Use the track's setVideoId, which is its position-specific ID in the playlist, not the videoId. The skill's example code shows how to match it.

Is ytmusic-hub an official YouTube Music tool?

The source does not say it is official. It states that ytmusicapi is unofficial and that bulk operations may hit rate limits.

How do I install ytmusic-hub?

Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.

Is ytmusic-hub free?

The code is published under the MIT licence. The service it connects to may have its own pricing.

Is ytmusic-hub safe to use?

It scores 78 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.

What are alternatives to ytmusic-hub?

Similar skills: intelligence-vocabulary, media-use, media_library, speak-summary.

ytmusic-hub Install

Add to stack

Loading.