/home-audio:music-assistantfrom home-audio
Drive the Music Assistant API: players, playback, volume, queues, playlists, DSP/EQ presets, logs, announcements.
Ships in home-audio. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Overlay DIR via bash ${CLAUDE_PLUGIN_ROOT}/scripts/overlay-paths.sh dir; read
profile.env (HOME_AUDIO_MA_URL, HOME_AUDIO_MA_TOKEN_VAR), installation.json (player
names by room) and music-assistant.md. Run calls through the user's secrets route if
profile.env names one.
MA="python3 ${CLAUDE_PLUGIN_ROOT}/scripts/audioctl.py ma": $MA <command> '<args json>'.
It POSTs {"message_id","command","args"} to <url>/api with Authorization: Bearer <token>.
Every request needs a token (MA 2.x with auth). The user creates a long-lived token in the
MA UI (Settings > Profile, or auth/token/create). It goes in the env var named by
HOME_AUDIO_MA_TOKEN_VAR, never in a file this plugin writes. HTTP 401 = missing or
expired token. GET <url>/info needs no token and gives the version.
| Job | Command and args |
|---|---|
| List players | players/all (or audioctl.py ma-players for a summary) |
| One player | players/get {"player_id"}, players/get_by_name {"name"} |
| Play / pause / stop / next | `players/cmd/play |
| Volume | players/cmd/volume_set {"player_id","volume_level":0-100}; volume_mute {"player_id","muted"} |
| Power | players/cmd/power {"player_id","powered":true} |
| Play media | `player_queues/play_media {"queue_id":<player_id>,"media":"","option":"play |
| Find media | music/search {"search_query","media_types":["track","playlist",...],"limit":5}; music/item_by_uri {"uri"} |
| Queue | player_queues/get {"queue_id"}, player_queues/items {"queue_id","limit","offset"} |
| Announcement / TTS | `players/cmd/play_announcement {"player_id","message" |
| Sync players | players/cmd/set_members {"target_player","player_ids_to_add":[...],"player_ids_to_remove":[...]}; older: group_many, ungroup |
| Group player | players/create_group_player {"provider","name","members":[...]} |
| Playlists | music/playlists/library_items, music/playlists/create_playlist {"name"}, music/playlists/add_playlist_tracks {"db_playlist_id","uris"}, music/playlists/remove_playlist_tracks, music/playlists/playlist_tracks |
| DSP | config/players/dsp/get {"player_id"}, config/players/dsp/save {"player_id","config"}, config/players/dsp/apply_preset {"player_id","preset_id"} |
| Player settings | config/players/get {"player_id"}, config/players/save |
| Providers | config/providers |
| Add a provider | config/providers/setup {"provider_domain"} returns a form step with flow_id; then config/flows/submit {"flow_id","values":{...}} until type is finish (result instance_id). config/providers/save refuses new providers |
| Add podcasts | audioctl.py ma-add-podcast <feed url>... [--opml <url>]: one podcastfeed instance per feed via the setup flow (values: {"feed_url"}); list with music/podcasts/library_items |
| Sleep timer | players/sleep_timer/set {"player_id","seconds"}, /get, /clear (audioctl.py sleep) |
| Move queue | player_queues/transfer {"source_queue_id","target_queue_id","auto_play"} (audioctl.py transfer) |
| Queue tools | player_queues/save_as_playlist {"queue_id","name"}, shuffle, repeat, crossfade, dont_stop_the_music; players/add_currently_playing_to_favorites; music/favorites/add_item |
| Test playback | `audioctl.py test-play -p -s 10 |
| Logs | logging/get (admin scope) |
Names drift between releases. On an unknown-command error, read
http://<ma>:8095/api-docs on the user's server and adapt. Full notes:
${CLAUDE_PLUGIN_ROOT}/reference/music-assistant-api.md.
installation.json, then confirm the
player_id with players/all. Never guess IDs.players/get) to confirm it took effect.DIR/state/dsp-<player>-<date>.json (the rollback), then build the new config from the
shape dsp/get returned plus the preset bands (overlay-paths.sh template <name>.json
finds a preset: the user's dsp-presets/ wins over built-ins in ${CLAUDE_PLUGIN_ROOT}/templates/dsp/).
Save, read back, ask the user to listen. To keep a tuned config, write it to
DIR/dsp-presets/<name>.json.Rollback snapshots in DIR/state/, user presets in DIR/dsp-presets/. Nothing else is written.
What SKILL.md sets; muted values are Claude Code's defaults
17 skills in this plugin
/announceSpeak a message or play a sound on one speaker, several or a group, through Music Assistant TTS or Home Assistant. Use on "announce dinner is ready", "say X in the kitchen", "tell everyone"./complementary-pluginsList and install plugins that complement home-audio: pipewire-audio. Use on "what goes with this plugin", "related plugins"./connect-serverPoint speaker clients at an audio server and wire the server into Music Assistant/HA. Use on "connect to the server", migrating backends.Other plugins' skills for the same job
home-audio@danielrosehill is listed by danielrosehill/claude-code-plugins — review the source before installing
npx claudepluginhub danielrosehill/claude-code-plugins --plugin home-audio