Control Spotify playback on any Linux device via command line, requiring Spotify Premium and an active Spotify session on another device.
数据来源:ClawHub。 在 ClawSkills 查看
选择你使用的 Agent
方法一:命令行安装(推荐)
推荐(无需提前安装 clawhub)
npx clawhub@latest --dir ~/.claude/skills install spotify-cli或使用 clawhub CLI(需提前安装)
clawhub --dir ~/.claude/skills install spotify-cli⚠️ 需要 Node.js 18+,没有 Node?请使用下方方法二直接下载 ZIP。 安装 Node.js →
方法二:手动下载安装(无需 Node)
下载 ZIP,解压后将文件夹放到以下路径,重启 Agent 即可:
安装路径
~/.claude/skills/spotify-cli/💡解压后将文件夹放到上方路径,重启 Agent 即可生效
A simple command-line interface for controlling Spotify playback from a Raspberry Pi (or any Linux system).
spotipy Python librarypip3 install spotipy --break-system-packages
http://127.0.0.1:8888/callbackmkdir -p ~/.config/spotify-cli
cat << EOF > ~/.config/spotify-cli/config
SPOTIPY_CLIENT_ID=your_client_id
SPOTIPY_CLIENT_SECRET=your_client_secret
SPOTIPY_REDIRECT_URI=http://127.0.0.1:8888/callback
EOF
The script automatically loads credentials from ~/.config/spotify-cli/config.
sudo cp spotify /usr/local/bin/spotify
sudo chmod +x /usr/local/bin/spotify
Run any command (e.g., spotify status). On first run, you'll get a URL to open in your browser. After authorizing, copy the redirect URL (even if the page doesn't load) and paste it when prompted.
| Command | Description | |---------|-------------| | spotify search | Search for songs (shows top 5 results) | | spotify play | Search and play a song | | spotify pause | Pause playback | | spotify resume | Resume playback | | spotify next | Skip to next track | | spotify prev | Previous track | | spotify status | Show currently playing track | | spotify devices | List available Spotify devices |
# Search for a song
spotify search "stairway to heaven"
# Play a song (tip: include artist for better results)
spotify play "stairway to heaven led zeppelin"
# Check what's playing
spotify status
# Control playback
spotify pause
spotify resume
spotify next
When using this tool on behalf of a user:
spotify search "query" to see results.spotify play "exact song name artist" with the correct title/artist from the search results.This avoids playing the wrong song due to Spotify's fuzzy search matching.
Example workflow:
# User asks: "play voice actor u projected 2"
# Step 1: Search first
spotify search "voice actor u projected 2"
# Results show: "U Projected 2 - Voice Actor, Yarrow.co"
# Step 2: Confirm with user that this is the right song
# Step 3: Play with exact match
spotify play "U Projected 2 Voice Actor"
Open Spotify on your phone/computer and play something, then try again.
Make sure Spotify is open on at least one device and logged into the same account.
Delete ~/.cache-* files and re-authenticate.
安装 Spotify 后,可以对 AI 说这些话来触发它
Help me get started with Spotify
Explains what Spotify does, walks through the setup, and runs a quick demo based on your current project
Use Spotify to control Spotify playback on any Linux device via command line, requ...
Invokes Spotify with the right parameters and returns the result directly in the conversation
What can I do with Spotify in my developer & devops workflow?
Lists the top use cases for Spotify, with example commands for each scenario
将技能文件夹放到 ~/.claude/skills/spotify-cli/ 目录(个人级,所有项目可用),或 .claude/skills/spotify-cli/(项目级)。重启 AI 客户端后,用 /spotify-cli 主动调用,或让 AI 根据上下文自动发现并使用。
Spotify 支持 Claude、Cursor、OpenClaw,可与这些 AI 平台无缝集成,扩展其能力。
Spotify 可免费安装使用。请查阅仓库了解许可证信息。
Control Spotify playback on any Linux device via command line, requiring Spotify Premium and an active Spotify session on another device.
Spotify 属于「Developer & DevOps」分类,该分类的技能帮助 AI 智能体在此领域执行专业任务。
Automate my developer & devops tasks using Spotify
Identifies repetitive steps in your workflow and sets up Spotify to handle them automatically