YTMusic Librarian for Openclaw

Automate YouTube Music library management, playlist creation, and song discovery using the ytmusicapi library within your AI workflows.

gentrycopsy
v1.0.1
Jan 27, 2026
5
3.1k
0

Install & Download

1. ClawHub CLI

The fastest way to install a skill directly from the registry.

npx clawhub@latest install ytmusic

2. Manual Installation

Copy the skill folder to one of these locations

Global
~/.openclaw/skills/
Workspace
<project>/skills/

Priority: Workspace > Local > Bundled

3. Prompt Installation

Copy this prompt to OpenClaw to install it automatically.

Help me install ytmusic using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).

Prefer to download?

Get the raw skill files in a ZIP archive.

What is YTMusic Librarian?

YTMusic Librarian is a specialized tool designed to bridge your AI agent with YouTube Music. By leveraging the ytmusicapi, it enables seamless programmatic control over your music library. This skill allows for sophisticated interactions that go beyond the standard UI, making it an essential addition to your collection of Openclaw Skills.

Whether you are organizing thousands of tracks or seeking to automate playlist generation based on mood or genre, this skill provides the necessary endpoints to interact with your personal YouTube Music account securely and efficiently. It transforms how you manage streaming content by allowing an AI to handle the heavy lifting of curation.

YTMusic Librarian Use Cases

  • Programmatically curate and organize large YouTube Music libraries.
  • Automate the creation of mood-based or genre-specific playlists via AI instructions.
  • Synchronize liked songs and library content with external data sources.
  • Retrieve song lyrics and discover related tracks for enhanced metadata research.

How YTMusic Librarian Works

  1. The skill initializes a connection to YouTube Music using a pre-configured browser authentication file.
  2. When a command is received, the AI agent invokes the ytmusicapi library to query or modify library data.
  3. The skill handles authentication headers to perform actions like liking songs, adding items to playlists, or fetching lyrics.
  4. Results are returned to the agent in a structured format for further processing or display.

YTMusic Librarian Setup

  1. Install the core library:
pip install ytmusicapi
  1. Navigate to music.youtube.com in your browser and log in.
  2. Open DevTools (F12), go to the Network tab, and locate the 'browse' request.
  3. Copy the request as cURL (bash) and save it to a file named headers.txt in the skill folder.
  4. Run the following Python code to generate browser.json:
from ytmusicapi.auth.browser import setup_browser
with open('headers.txt', 'r') as f:
    setup_browser('browser.json', f.read())
  1. Verify the setup with this command:
python -c "from ytmusicapi import YTMusic; yt = YTMusic('browser.json'); print(yt.get_library_songs(limit=1))"

YTMusic Librarian Data Schema & Taxonomy

The skill interacts with YouTube Music data structures and stores local configuration as follows:

Data Type Format Description
Authentication JSON Stored in browser.json or oauth.json for persistent session management.
Library Data Object Returned as lists of songs or albums with unique IDs for easy manipulation.
Playlist Data Object Contains playlist IDs, titles, and descriptions for automated management.
Metadata Dictionary Includes lyrics and related track information retrieved via browse IDs.

YTMusic Librarian Advanced Features

  • Support for multiple authentication methods including OAuth and browser-based headers.
  • Advanced discovery features such as fetching related tracks and watch-playlist generation.
  • Full control over library status, including rating songs and editing library presence.
  • Extensible integration with other Openclaw Skills for cross-platform music automation.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Github Stars: 0
forks: 0

Featured*