返回顶部
s

spotify-openclaw

Full Spotify Premium control + deep music intelligence for OpenClaw. Playback: play by name/URI/playlist, pause, next, prev, volume, shuffle, queue. Auto-launches Spotify if closed. Analysis: top tracks & artists across 3 time periods, genre profile, liked songs breakdown. Discovery: find similar music via related artists graph — works without Spotify's blocked Recommendations API. One-command playlist builder. Credentials stored in macOS Keychain. Triggers: play, pause, next, volume, shuffle, w

作者: admin | 来源: ClawHub
源自
ClawHub
版本
V 1.0.0
安全检测
已通过
240
下载量
0
收藏
概述
安装方式
版本历史

spotify-openclaw

# spotify-openclaw **Full Spotify Premium control + music intelligence for OpenClaw.** Control playback, analyze your taste, and discover new music — all from chat. 100% local, no extra cloud services. ## ✨ What makes this different | Feature | This skill | Basic Spotify skills | |---------|-----------|---------------------| | Playback control | ✅ play/pause/next/prev/volume/shuffle/queue | ✅ | | Auto-launch Spotify | ✅ opens app if closed, waits, plays | ❌ | | Taste analysis | ✅ top tracks & artists × 3 time periods | ❌ | | Genre profile | ✅ full genre breakdown | ❌ | | Music discovery | ✅ works without blocked Recommendations API | ❌ | | Liked songs search | ✅ filter by artist, count, stats | ❌ | | One-command playlists | ✅ creates + fills in one command | ❌ | | Multi-language | ✅ English + Russian voice triggers | ❌ | ## 📦 Requirements - macOS with Spotify Premium - Free Spotify Developer app — [developer.spotify.com/dashboard](https://developer.spotify.com/dashboard) - Python 3 + spotipy (`pip install spotipy`) ## ⚙️ Setup (one-time) **1. Create Spotify app** at developer.spotify.com → add redirect URI: `http://127.0.0.1:8888/callback` **2. Store credentials in macOS Keychain:** ```bash security add-generic-password -a openclaw -s openclaw.spotify.client_id -w "YOUR_CLIENT_ID" security add-generic-password -a openclaw -s openclaw.spotify.client_secret -w "YOUR_CLIENT_SECRET" ``` **3. Copy script to OpenClaw scripts folder:** ```bash cp spotify.py ~/.openclaw/scripts/spotify.py ``` **4. First auth** (browser opens once, then token is cached): ```bash python3 ~/.openclaw/scripts/spotify.py now ``` ## ⚡ Quick start ```bash # Play something python3 ~/.openclaw/scripts/spotify.py play "Massive Attack" # What's playing now python3 ~/.openclaw/scripts/spotify.py now # Discover new music based on your taste python3 ~/.openclaw/scripts/spotify.py discover # Build this month's playlist (creates + fills in one command) python3 ~/.openclaw/scripts/spotify.py make-playlist "Top March 2026" short 20 ``` ## 🎮 All Commands ### Playback ```bash python3 ~/.openclaw/scripts/spotify.py play # resume python3 ~/.openclaw/scripts/spotify.py play "track name" # search & play python3 ~/.openclaw/scripts/spotify.py play spotify:track:URI # by URI python3 ~/.openclaw/scripts/spotify.py pause python3 ~/.openclaw/scripts/spotify.py next python3 ~/.openclaw/scripts/spotify.py prev python3 ~/.openclaw/scripts/spotify.py volume 70 python3 ~/.openclaw/scripts/spotify.py volume up / down python3 ~/.openclaw/scripts/spotify.py shuffle on / off python3 ~/.openclaw/scripts/spotify.py queue "track name" python3 ~/.openclaw/scripts/spotify.py now python3 ~/.openclaw/scripts/spotify.py devices ``` ### Analysis ```bash python3 ~/.openclaw/scripts/spotify.py top-tracks [short|medium|long] [limit] python3 ~/.openclaw/scripts/spotify.py top-artists [short|medium|long] [limit] python3 ~/.openclaw/scripts/spotify.py genres [short|medium|long] python3 ~/.openclaw/scripts/spotify.py recent [limit] python3 ~/.openclaw/scripts/spotify.py liked [limit] python3 ~/.openclaw/scripts/spotify.py liked-all python3 ~/.openclaw/scripts/spotify.py liked-by-artist "Artist Name" python3 ~/.openclaw/scripts/spotify.py playlists python3 ~/.openclaw/scripts/spotify.py search "query" [track|artist|album] [limit] python3 ~/.openclaw/scripts/spotify.py track-info URI ``` Periods: `short` = 4 weeks · `medium` = 6 months · `long` = all time ### Discovery & Playlists ```bash # Discover by genre profile python3 ~/.openclaw/scripts/spotify.py discover # Expand from artist (depth=hops, n=tracks per artist) python3 ~/.openclaw/scripts/spotify.py discover "Portishead" 3 3 # Related artists python3 ~/.openclaw/scripts/spotify.py related-artists "The Cure" 10 # Top tracks of any artist python3 ~/.openclaw/scripts/spotify.py artist-top-tracks "Massive Attack" 5 # Create playlist from top tracks — one command, creates + fills python3 ~/.openclaw/scripts/spotify.py make-playlist "Top March 2026" short 20 # Manage playlists python3 ~/.openclaw/scripts/spotify.py create-playlist "My Playlist" "Description" python3 ~/.openclaw/scripts/spotify.py add-to-playlist PLAYLIST_ID URI1 URI2 ``` > **Note:** Spotify's `recommendations` and `audio_features` APIs are blocked for new developer apps. This skill uses `related_artists` + `artist_top_tracks` for discovery instead — no workarounds needed. ## 💡 Agent tips - Chain `related-artists` → `artist-top-tracks` → `add-to-playlist` for smart discovery playlists - Use `liked-by-artist` to build themed playlists from your library - `genres long` gives the most accurate taste profile - Use `playlists` to get playlist IDs before playing one > **ALWAYS run `python3 ~/.openclaw/scripts/spotify.py [cmd]`** — never respond with text only.

标签

skill ai

通过对话安装

该技能支持在以下平台通过对话安装:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 spotify-openclaw-1776367682 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 spotify-openclaw-1776367682 技能

通过命令行安装

skillhub install spotify-openclaw-1776367682

下载 Zip 包

⬇ 下载 spotify-openclaw v1.0.0

文件大小: 10.13 KB | 发布时间: 2026-4-17 16:13

v1.0.0 最新 2026-4-17 16:13
spotify-openclaw 1.0.0

- Initial release providing full Spotify Premium control via OpenClaw on macOS.
- Enables playback commands (play/pause/next/prev/volume/shuffle/queue), auto-launches Spotify if not running.
- Includes deep analysis features: top tracks/artists for 3 time periods, genre breakdown, and liked songs search.
- Supports music discovery without Spotify's Recommendations API using related artists and top tracks.
- One-command playlist creation and population.
- Authenticates securely using macOS Keychain for credentials.
- Multi-language voice triggers (English and Russian) supported.

Archiver·手机版·闲社网·闲社论坛·羊毛社区· 多链控股集团有限公司 · 苏ICP备2025199260号-1

Powered by Discuz! X5.0   © 2024-2025 闲社网·线报更新论坛·羊毛分享社区·http://xianshe.com

p2p_official_large
返回顶部