spotify-linuxSpotify CLI for headless Linux servers. Control Spotify playback via terminal using cookie auth (no OAuth callback needed). Perfect for remote servers withou...
Install via ClawdBot CLI:
clawdbot install Shaharsha/spotify-linuxControl Spotify from headless Linux servers using cookie-based auth. No OAuth callback needed - perfect for remote servers.
The original spotify-player skill by steipete on ClawHub assumes local browser access for cookie import (spogo auth import --browser chrome). On headless Linux servers without a local browser, this doesn't work.
This skill documents the cookie-based workaround - copy 2 browser cookies and you're done. No OAuth, no localhost needed.
# Ubuntu/Debian
sudo apt update && sudo apt install -y golang-go
# Or download latest from https://go.dev/dl/
wget https://go.dev/dl/go1.23.4.linux-amd64.tar.gz
sudo tar -C /usr/local -xzf go1.23.4.linux-amd64.tar.gz
echo 'export PATH=$PATH:/usr/local/go/bin:~/go/bin' >> ~/.bashrc
source ~/.bashrc
go install github.com/steipete/spogo/cmd/spogo@latest
This installs to ~/go/bin/spogo. Add to PATH if needed:
sudo ln -s ~/go/bin/spogo /usr/local/bin/spogo
spogo --version
# spogo v0.2.0
Since OAuth requires localhost callback (impossible on remote servers), we use cookie auth instead.
Have the user open DevTools β Application β Cookies β open.spotify.com and copy:
sp_dc - Main auth token (long string, required)sp_t - Device ID (UUID format, required for playback)Create ~/.config/spogo/config.toml:
default_profile = "default"
[profile.default]
cookie_path = "/root/.config/spogo/cookies/default.json"
market = "IL"
language = "en"
Create ~/.config/spogo/cookies/default.json:
[
{
"name": "sp_dc",
"value": "USER_SP_DC_VALUE",
"domain": ".spotify.com",
"path": "/",
"expires": "2027-01-01T00:00:00Z",
"secure": true,
"http_only": true
},
{
"name": "sp_t",
"value": "USER_SP_T_VALUE",
"domain": ".spotify.com",
"path": "/",
"expires": "2027-01-01T00:00:00Z",
"secure": false,
"http_only": false
}
]
spogo auth status
# β "Cookies: 2 (file)"
# Search
spogo search track "query"
spogo search track "query" --json --limit 5
# Play
spogo play spotify:track:ID
spogo play # Resume
spogo pause
spogo next / spogo prev
# Devices
spogo device list --json
spogo device set "DEVICE_ID"
# Status
spogo status
spogo status --json
spogo needs an active Spotify session. If no device played recently:
browser open https://open.spotify.com/track/TRACK_ID profile=openclaw
spogo device set "DEVICE_ID"
The browser profile stays logged in (cookies persist). Session stays active for hours after playback.
--engine web): Rate limited (429 errors)No active Spotify session. Use browser fallback (see above) to start playback first.
Cookies expired. Get fresh cookies from browser and update the JSON file.
Check spogo device list - playback might be on wrong device. Use spogo device set "DEVICE_ID" to switch.
sp_dc and sp_t are stored locally in ~/.config/spogo/cookies/ β treat them as secrets, never log or share themapi.spotify.com, open.spotify.com)open.spotify.com and click Play. This does NOT extract additional cookies or access other browser statego install from the official steipete/spogo GitHub repository β open source, auditablemarket in config for correct regional availability (IL, US, etc.)Generated Mar 1, 2026
System administrators managing headless Linux servers can control Spotify playback remotely without local browser access. This is ideal for background music in server rooms or automated playlists during maintenance tasks, using cookie-based authentication to bypass OAuth limitations.
Retail stores or restaurants can use this skill to manage Spotify playlists on Linux-based digital signage systems. It allows centralized control of background music across multiple locations without needing interactive login on each device, enhancing customer experience.
Integrate Spotify playback into home automation systems running on Linux devices like Raspberry Pi. Users can schedule music for events or control playback via voice assistants, leveraging cookie auth for persistent sessions in headless environments.
Software developers can use this skill to automate Spotify playback in CI/CD pipelines or testing setups on Linux servers. It enables background music during long builds or simulates user interactions for audio-related app testing without manual intervention.
Streamers or broadcast studios can manage Spotify music cues on Linux servers for live productions. This allows seamless playback control during shows without relying on local desktop apps, using cookie-based auth to maintain session stability.
Offer a cloud service that integrates this skill with other tools for automated media management. Charge subscription fees for features like playlist scheduling, analytics, and multi-device orchestration, targeting businesses in retail or IT.
Sell pre-configured Linux devices (e.g., Raspberry Pi kits) with this skill installed for smart home or retail music systems. Revenue comes from hardware sales and optional support packages, providing turnkey solutions for non-technical users.
Provide consulting services to businesses for integrating this skill into their existing infrastructure. Offer customization for specific use cases like compliance with regional markets or enhanced security, charging hourly or project-based rates.
π¬ Integration Tip
Ensure cookies are securely stored and regularly updated to avoid auth issues; use the browser fallback method to initialize playback sessions on new devices.
Terminal Spotify playback/search via spogo (preferred) or spotify_player.
Search GIF providers with CLI/TUI, download results, and extract stills/sheets.
Download videos from YouTube, Bilibili, Twitter, and thousands of other sites using yt-dlp. Use when the user provides a video URL and wants to download it, extract audio (MP3), download subtitles, or select video quality. Triggers on phrases like "δΈθ½½θ§ι’", "download video", "yt-dlp", "YouTube", "Bη«", "ζι³", "ζει³ι’", "extract audio".
Search and add movies to Radarr. Supports collections, search-on-add option.
Control Spotify playback on macOS. Play/pause, skip tracks, control volume, play artists/albums/playlists. Use when a user asks to play music, control Spotify, change songs, or adjust Spotify volume.
Search and add TV shows to Sonarr. Supports monitor options, search-on-add.