Memory-safe Rust controller for your own Sonos speakers on your own LAN — reliable SSDP/UPnP-SOAP/GENA interoperability (S1 + S2), a Spotify-library DJ (classical works play whole), and a CLI + HTTP API + MCP server so AI agents can run the house, including off-LAN over Tailscale.
# Add to your Claude Code skills
git clone https://github.com/Dicklesworthstone/frankensonosfrankensonos is an open-source ai agents skill for AI coding assistants such as Claude Code, Codex CLI, and ChatGPT, built by Dicklesworthstone. Memory-safe Rust controller for your own Sonos speakers on your own LAN — reliable SSDP/UPnP-SOAP/GENA interoperability (S1 + S2), a Spotify-library DJ (classical works play whole), and a CLI + HTTP API + MCP server so AI agents can run the house, including off-LAN over Tailscale. It has 140 GitHub stars.
frankensonos's catalog security scan is still queued. You can run an instant dependency and prompt-injection check now with the "Scan for vulnerabilities" button above.
Clone the repository with "git clone https://github.com/Dicklesworthstone/frankensonos" and add it to your Claude Code skills directory (see the Installation section above).
frankensonos is primarily written in Rust. It is open-source under Dicklesworthstone on GitHub, so you can review or fork the full source.
Yes. AgentsLLM lists many other AI Agents skills you can browse and compare side by side. Open the AI Agents category from the badge at the top of this page, or use the Related Skills and comparison links further down to weigh frankensonos against similar tools.
No comments yet. Be the first to share your thoughts!
Unlocks once the catalog security scan passes (runs nightly).
The deep catalog scan for this skill is still queued. Run an instant dependency check now instead.
Your Sonos, your way. Command your speakers from anywhere in the world, as long as you're on your Tailscale tailnet. A memory-safe Rust controller and daemon for the Sonos speakers you already own: one binary that runs the whole house from the terminal, an HTTP API, or any AI agent that speaks MCP.
Status: pre-release (before
0.1.0). Features have protocol, unit and end-to-end regression tests usingfsonos-sim, a virtual Sonos house (an S1 and an S2 household speaking SOAP and GENA on loopback, checked against scrubbed captures of real players). The daemon also runs a real two-household house, S1 and S2, where discovery, grouping, volume, favorites, Spotify rendering and announcements have run on real players, andfsonos selftestchecks yours without changing anything you can hear. There is no real-hardware CI yet, and interfaces may still change before0.1.0.
Sonos hardware is excellent and lasts for years; the software around it is where it falls short. The app loses speakers, grouping fights you, automation is out of reach, the legacy S1 line is frozen while S2 moves on without it, and the Spotify Web API cannot start playback on a Sonos at all.
FrankenSonos talks to your speakers directly, over the local protocols they already speak (SSDP discovery, UPnP/SOAP on port 1400, GENA events), and turns the whole house, both generations at once, into something you and your agents can drive:
fsonos serve serves its HTTP API on
loopback and your Tailscale addresses for both HTTP and MCP, and fsonos tailscale setup puts HTTPS in front of both with Tailscale Serve. Your phone in another city, an agent on a cloud VM,
a laptop at work: if it is on your tailnet, it runs your house (the CLI
there too: FSONOS_DAEMON_URL=https://<mac>.<tailnet>.ts.net fsonos pause Kitchen). Nothing is
exposed to the public internet, Funnel is never used, and the speakers never
leave your LAN.[clients.cli] capped = true to
cap it too). The caps hold for music an agent starts as well as for the
volumes it sets: a play, a resume, a DJ start or skip, or an unmute first
brings a room left loud down to its cap, and one whose level can't be read
is not started. The DJ restarting a group on its own is held to them too,
as client dj ([clients.dj]) and as whoever started it. Hand the house to an agent without it playing volume
80 at 2 a.m.#![forbid(unsafe_code)],
on an owned async stack (no Tokio, no reqwest). Nothing is installed on the
speakers and nothing about them is changed.| Area | What you get |
|---|---|
| Discovery & topology | Every player of both S1 and S2 households, its zone group and coordinator. Rooms resolve by name, Room@S1 / Room@S2, your own aliases (fsonos rooms alias add downstairs Kitchen "Living Room"), here (your default room, [defaults] room in aliases.toml), or all / everywhere. Manage saved aliases and defaults on the selected daemon from the phone, dashboard, CLI, HTTP or MCP |
| Play and queue across rooms | Start a source link, favorite, saved Sonos playlist or ordered track selection in every existing group selected by an alias, all or everywhere; all@S1 / all@S2 selects one household. --next and --queue add it without changing playback and return each group's confirmed insertion range. Grouped rooms act once, each household supplies its own source metadata, and an artist/show selection is resolved once for the whole request. Groups remain independent. Phone and desktop source players and cached-library baskets review the complete target and every returned result. CLI, HTTP, MCP and browser requests share one action log and undo boundary; see Multi-room playback for partial receipts and source-specific limits |
| Control | Play a Spotify link (a track, album, playlist, artist, episode or show), a source URI, a Sonos favorite or a library search (your tracks, saved albums and playlists), or add a Spotify link to the queue instead, next or at the end (fsonos play Kitchen <link> --next); seek within a track (fsonos seek Kitchen +30, 0 starts it over); play a track already on the queue where it is (fsonos queue-play Kitchen 5); set the queue's shuffle/repeat mode (fsonos play-mode Kitchen SHUFFLE_NOREPEAT --expected-mode NORMAL, or the web remote's Shuffle & repeat panel); pause, resume, next, previous; room or group volume (set or ±N); mute; ungroup — these on one room, an alias or everywhere at once (fsonos pause everywhere; fsonos ungroup everywhere breaks every group up), logged and undone as one action; fades on demand (fsonos volume Kitchen 20 --fade 10s ramps, --fade auto lets each speaker ramp itself at its own pace, fsonos pause Den --fade 30s fades out first); group; a room's tone, bass, treble and loudness (fsonos eq Kitchen --bass 2); move the music to another room (handing the group over, or --copy across households); party mode for a whole household. Group commands always go to the group's coordinator |
| Live state | GENA subscriptions keep a live model of every zone (transport, track, volume, shuffle and repeat), so reads need no polling, and GET /events streams the changes as server-sent events (fsonos events prints them as they happen); fsonos queue Kitchen lists what is queued and what plays; both browser queue views offer Copy selected to rooms… to copy 1–10 native occurrences, reorder or repeat them, and review a destination room or room set before playing or silently adding them; fsonos queue-search Kitchen "artist title" finds exact queued occurrences across pages (also HTTP/MCP, with revision-checked continuation); fsonos history shows what played |
| Library | Browse cached tracks, albums and playlists from the web remote, CLI or MCP, even with Spotify or speakers offline. Open a playlist's cached tracks in their original order, including duplicate occurrences, filter by title/artist/album, then play or queue an exact track. Both web remotes compose up to ten tracks across cached albums, playlists, filters and pages, with visible source origins and move, repeat and removal controls, then play or queue the ordered selection. Every selected source page is rechecked before review and confirmation. Play selected now replaces the queue and starts the first track; next/append preserve playback. CLI play-tracks / queue-tracks and MCP play_tracks / add_tracks_to_queue share the same guarded operations and verified undo boundaries. Both ordered playback and quiet queueing accept saved aliases and all/everywhere, including Rooms or saved room set in both browser baskets. Each existing group receives the same sequence, with per-target results and a shared undo only when the affected changes are proved. Playlist contents show the cache's age and whether the bounded sync read is complete, partial or not yet available |
| Spotify catalog search | Find tracks, albums, artists, playlists, shows and episodes beyond the local cache with fsonos spotify-search "artist or title" --kind track, HTTP GET /spotify/search, or MCP search_spotify. Choose a returned source URI for the existing play or queue commands. Uses your signed-in Spotify account and leaves playback unchanged while searching. See Catalog search |
| Native line-in | Discover a household's physical inputs with fsonos line-in Study, then play a connected source on another group with fsonos play Study --line-in "Music Room", a saved room set with fsonos play downstairs --line-in "Music Room", or every existing group in its household with all@S1 / all@S2. The phone remote and dashboard also review line-in across saved room sets in one household, showing every affected group before one request. Exact player ids preserve individual stereo-pair inputs. CLI, HTTP, MCP, browser remotes and the native Apple app share household checks, playback caps, the retained queue and undo. Discovery reports input capability; cable and signal state remain unknown. See Line-in |
| **Saved Sonos playlis |