jasonzh0/claudify
claudify
在 Claude Code 裡使用 Spotify。連結帳號,在工作階段旁保留播放器側欄,並透過 `/spotify` 或直接請 Claude 播放("put on some lofi focus music")。
關於這個 mod
claudify
在 Claude Code 裡使用 Spotify。在工作階段旁保留播放器側欄,並透過 /spotify 或直接請 Claude 播放("put on some lofi focus music")。
- 顯示專輯封面(彩色區塊圖像;不支援圖形的介面則使用 ASCII)的側欄,包含標題、演出者、專輯、即時進度列、佇列與裝置
- 控制項:播放/暫停、下一首/上一首、隨機播放、重複播放、音量列、靜音(側欄取得焦點時可用按鍵
pnbsrm) - 音樂開始播放時自動開啟
- 背景可配合你的終端機(會偵測 Ghostty)、專輯色彩,或任何十六進位色碼
播放控制需要 Spotify Premium;封面圖使用 macOS 的 sips。
安裝
在終端機中:
claude plugin marketplace add jasonzh0/claudify
claude plugin install claudify@claudify
也可以在 Claude Code 裡執行:/plugin marketplace add jasonzh0/claudify,再執行 /plugin install claudify@claudify。重新啟動 Claude Code 以載入外掛。
登入
/spotify login
瀏覽器會開啟 Spotify 的同意頁面;核准後就會連線。
內建的 claudify Spotify 應用程式處於 Spotify 的開發模式,只服務其擁有者加入的帳號(最多 25 個)。如果 Spotify 拒絕你的帳號,可以請對方加入,或使用自己的應用程式(約一分鐘、沒有數量上限):
- 在 https://developer.spotify.com/dashboard 建立應用程式
- 加入重新導向 URI
http://127.0.0.1:8888/callback,並勾選 "Web API" - 執行
/spotify setup <client-id>,再執行/spotify login
任何地方都不會使用 client secret(Authorization Code with PKCE);權杖會留在你電腦上的 Claude Code 外掛儲存空間。
開發
用 claude --plugin-dir /path/to/claudify 載入檢出的目錄,而不是已安裝的副本;或在 ~/.claude/settings.json 的 env 區塊設定 CLAUDE_CODE_PLUGIN_DIRS。
指令
/spotify open the player sidebar
/spotify play [query] resume, or search a track and play it
/spotify playlist <query> search a playlist and play it
/spotify pause | toggle | next | prev
/spotify vol <0-100> | mute
/spotify shuffle on|off | repeat off|context|track
/spotify bg terminal|none|album|#rrggbb
/spotify devices | now | close | logout | help
/spotify setup <client-id> | setup default
測試
claude plugin validate .
claude plugin test .
安裝
請先查看作者 README,確認 marketplace 與外掛名稱;指令可能隨儲存庫結構而變動。
claude plugin marketplace add jasonzh0/claudify claude plugin install claudify
原文 / README
claudify
Spotify inside Claude Code. Connect your account, keep a player sidebar next to
your session, and control playback with /spotify or by asking Claude
("put on some lofi focus music").
- Sidebar with album cover art (colored block art; ASCII on surfaces without graphics), title, artist, album, live progress bar, queue and device
- Controls: play/pause, next/previous, shuffle, repeat, volume bar, mute
(keys
pnbsrmwhen the sidebar has focus) - Opens by itself when music starts
- Background that matches your terminal (Ghostty detected), the album's color, or any hex color
Playback control needs Spotify Premium; cover art uses macOS's sips.
Install
In a terminal:
claude plugin marketplace add jasonzh0/claudify
claude plugin install claudify@claudify
or inside Claude Code: /plugin marketplace add jasonzh0/claudify, then
/plugin install claudify@claudify. Restart Claude Code to load it.
Log in
/spotify login
Your browser opens Spotify's consent page; approve it and you're connected.
The built-in claudify Spotify app is in Spotify's development mode, which only serves accounts its owner has added (up to 25). If Spotify refuses your account, ask to be added, or use your own app (about a minute, no limit):
- Create an app at https://developer.spotify.com/dashboard
- Add the Redirect URI
http://127.0.0.1:8888/callbackand tick "Web API" /spotify setup <client-id>, then/spotify login
No client secret is involved anywhere (Authorization Code with PKCE); tokens stay in Claude Code's plugin storage on your machine.
Develop
Load a checkout instead of the installed copy with
claude --plugin-dir /path/to/claudify, or set CLAUDE_CODE_PLUGIN_DIRS in the
env block of ~/.claude/settings.json.
Commands
/spotify open the player sidebar
/spotify play [query] resume, or search a track and play it
/spotify playlist <query> search a playlist and play it
/spotify pause | toggle | next | prev
/spotify vol <0-100> | mute
/spotify shuffle on|off | repeat off|context|track
/spotify bg terminal|none|album|#rrggbb
/spotify devices | now | close | logout | help
/spotify setup <client-id> | setup default
Test
claude plugin validate .
claude plugin test .