Spotify Soloist Authentication
Spotify Soloist uses two pieces of authentication state:
- A Spotify Soloist API key generated from Spotify for Developers.
- A Spotify Connect session created when a Spotify app selects the Spotify Soloist device.
Spotify Soloist API key
Generate a key from Spotify Soloist API Key. The account that generates the key must have Spotify Premium.
The key is for the person who generated it. Do not share it with other users, publish it, embed it in client-side applications, or include it in distributed scripts. Each Spotify Soloist user must generate their own key from Spotify for Developers.
Pass the key to Spotify Soloist at every startup:
_10soloist --device-name "Kitchen speaker" --api-key "$SOLOIST_API_KEY"
The API key is separate from the stored Spotify Connect session. Spotify Soloist always requires an API key at startup, including when it restores an existing session, runs in pair mode, or runs in single-track mode.
Treat the key like a secret. Because Spotify Soloist receives the key at
startup, treat shell history, process-manager configuration, screenshots, and
logs containing the command as sensitive. Prefer a private local environment
file or secret manager and pass the value at runtime, for example
--api-key "$SOLOIST_API_KEY". Never publish real keys in source code, public
issues, shared scripts, or client-side web pages.
If you revoke or replace the key in the dashboard, restart Spotify Soloist with the new key.
Spotify Connect login
Spotify Soloist does not open a browser or ask for a username and password. It logs in through Spotify Connect:
- Start Spotify Soloist with a device name and API key.
- Open the Spotify app on the same local network.
- Select the Spotify Soloist device from the device picker.
- Spotify Soloist authenticates and stores the session in its data directory.
On later restarts, Spotify Soloist restores the stored session automatically. Keep the same data directory if you want the device to stay paired.
Re-pairing
To replace the stored session, run Spotify Soloist in pair mode with the same data directory:
_10soloist \_10 --device-name "Kitchen speaker" \_10 --api-key "$SOLOIST_API_KEY" \_10 --pair
Select the device in the Spotify app. Spotify Soloist clears the existing stored session, stores the new one, and exits.
Single-track authentication
Single-track mode requires a stored session. Pair once first:
_10soloist \_10 --device-name "Kitchen speaker" \_10 --api-key "$SOLOIST_API_KEY" \_10 --pair
Then use the same data directory with --single-track:
_10soloist \_10 --device-name "Kitchen speaker" \_10 --api-key "$SOLOIST_API_KEY" \_10 --single-track spotify:track:2fFlmlePz9hrVMv4LvdQxN
If no stored session exists, Spotify Soloist exits and asks you to pair first.