- Playback controls —
pause,resume,next,prev,vol,shuffle,repeat— use AppleScript to communicate with the Spotify desktop app directly. They require no credentials and no internet connection. - Search —
spot searchandspot <query>— use the Spotify Web API with the Client Credentials flow. This requires a Client ID and Client Secret from a Spotify developer app.
The Client Credentials flow authenticates your app, not your Spotify account. This means search works without Premium and without logging in, but user-specific features like liked songs and private playlists are not available.
Create a Spotify developer app
Open the Spotify developer dashboard
Go to developer.spotify.com/dashboard and log in with your Spotify account.
Create an app
Create a new app. You can use any name and description — spot only needs the credentials, not any specific app settings. No redirect URI configuration is required for the Client Credentials flow.
Copy your credentials
From your app’s settings page, copy the Client ID and Client Secret. You’ll enter these in the next step.
Where credentials are stored
Credentials are saved to~/.config/spot/config.toml:
Verify your credentials
Run the following to confirm your credentials are configured and valid:Token caching
spot caches the API access token to avoid an HTTP round-trip on every command. The token is stored at~/.config/spot/token.json and expires after 1 hour, matching the TTL that Spotify issues for Client Credentials tokens. spot refreshes the token automatically when it expires — no action is required on your part.