Control Sonos speakers on your local network — discover, play, pause, set volume, group, and queue music via CLI.
npx clawhub@latest install sonoscliRequirements
Sonos CLI (sonos) lets your AI agent control Sonos speakers on the local network through a simple command-line interface. It covers the full range of playback operations — discovery, status checks, play/pause/stop, volume adjustment, grouping, favorites, queues, and even Spotify search via SMAPI — without requiring the Sonos app or cloud authentication.
npx clawhub@latest install sonoscliClick the Install button at the top of this page for one-click setup
Run sonos discover to find all Sonos speakers on the local network. Check playback state, track info, and volume for any named speaker with sonos status --name "Room".
Play, pause, or stop any speaker by name with a single command. Straightforward syntax makes it easy to wire into agent workflows or shell scripts.
Set the volume to an exact level on any speaker using sonos volume set <level> --name "Room", enabling precise, automated audio control.
Join or unjoin speakers, create a party-mode group, or isolate a single speaker with the sonos group subcommands — useful for multi-room audio automation.
List and open saved Sonos favorites, and manage the playback queue (list, play, or clear) without opening the Sonos app.
Search for tracks, albums, or artists on Spotify and play them on a Sonos speaker using sonos smapi search. Optionally enhanced with Spotify API credentials for richer search results.
An agent can automatically pause music in the office when a calendar event starts and resume it when the meeting ends, using sonos pause and sonos play.
Script a morning routine that joins all speakers into a group, opens a favorite playlist, and sets a comfortable volume — all via a single agent command.
Ask your agent to find a specific song on Spotify and play it on a named speaker using the SMAPI search interface, without ever opening the Sonos or Spotify apps.
Wire Sonos CLI into a broader home-automation agent so it can respond to voice or text commands like "turn down the kitchen speakers" or "stop all music".
SPOTIFY_CLIENT_ID and SPOTIFY_CLIENT_SECRET from the Spotify Developer Dashboard.npx clawhub@latest install sonoscliRequirements
Log in to write a review
No reviews yet. Be the first to share your experience!