Community编程与开发github.com

sonoscli

控制 Sonos 音箱(发现/状态/播放/音量/分组)。

sonoscli 是什么?

Sonos CLI 是一个命令行工具,允许开发者通过终端直接控制本地网络上的 Sonos 音箱。它支持发现设备、查询状态、控制播放(播放/暂停/停止)、调节音量以及音箱分组等核心功能。此外,还能管理收藏夹、操作播放队列,并通过 SMAPI 搜索 Spotify 等音乐服务。该工具适用于 Mac OS 和 Docker 容器环境,但需要注意网络访问权限——在 Mac 上运行需要为父进程(如 Terminal 或 VS Code)授予本地网络权限,在沙箱模式下则需要允许网络访问。如果遇到 SSDP 发现失败,可使用 `--ip` 参数直接指定音箱 IP。

兼容平台~Claude Code✓Codex CLI~Cursor
npx skills add https://github.com/clawdbot/clawdbot/tree/main/skills/sonoscli

Installed? Explore more 编程与开发 skills: steipete/bluebubbles, steipete/eightctl, steipete/blucli · View all 6 →

在你喜欢的 AI 中提问

打开一个已预加载此 Agent Skill 的新对话。

文档

Sonos CLI

使用 sonos 控制本地网络上的 Sonos 音箱。

快速开始

  • sonos discover
  • sonos status --name "Kitchen"
  • sonos play|pause|stop --name "Kitchen"
  • sonos volume set 15 --name "Kitchen"

常见任务

  • 分组:sonos group status|join|unjoin|party|solo
  • 收藏夹:sonos favorites list|open
  • 队列:sonos queue list|play|clear
  • Spotify 搜索(通过 SMAPI):sonos smapi search --service "Spotify" --category tracks "query"

注意

  • 如果 SSDP 失败,请指定 --ip <speaker-ip>。
  • Spotify Web API 搜索是可选的,需要设置 SPOTIFY_CLIENT_ID/SECRET。
  • 如果出现错误,请查看故障排除部分,并给出匹配的建议。

故障排除

sonos discover - no route to host

  • 错误信息:Error: write udp4 0.0.0.0:64326->239.255.255.250:1900: sendto: no route to host (Command exited with code 1)
    • 注意 0.0.0.0: 后面的端口号是临时的,会变化,子网掩码也可能不完全匹配。
    • sendto: no route to host 错误应保持稳定。
  • 建议用户:在 Mac OS 的 direct(无 Docker 沙箱)模式下,需要前往“设置 -> 隐私与安全性 -> 本地网络”,为网关的顶层宿主父进程启用权限:
    • 如果通过 launchd 运行,则为 node
    • 如果直接在终端中运行网关,则为 Terminal
    • 如果在 VS Code 终端中运行,则为 Visual Studio Code
  • 另一种选择是使用 sandbox(Docker 容器)模式,并为该沙箱允许网络访问。

sonos discover - bind: operation not permitted

  • 错误信息:Error: listen udp4 0.0.0.0:0: bind: operation not permitted
  • 建议用户:可能正在通过 Codex 或其他不允许网络访问的沙箱运行(可以通过在启用了沙箱的 Codex CLI 会话中运行 sonos discover 且不批准升级请求来复现)。

Individual skills in this repo

This repo contains 20 individual skills — each has its own dedicated page.

1password

Set up and use 1Password CLI for sign-in, desktop integration, and reading or injecting secrets.

acp-router

Route plain-language requests for Claude Code, Cursor, Copilot, OpenClaw ACP, OpenCode, Gemini CLI, Grok Build, Qwen, Kiro, Kimi, iFlow, Factory Droid, Kilocode, or explicit ACP harness work into either OpenClaw ACP runtime sessions or direct acpx-driven sessions ("telephone game" flow). For coding-agent thread requests, read this skill first, then use only `sessions_spawn` for thread creation. Codex chat binding defaults to the native Codex app-server plugin unless ACP is explicit or background spawn needs ACP.

add-model-provider

Add and live-prove a model provider with non-interactive config one-liners, without exposing credentials.

agent-transcript

Requested GitHub PR/issue agent transcripts: redact, trim, preview, and insert safely.

apple-notes

Create, view, edit, delete, search, move, or export Apple Notes via the memo CLI on macOS.

apple-reminders

List, add, edit, complete, or delete Apple Reminders and reminder lists via remindctl.

auto-qa

Run OpenClaw-wide autonomous QA and live/stress campaigns across independent subsystem lanes, with verified fixes and a resumable evidence report.

autoreview

Structured code review through the shared OpenClaw agent-skills installation.

bear-notes

Create, search, and manage Bear notes via grizzly CLI.

blacksmith-testbox

Run Blacksmith Testbox for CI-parity checks, secrets, hosted services, migrations, or builds local cannot reproduce.

block-kit

Use proactively for structured or interactive Slack replies, and when asked to author or validate native Slack Block Kit JSON.

blogwatcher

Monitor blogs and RSS/Atom feeds for updates using the blogwatcher CLI.

blucli

BluOS CLI (blu) for discovery, playback, grouping, and volume.

bluebubbles

Send and manage iMessages via BlueBubbles, including attachments, tapbacks, edits, replies, and groups.

browser-automation

Use when controlling web pages with the OpenClaw browser tool, especially multi-step flows, login checks, tab management, or recovery from stale refs/timeouts.

camsnap

Capture frames or clips from RTSP/ONVIF cameras and local webcams, including USB pan/tilt/zoom control.

canvas

Present HTML on connected OpenClaw node canvases, navigate/eval/snapshot, and debug canvas host URLs.

channel-message-flows

Use when running QA Lab channel message flow evidence.

clawdtributor

Clawtributor PRs here, last week or another window: discover conversation refs, recheck GitHub, rank by impact.

clawhub

Search ClawHub for plugins by default, or skills and agent Templates when requested; add Templates; install, verify, update, uninstall, publish, or sync skills.

相关技能