Skip to content
Skillpedia
Misc394k · #81

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.md

Copy 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

Use this skill to help me: https://github.com/openclaw/openclaw/blob/main/skills/sonoscli/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
Want your AI to find skills like this on its own?Install the free Skillpedia MCP: one line, and it searches 15,000+ skills before each task.Install in 1 minute →

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 discover
  • sonos 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 host should stay consistent
  • 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 Gateway
    • node if running via launchd
    • Terminal if running the gateway directly in the terminal
    • Visual Studio Code if 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 discover within 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

Is this skill useful?

0

Sign in to vote.

Comments

  • …

More skills from this repository

Similar skills