FrankenSonos — CLI for Claude Code and Codex
FrankenSonos controls your Sonos speakers from a terminal, over HTTP or through MCP, with volume limits and an action log
Install in Claude Code, Codex and Cursor
Manual install
git clone https://github.com/Dicklesworthstone/frankensonosThen `cargo build --release` in the repository folder; the Rust version is pinned in `rust-toolchain.toml`.
Access and checks
How we reviewExtended access. The tool runs code or makes network calls and only reads external data.
- Controls speakers on the local network and, on behalf of your Spotify account, starts music and changes volume
- The daemon listens on Tailscale addresses, so any device on your tailnet with client rights can control it
This is third-party code. Review the repository files before installing.
What it does
A Rust controller and daemon for the Sonos speakers you already own. It talks to speakers over local protocols, SSDP, UPnP/SOAP on port 1400 and GENA, sees S1 and S2 households at once and installs nothing on the speakers. `fsonos` commands play Spotify links, favorites and Sonos playlists, group rooms, change volume and equaliser, move music between rooms and save scenes. Agents get three surfaces: a CLI with `--json`, an HTTP API with an OpenAPI document and an MCP server. All of them go through one policy layer, `policy.toml`: per-room volume caps, quiet hours, per-client tool allowlists, an action log and undo. DJ mode picks music from your Spotify likes by mood and time of day, and `say` voices announcements in chosen rooms.
Who it is for. Sonos owners who want to automate the house and safely hand sound control to Claude Code, Codex or another MCP client.
Good fit when
- An agent should start music in rooms but never above volume 40 and never at night
- You want to control speakers from a phone or a cloud machine over Tailscale without public internet exposure
- S1 and S2 speakers live together and the Sonos app mixes up groups and loses speakers
- You want scenes like dinner that switch groups, volumes and sources in one call
Not a fit when
- You want a one-command install: the project is pre-0.1.0 and builds from source
- There are no Sonos speakers on the network: the project has nothing to control without them
- You need real-hardware CI: the author states there is none yet
Example request
Start quiet jazz in the kitchen and group the living room with the office, volume no higher than the cap in policy.tomlLimitations
- The project is pre-release, before `0.1.0`, and interfaces may change. The author tests on the virtual `fsonos-sim` house and two real S1 and S2 households, with no standing real-hardware CI.
- It builds from source with `git clone` and `cargo build --release`, and needs the Rust version pinned in `rust-toolchain.toml`.
- Volume caps and quiet hours bind agents, while the local CLI runs uncapped by default until `[clients.cli] capped = true` is set.
- DJ mode and catalog search need a Spotify sign-in that the owner performs through `fsonos setup`.
- Announcements use local speech synthesis: FrankenTTS, espeak-ng, Piper or `say` on macOS.
How to disable. Stop the daemon with `fsonos service uninstall` if you installed it as a service, then delete the binary and the data directory with `policy.toml`. Nothing is installed on the speakers, so nothing changes on them.
FAQ
How do I connect FrankenSonos to Claude Code?
Run `fsonos serve` and `claude mcp add --transport http fsonos` with the MCP address it prints. For stdio use `fsonos mcp`.
Are the speakers exposed to the internet?
No. The daemon listens on loopback and Tailscale addresses, `fsonos tailscale setup` puts HTTPS in front through Tailscale Serve, Funnel is never used and the speakers stay on the LAN.
How do I cap volume for an agent?
Set per-room caps, quiet hours and the client tool allowlist in `policy.toml`. Over-limit volumes are clamped and the reply says so.
What does fsonos doctor check?
Speakers, Spotify linkage, event listeners, the daemon and free disk space of the store. `fsonos selftest` checks your speakers without changing anything audible.
Can I undo an agent action?
Yes, every surface goes through one path with a log of who did what and an undo. Spotify sign-in steps and similar operations are not undoable.
How do I install FrankenSonos?
Run git clone https://github.com/Dicklesworthstone/frankensonos in a terminal.
Discussion
No questions or reviews yet.
README in short
The README explains where the Sonos app falls short of local control and lists capabilities in a table: discovery, control, live state, library, DJ, scenes, announcements and safety. A command tour, Tailscale setup, MCP profiles and the source build follow.