Spotify CLI for headless Linux servers. Control Spotify playback via terminal using cookie auth (no OAuth callback needed). Perfect for remote servers withou...
数据来源:ClawHub。 在 ClawSkills 查看
选择你使用的 Agent
方法一:命令行安装(推荐)
推荐(无需提前安装 clawhub)
npx clawhub@latest --dir ~/.claude/skills install spotify-linux或使用 clawhub CLI(需提前安装)
clawhub --dir ~/.claude/skills install spotify-linux⚠️ 需要 Node.js 18+,没有 Node?请使用下方方法二直接下载 ZIP。 安装 Node.js →
方法二:手动下载安装(无需 Node)
下载 ZIP,解压后将文件夹放到以下路径,重启 Agent 即可:
安装路径
~/.claude/skills/spotify-linux/💡解压后将文件夹放到上方路径,重启 Agent 即可生效
--- name: spotify-linux version: 1.2.0 description: Spotify CLI for headless Linux servers. Control Spotify playback via terminal using cookie auth (no OAuth callback needed). Perfect for remote servers without localhost access. author: Leo 🦁 homepage: https://github.com/steipete/spogo metadata: {"openclaw":{"emoji":"🎵","requires":{"anyBins":["spogo"]},"install":[{"id":"go","kind":"shell","command":"go install github.com/steipete/spogo/cmd/spogo@latest","bins":["spogo"],"label":"Install spogo (go)"}],"notes":"Cookies (sp_dc, sp_t) are stored locally in ~/.config/spogo/cookies/ and sent only to Spotify APIs. Browser automation fallback is optional and only used to start a playback session when no active device exists."}} allowed-tools: [exec] ---
Control 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:
echo 'export PATH=$PATH:~/go/bin' >> ~/.bashrc
source ~/.bashrc
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 = "~/.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, you can start one via the browser.
> Note: This is optional and only needed when spogo device list returns no active devices. > It opens open.spotify.com in the agent's isolated browser profile (not the user's personal browser). > The agent only navigates to Spotify and clicks Play — no other browser state is accessed.
browser open https://open.spotify.com/track/TRACK_ID profile=openclaw
spogo device set "DEVICE_ID"
The Spotify 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.)安装 Spotify Player 后,可以对 AI 说这些话来触发它
Help me get started with Spotify Player
Explains what Spotify Player does, walks through the setup, and runs a quick demo based on your current project
Use Spotify Player to spotify CLI for headless Linux servers
Invokes Spotify Player with the right parameters and returns the result directly in the conversation
What can I do with Spotify Player in my developer & devops workflow?
Lists the top use cases for Spotify Player, with example commands for each scenario
将技能文件夹放到 ~/.claude/skills/spotify-linux/ 目录(个人级,所有项目可用),或 .claude/skills/spotify-linux/(项目级)。重启 AI 客户端后,用 /spotify-linux 主动调用,或让 AI 根据上下文自动发现并使用。
Spotify Player 支持 Claude、Cursor、OpenClaw,可与这些 AI 平台无缝集成,扩展其能力。
Spotify Player 可免费安装使用。请查阅仓库了解许可证信息。
Spotify CLI for headless Linux servers. Control Spotify playback via terminal using cookie auth (no OAuth callback needed). Perfect for remote servers withou...
Spotify Player 属于「Developer & DevOps」分类,该分类的技能帮助 AI 智能体在此领域执行专业任务。
Automate my developer & devops tasks using Spotify Player
Identifies repetitive steps in your workflow and sets up Spotify Player to handle them automatically