sonoscli
What it does
It guides an AI agent through the sonos command to control Sonos speakers on your local network. It is for people with Sonos speakers who want to manage their music from a chat.
When to use it
- ✓When you want to play, pause, or stop music on a Sonos speaker.
- ✓When you need to change the volume of a particular room.
- ✓When you want to group speakers or play a saved favorite.
Skill link
https://github.com/openclaw/openclaw/blob/main/skills/sonoscli/SKILL.mdCopy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.
How to use
The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.
Ready-to-paste message
For Claude Code, Codex or Cursor: run it in your project folder and the skill gets installed.
Download the SKILL.md and drop it into your agent’s skills folder.
Example of what to ask your AI
“Set the Kitchen speaker volume to 15 and play my Morning Mix favorite.”
5 new skills a week. 1 minute to read.
How it works
The skill finds Sonos speakers on your network and sends playback, volume, group, or queue commands to the one you name. It can also search Spotify through Sonos when the optional keys are set.
Technical content (original SKILL.md)
Original text by the author, straight from GitHub.
Sonos CLI
Use sonos to control Sonos speakers on the local network.
Quick start
sonos discoversonos status --name "Kitchen"sonos play|pause|stop --name "Kitchen"sonos volume set 15 --name "Kitchen"
Common tasks
- Grouping:
sonos group status|join|unjoin|party|solo - Favorites:
sonos favorites list|open - Queue:
sonos queue list|play|clear - Spotify search (via SMAPI):
sonos smapi search --service "Spotify" --category tracks "query"
Notes
- If SSDP fails, specify
--ip <speaker-ip>. - Spotify Web API search is optional and requires
SPOTIFY_CLIENT_ID/SECRET. - If there is an error, check the troubleshooting section and offer advice if there is a decent match.
Troubleshooting
sonos discover - no route to host
- On error
Error: write udp4 0.0.0.0:64326->239.255.255.250:1900: sendto: no route to host (Command exited with code 1)- Note that the port number after
0.0.0.0:is ephemeral and will change and the netmask may not match exactly either - The
sendto: no route to hostshould stay consistent
- Note that the port number after
- Advise the user that in
direct(no Docker sandbox) mode on Mac OS that Settings -> Privacy & Security -> Local Network will need to be enabled for the top-level host parent process of the Gatewaynodeif running vialaunchdTerminalif running the gateway directly in the terminalVisual Studio Codeif running via terminal in VS Code
- An alternative option is to use
sandbox(docker container) with network access allowed for that sandbox
sonos discover - bind: operation not permitted
- On error
Error: listen udp4 0.0.0.0:0: bind: operation not permitted - Advise the user that they may be running via a Codex or other sandbox that does not permit network access (this can be replicated by running
sonos discoverwithin a Codex CLI session with sandbox enabled and not approving the escalation request)
FAQ
What if the speaker is not found?
You can give the speaker's IP address directly if automatic discovery fails.
Does the network setting matter on a Mac?
Yes. On macOS, Local Network access must be allowed for the host app that runs the gateway.
Do I need Spotify keys?
Only for the optional Spotify Web API search, which needs a client ID and secret.
Details
Original description by the author
Control Sonos speakers (discover/status/play/volume/group).
repo: openclaw/openclaw
Popularity
- GitHub stars
- 394k
- Ranking position
- #81
- License
- MIT
- Updated
- 11/2/2026
Comments
- …
More skills from this repository
discord-user-post
394kLets your agent post a message you have approved to Discord as you, through the Discord desktop app, after confirming the exact channel.
discrawl
394kLets your agent search and summarize a saved local archive of Discord messages, check how fresh it is, and read direct messages.
gitcrawl
394kLets your agent search a saved archive of GitHub issues and pull requests, group duplicates, and check their current status on GitHub.
graincrawl
394kLets your agent search your saved Granola meeting notes and transcripts, check how fresh they are, and count them over a period.
Similar skills
energy-procurement
280kHelps your agent procure energy (electricity, gas) for businesses. It optimizes rates, manages costs, and evaluates suppliers and renewable energy.
logistics-exception-management
280kHelps your agent solve shipping problems. It handles delays, damages, or disputes, following specific procedures for each carrier.
quality-nonconformance
280kHelps your agent manage quality issues in manufacturing. It handles quality control, investigates the causes of defects, and helps implement corrective actions.