sonoscli

Discover and control Sonos speakers on a local network via CLI commands for playback, volume, grouping, queues, favorites, and optional SMAPI Spotify searches.

Updated Mar 13, 2026
One-click install
npx skills add https://github.com/Yogi-076/Vajrascan.on --skill sonoscli-yogi-076
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: sonoscli
Source: https://github.com/Yogi-076/Vajrascan.on/tree/main/moltbot/skills/sonoscli
Command: npx skills add https://github.com/Yogi-076/Vajrascan.on --skill sonoscli-yogi-076

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Provides a simple command-line interface to discover and control Sonos speakers on a local network, removing the need for manual app-based control when automating playback, volume, and grouping tasks.

Core Features & Use Cases

  • Device Discovery & Status: Find Sonos devices on the LAN and query current playback and group status.
  • Playback & Volume Control: Start, pause, stop playback and set or adjust volume on named speakers or groups.
  • Grouping & Queue Management: Create and manage speaker groups, control queues, and access favorites and Spotify searches via SMAPI for integrated media workflows.
  • Use Case: Automate a morning routine that discovers all kitchen and living-room speakers, groups them, sets volume, and plays a selected playlist.

Quick Start

Use the sonos CLI to discover speakers on your network and play a playlist on the Kitchen speaker.

Frequently Asked Questions about sonoscli

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I control Sonos speakers from the terminal?

You can control Sonos speakers from the terminal by using the sonos CLI to discover local network devices, issue playback commands, adjust volume, and manage grouping without needing the mobile app.

Can I automate Sonos grouping and playback on a local network?

Yes, you can automate Sonos grouping and playback by running CLI commands that discover speakers, create groups, set volumes, and start playlists for home or small-office LAN routines.

Do I need Spotify API credentials to search for music on Sonos?

Spotify API credentials are optional but required if you want to perform SMAPI-based Spotify searches to find and play music directly through the sonos CLI interface.

What is needed to discover Sonos devices for home automation?

To discover Sonos devices for home automation, you need the sonos CLI binary installed and local network access so the CLI can reach the speakers for status queries and media control.

Does CLI-based Sonos control work in small-office LAN environments?

Yes, CLI-based Sonos control works in small-office LAN environments where the network allows device discovery, queue management, and playback control directly from the terminal.