Usage
Starting the Application
Section titled “Starting the Application”Simply run:
clispotThe application will check for authentication and prompt you if needed.
Command-line Options:
-d, --debug-dir <path>- Specify a directory where debug logs will be saved. The logsytstderr.logandffstderr.logwill be created in this directory. If not specified, logs are saved in~/.clispot/logsdirectory.-c, --cache-dir <path>- Specify a directory where cached audio files will be saved. Defaults to~/.cache/clispot(Linux),%Appdata%/clispot/cache(Windows), or~/Library/Caches/clispot(macOS).--disable-cache- Disable caching of YouTube audio streams. When this flag is used, audio streams will not be saved to disk. Defaults tofalse(caching is enabled by default).--cookies-from-browser <browser_name[:profile]>- Pass cookies from the specified browser toyt-dlp. This is useful for accessing age-restricted content or content that requires login.--cookies <filepath>- Pass cookies from a specified file toyt-dlp. The file should be in Netscape cookie file format.--headless- Run clispot in headless mode, providing an API endpoint to build custom UIs. Our vscode extension uses this feature.
Example:
clispot -d ~/logs/clispotExample with cache disabled:
clispot --disable-cacheExample using cookies from a browser (e.g., Firefox):
clispot --cookies-from-browser firefoxExample using cookies from a file:
clispot --cookies ~/my_cookies.txtInterface Layout
Section titled “Interface Layout”clispot uses a three-panel layout:
Left Panel (Sidebar): Your Spotify library
- Saved playlists (if no featured playlists available)
- Featured playlists (by default, if available)
- Followed artists
Center Panel (Main Content):
- Displays tracks when you select a playlist or artist
- Shows search results (tracks, artists, playlists in columns)
- Changes based on current view mode
Right Panel (Queue):
- Current music queue
- Tracks are added here when you play music
- Use
nandbto navigate through the queue
Bottom (Player Controls):
- Shows currently playing track with progress bar
- Playback control buttons with keyboard shortcuts
Navigation
Section titled “Navigation”Moving Between Panels:
Tab- Cycle focus forward through panels (Sidebar → Main → Queue → repeat)Shift+Tab- Cycle focus backward
Within Lists:
jor↓- Move downkor↑- Move up- Arrow keys also work for navigation
Focusing Search:
Ctrl+K- Focus the search bar
Actions
Section titled “Actions”Search:
- Press
Ctrl+Kto focus the search bar - Type your query
- Press
Enterto search - Results appear in three columns: Tracks, Artists, Playlists
- Use
Tabto navigate between result columns
Liking and Unliking Songs:
l- Like or unlike a song. Liked songs can be found in the “Liked Songs” playlist in the sidebar.
Managing the Queue:
a- Add a song to the queue.d- Remove a song from the queue.
Playing Music:
Enter(when focused on):- Sidebar: Load playlist/artist tracks into main view
- Main View: Play selected track and add current view to queue
- Queue: Play selected track
- Search Results:
- Track: Play the track directly
- Artist: Load artist’s top tracks
- Playlist: Load playlist tracks
Playback Controls:
Space- Toggle play/pausen- Play next track in queue(the player section needs to be focused here)b- Play previous track in queue(the player section needs to be focused here)
Exiting:
qorCtrl+C- Quit the application
Keyboard Shortcuts Reference
Section titled “Keyboard Shortcuts Reference”| Key | Action |
|---|---|
Tab | Cycle focus between panels |
Ctrl+K | Focus search bar |
j / ↓ | Move down in list |
k / ↑ | Move up in list |
l | Like/Unlike a song |
a | Add song to queue |
r | Remove song from queue |
Enter | Context-dependent action (play/load) |
Space | Play/pause current track |
n | Next track |
b | Previous track |
q / Ctrl+C | Quit |
Ctrl+L | Open Lyrics |
Workflow Examples
Section titled “Workflow Examples”Playing a Playlist:
- Navigate to the sidebar (starts focused here)
- Use
j/kto select a playlist - Press
Enterto load tracks - Select a track in the main view
- Press
Enterto start playback
Searching and Playing:
- Press
Ctrl+Kto focus search - Type your query (e.g., “Radiohead”)
- Press
Enter - Use
Tabto navigate to the Tracks column - Select a track and press
Enterto play
Browsing an Artist:
- In the sidebar, select an artist (if in your followed artists)
- Press
Enterto load their top tracks - Select a track and press
Enterto play - Or search for an artist, select from search results, and press
Enter
Caching Behavior
Section titled “Caching Behavior”When a track is played, clispot attempts to cache its audio stream.
- If you skip a song during its first-time playback (i.e., while it’s being downloaded and cached), the partially downloaded cache file will be removed.
- If a song has already been fully downloaded and cached, and you skip it during a subsequent playback (when it’s playing from the cache), the existing cache file will not be removed.
This ensures that only incomplete or interrupted cache files are cleaned up, while fully cached tracks remain available for future playback.