Spotify Soloist Overview
Spotify Soloist is a headless Spotify client. It is available for Linux, Apple Silicon Mac, and x86_64 Windows devices. It advertises itself on your local network, authenticates through Spotify Connect, and plays audio through the device's audio system.
Build lifetime
Spotify Soloist builds are time-limited. Each build can be used for 90 days from
its build date. Spotify Soloist logs the remaining lifetime at startup, logs
warnings as expiry approaches, and exits with code 10 when the build has
expired. Update to a newer build before the current one expires.
Runtime modes
Spotify Soloist has two main runtime modes.
| Mode | Use it when |
|---|---|
| Spotify Connect device | You want Spotify Soloist to stay online and be selectable from the Spotify app. |
| Single-track mode | You want a script to play one Spotify URI and exit. |
The normal Spotify Connect mode is the default. It starts local network discovery, waits for Spotify Connect login, and keeps running until you stop it.
Single-track mode uses --single-track URI. It restores a previously stored
session, plays one Spotify URI, and exits when that playback finishes.
Audio output
Spotify Soloist uses your operating system's audio system and its default output:
| Operating system | Audio system |
|---|---|
| Linux | PipeWire, with PulseAudio as a fallback |
| macOS | Core Audio |
| Windows | Windows Audio Session API (WASAPI) |
On Linux, Spotify Soloist tries PipeWire first. If PipeWire cannot
initialize, Spotify Soloist falls back to PulseAudio. Use
--pipewire-device DEVICE when you need to route audio to a specific PipeWire
node name or ID.
Local control surfaces
Spotify Soloist can be used only from the Spotify app, or with extra local integration surfaces:
- The optional WebSocket API lets another local process observe playback events and send playback commands.
soloist ctlconnects through that local WebSocket API to send commands and print status, now-playing, queue, or event trace output.
The WebSocket API is disabled by default. Enable it with --ws ADDR:PORT.
For local-only integrations, bind it to 127.0.0.1.
When you use port 0, the operating system chooses a free port. Spotify Soloist
writes the actual WebSocket endpoint into ws.addr and ws.port files in the
data directory after the server starts. soloist ctl uses those files for
automatic same-machine discovery.
Data and cache storage
Spotify Soloist uses two storage locations:
| Location | Purpose |
|---|---|
| Data directory | Private account data, including device identity, stored Spotify Connect session, runtime files, and state managed by Spotify Soloist. |
| Cache directory | Volatile playback cache. |
The data directory also contains runtime files while Spotify Soloist is running:
| File | Purpose |
|---|---|
soloist.pid | Daemon process ID used by soloist ctl status. |
ws.addr | WebSocket bind address, present only when --ws is enabled. |
ws.port | WebSocket listening port, present only when --ws is enabled. |
See storage options for the default paths on each operating system and environment overrides.
Pass --data-dir and --cache-dir to choose explicit locations.
Removing the data directory resets the device identity and stored Spotify Connect session.
Configuration
Spotify Soloist does not currently read a configuration file. Configure it with CLI options, environment-driven default directories, and your process manager.
For example, this Linux command starts a long-running local device with WebSocket control enabled on a fixed loopback port:
_10soloist \_10 --device-name "Kitchen speaker" \_10 --api-key "$SOLOIST_API_KEY" \_10 --data-dir "$HOME/.local/share/soloist" \_10 --cache-dir "$HOME/.cache/soloist" \_10 --ws 127.0.0.1:9090
Network model
Spotify Soloist uses local network discovery so Spotify apps on the same network can find it as a Spotify Connect device. The optional WebSocket API is separate from Spotify Connect and is meant for your own local integrations.
The Spotify Soloist WebSocket API is a local integration surface. It has no built-in client authentication, authorization, TLS, Origin validation, CSRF protection, browser-facing security controls, or network exposure policy.