# music

> Manage local audio libraries and background playback on macOS and Linux via a structured CLI interface.

music is a paid AI agent skill on Agensi by Adithya Ekanayaka, in Workflow Automation. It loads into your AI agent through the Agensi MCP server, always in its latest approved version.

- Price: $5 (one-time purchase)
- Creator: [Adithya Ekanayaka](https://www.agensi.io/creators/adithyasean)
- Category: [Workflow Automation](https://www.agensi.io/skills/workflow-automation)
- Version: 1.0
- Last updated: 2026-10-15
- Security: scan passed (2026-10-15); every new listing is also reviewed by a person
- Listing: https://www.agensi.io/skills/music
- Tags: automation, education, productivity, python, macos, linux, cli

## About this skill

Managing a local music library from the terminal is often a disjointed experience involving manual downloads and scattered files. This skill provides a structured interface for the `music` CLI to handle audio retrieval, indexing, and background playback on macOS and Linux. It eliminates the friction of jumping between browser tabs and terminal windows by centralizing library management through a single agent interface.

### What it does
- **Audio Retrieval** downloads permitted audio as 320 kbps MP3 files for local storage.
- **Library Indexing** maintains a SQLite database to track artists, titles, and file paths.
- **Playback Control** manages a background player process to start, stop, or check status.
- **Smart Filtering** searches existing local files before attempting new downloads to save bandwidth.
- **Metadata Management** organizes files in a structured `~/Music/Library/` hierarchy by artist and title.

### How it works
1. **Search and Query** the agent to find specific tracks or list the current local library using filters.
2. **Execute Commands** via the CLI using subcommands like `get`, `play`, or `list` with the `--json` flag for parsing.
3. **Verify State** by inspecting JSON responses to confirm if files were cached or freshly downloaded.
4. **Monitor Background Processes** using the `status` command to track active player PIDs and metadata.

### Frameworks & tools
This skill requires a pre-installed Python music runtime, SQLite for indexing, and standard terminal access on macOS or Linux systems.

### Why this beats prompting it yourself
Writing raw CLI commands for audio retrieval often leads to messy file structures and zombie background processes. This skill enforces a strict JSON-based contract and structured directory schema, ensuring your library stays organized and your player state remains trackable.

### Use cases
- Build a local high-quality MP3 library from permitted web sources.
- Control background audio playback without leaving your development environment.
- Audit a local music collection for specific artists or missing metadata.
- Automate the retrieval and playback of specific audio assets for testing.

### Known limitations
No support for Windows, volume control, seeking, or playlists. Requires a pre-installed music runtime and does not bypass DRM or paywalls.

## Requires

- Python
- uv (Python tool runner)

## How to use this skill

1. Connect your AI agent to Agensi once: add the MCP server https://mcp.agensi.io/mcp/auth and sign in with your Agensi account (OAuth, no API key). Steps for Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and other agents: https://www.agensi.io/docs/mcp-setup
2. Ask your agent: "Use the music skill from Agensi" and describe your task.
3. Buy it on the listing or let your agent ask you first; your agent then loads it from Agensi when it needs it. Every paid skill has a money-back guarantee: https://www.agensi.io/docs/money-back-guarantee

## Frequently asked questions

### Can I use this music skill on Windows?

This skill is designed specifically for macOS and Linux environments. It requires a pre-installed Python runtime and SQLite, but it does not support Windows systems at this time.

### How does this skill help my AI agent manage audio?

The skill acts as a structured bridge to the `music` CLI, allowing your AI agent to download high-quality MP3s, index them in a local database, and control background playback through simple JSON-based commands.

### Does the skill support volume control or playlist management?

While the skill excels at retrieval and playback, it currently does not support volume adjustments, track seeking, or the creation of playlists. It is focused on library organization and basic player state management.

### What exactly is included in the purchase?

Purchasing this skill provides the agent-ready configuration and tool definitions required to interface with the CLI, along with documentation on setting up the necessary local library hierarchy.

### How does the skill handle duplicate tracks or re-downloading files?

The skill uses a 'Smart Filtering' system that queries its SQLite index to see if a file already exists locally before attempting a new download, saving you bandwidth and preventing duplicate files.

---

Source: [Agensi](https://www.agensi.io), the marketplace of skills for AI agents. Any MCP-compatible agent (Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and more) connects at https://mcp.agensi.io/mcp/auth and signs in with an Agensi account; setup for every agent: https://www.agensi.io/docs/mcp-setup. Append .md to any skill, guide or docs address on agensi.io for its markdown version.
