# Send Spotify to your agent
Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.
## Fast path
- Download the package from Yavira.
- Extract it into a folder your agent can access.
- Paste one of the prompts below and point your agent at the extracted folder.
## Suggested prompts
### New install

```text
I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Tell me what you changed and call out any manual steps you could not complete.
```
### Upgrade existing

```text
I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Summarize what changed and any follow-up checks I should run.
```
## Machine-readable fields
```json
{
  "schemaVersion": "1.0",
  "item": {
    "slug": "spotify-cli",
    "name": "Spotify",
    "source": "tencent",
    "type": "skill",
    "category": "开发工具",
    "sourceUrl": "https://clawhub.ai/ShawnPana/spotify-cli",
    "canonicalUrl": "https://clawhub.ai/ShawnPana/spotify-cli",
    "targetPlatform": "OpenClaw"
  },
  "install": {
    "downloadUrl": "/downloads/spotify-cli",
    "sourceDownloadUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=spotify-cli",
    "sourcePlatform": "tencent",
    "targetPlatform": "OpenClaw",
    "packageFormat": "ZIP package",
    "primaryDoc": "SKILL.md",
    "includedAssets": [
      "SKILL.md"
    ],
    "downloadMode": "redirect",
    "sourceHealth": {
      "source": "tencent",
      "slug": "spotify-cli",
      "status": "healthy",
      "reason": "direct_download_ok",
      "recommendedAction": "download",
      "checkedAt": "2026-05-10T03:04:54.717Z",
      "expiresAt": "2026-05-17T03:04:54.717Z",
      "httpStatus": 200,
      "finalUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=spotify-cli",
      "contentType": "application/zip",
      "probeMethod": "head",
      "details": {
        "probeUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=spotify-cli",
        "contentDisposition": "attachment; filename=\"spotify-cli-1.0.0.zip\"",
        "redirectLocation": null,
        "bodySnippet": null,
        "slug": "spotify-cli"
      },
      "scope": "item",
      "summary": "Item download looks usable.",
      "detail": "Yavira can redirect you to the upstream package for this item.",
      "primaryActionLabel": "Download for OpenClaw",
      "primaryActionHref": "/downloads/spotify-cli"
    },
    "validation": {
      "installChecklist": [
        "Use the Yavira download entry.",
        "Review SKILL.md after the package is downloaded.",
        "Confirm the extracted package contains the expected setup assets."
      ],
      "postInstallChecks": [
        "Confirm the extracted package includes the expected docs or setup files.",
        "Validate the skill or prompts are available in your target agent workspace.",
        "Capture any manual follow-up steps the agent could not complete."
      ]
    }
  },
  "links": {
    "detailUrl": "https://openagent3.xyz/skills/spotify-cli",
    "downloadUrl": "https://openagent3.xyz/downloads/spotify-cli",
    "agentUrl": "https://openagent3.xyz/skills/spotify-cli/agent",
    "manifestUrl": "https://openagent3.xyz/skills/spotify-cli/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/spotify-cli/agent.md"
  }
}
```
## Documentation

### Spotify CLI

A simple command-line interface for controlling Spotify playback from a Raspberry Pi (or any Linux system).

### Requirements

Python 3
Spotify Premium account
spotipy Python library
Spotify app open on another device (phone, computer, or web player)

### 1. Install dependencies

pip3 install spotipy --break-system-packages

### 2. Create a Spotify Developer App

Go to https://developer.spotify.com/dashboard
Log in and click "Create App"
Set Redirect URI to http://127.0.0.1:8888/callback
Copy the Client ID and Client Secret

### 3. Create config file

mkdir -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.

### 4. Install the script

sudo cp spotify /usr/local/bin/spotify
sudo chmod +x /usr/local/bin/spotify

### 5. Authenticate

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.

### Commands

CommandDescriptionspotify search <query>Search for songs (shows top 5 results)spotify play <song>Search and play a songspotify pausePause playbackspotify resumeResume playbackspotify nextSkip to next trackspotify prevPrevious trackspotify statusShow currently playing trackspotify devicesList available Spotify devices

### Examples

# 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

### Best Practices (for AI agents)

When using this tool on behalf of a user:

Always search first before playing. Use spotify search "query" to see results.
Verify the match - confirm with the user that the search results match what they were looking for.
Then play - once confirmed, use 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"

### Notes

This CLI controls playback on an existing Spotify session. You need Spotify open on another device (phone, computer, or https://open.spotify.com).
The CLI sends commands to that device - audio plays there, not on the Pi.
Requires Spotify Premium for playback control.

### "No active device found"

Open Spotify on your phone/computer and play something, then try again.

### "No devices found"

Make sure Spotify is open on at least one device and logged into the same account.

### Auth token expired

Delete ~/.cache-* files and re-authenticate.
## Trust
- Source: tencent
- Verification: Indexed source record
- Publisher: ShawnPana
- Version: 1.0.0
## Source health
- Status: healthy
- Item download looks usable.
- Yavira can redirect you to the upstream package for this item.
- Health scope: item
- Reason: direct_download_ok
- Checked at: 2026-05-10T03:04:54.717Z
- Expires at: 2026-05-17T03:04:54.717Z
- Recommended action: Download for OpenClaw
## Links
- [Detail page](https://openagent3.xyz/skills/spotify-cli)
- [Send to Agent page](https://openagent3.xyz/skills/spotify-cli/agent)
- [JSON manifest](https://openagent3.xyz/skills/spotify-cli/agent.json)
- [Markdown brief](https://openagent3.xyz/skills/spotify-cli/agent.md)
- [Download page](https://openagent3.xyz/downloads/spotify-cli)