| name | agent-lx-music |
| description | Control agent-lx-music (alx) CLI to search, play, download music, fetch lyrics/covers, and manage playlists. |
| version | 2.0.0 |
| author | agent-lx-music project |
| license | MIT |
| metadata | {"hermes":{"tags":["music","cli","playback","download","playlist","lyric","cover"],"related_skills":["mpv-media-player"]}} |
agent-lx-music (alx) — Music CLI Agent Usage Guide
Overview
alx is a terminal-native music CLI that replaces lx-music-desktop. It uses mpv as a detached daemon for playback, supports JS source scripts for URL resolution, and has native search for multiple music platforms.
All commands support --json output and --quiet to suppress non-data output.
Quick Command Reference
Search
alx search "keyword"
alx search "keyword" --source kw
alx search "keyword" --limit 10
alx search "keyword" --id-only
alx search "keyword" --json
Playback
alx play <cli_id>
alx play <cli_id> --quality flac24bit
alx play <url>
alx play /path/to/file.mp3
alx play --from-playlist "name"
alx play --from-playlist "name" --shuffle
alx next / alx prev
alx pause / alx resume / alx stop
alx seek +30 / alx seek 2:30 / alx seek 50%
alx volume 80 / alx volume +10
alx repeat off|one|all
alx shuffle on|off
alx now
alx state
alx quit
Download
alx download add <id>
alx download add <id1> <id2> <id3>
alx download add <id> --quality flac24bit
alx download add --file playlist.m3u
alx download status
alx download list
alx download retry <task_id>
Playlists
alx playlist list
alx playlist create "name"
alx playlist delete "name"
alx playlist rename "old" "new"
alx playlist add "name" <id>
alx playlist remove "name" <id>
alx playlist show "name"
alx playlist play "name"
alx playlist play "name" --shuffle
alx playlist export "name" --format m3u
alx playlist import file.m3u --name "name"
Favorites
alx fav list
alx fav add
alx fav add <id>
alx fav remove <id>
alx fav play
Lyrics & Cover
alx lyric
alx lyric <id>
alx lyric <id> --translated
alx lyric <id> --romanized
alx lyric <id> --save
alx pic <id>
alx pic <id> --save
Source Management
alx source list
alx source add <path_or_url>
alx source remove <id>
alx source update <id>
alx source test <id>
alx source info <id>
alx source health
Board & Discover
alx board
alx board --source wy --id wy-hot
alx board --source wy --id wy-hot --play
alx discover
alx discover --source kw --tag 华语
alx discover show <playlist-id>
alx discover play <playlist-id>
Queue
alx queue show
alx queue add <id>
alx queue insert <id>
alx queue remove <position>
alx queue move <from> <to>
alx queue clear
Local Library
alx local scan
alx local list
alx local play <index>
Config
alx config
alx config get <key>
alx config set <key> <value>
alx config path
JSON Output
All commands support --json for structured output. Example search result:
[
{
"cli_id": "04164d6d",
"song_id": "228908",
"name": "Sunny Day",
"singer": "Jay Chou",
"source": "kw",
"interval": "04:29",
"album_name": "Ye Hui Mei",
"pic_url": "https://img3.kuwo.cn/..."
}
]
Aliases
sch = search
dl = download
pl = playlist
q = queue
lrc / lyr / lyrics = lyric
cover = pic
hot = board
explore = discover
Verbose Mode
Use --verbose or -v for debug output showing which sources are queried, HTTP requests, and JS sandbox execution details.