Sonos Music Search

Search for music via Brave Search and play it on your Sonos speakers.

Audits

Pass

Install

openclaw skills install sonos-music-search

Sonos Music Search Skill

Search for music on Spotify via Brave Search and play it on your Sonos speakers — right from the command line.

Features

  • 🔍 Uses Brave Search API to find Spotify tracks
  • 🔊 Plays found tracks on your specified Sonos speaker
  • 🎶 View currently playing track
  • ⏱️ Discovery timeout protection (won't hang on missing speakers)
  • 🛡️ Safe search defaults to moderate

Prerequisites

  • Node.js >= 18
  • Brave Search API keyGet one here
  • Sonos speaker on the same local network
  • Spotify account linked to your Sonos system

Installation

npm install

Configuration

Set your Brave Search API key:

export BRAVE_API_KEY=your-api-key

Usage

Play a track

node src/index.js play "Living Room" "pink floyd comfortably numb"

View currently playing track

node src/index.js current "Living Room"

Scripts

CommandDescription
npm startRun the CLI
npm run formatFormat JS and Markdown files
npm run format:checkCheck formatting without writing

License

MIT