# Send Spotify Player 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-linux",
    "name": "Spotify Player",
    "source": "tencent",
    "type": "skill",
    "category": "开发工具",
    "sourceUrl": "https://clawhub.ai/Shaharsha/spotify-linux",
    "canonicalUrl": "https://clawhub.ai/Shaharsha/spotify-linux",
    "targetPlatform": "OpenClaw"
  },
  "install": {
    "downloadUrl": "/downloads/spotify-linux",
    "sourceDownloadUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=spotify-linux",
    "sourcePlatform": "tencent",
    "targetPlatform": "OpenClaw",
    "packageFormat": "ZIP package",
    "primaryDoc": "SKILL.md",
    "includedAssets": [
      "SKILL.md"
    ],
    "downloadMode": "redirect",
    "sourceHealth": {
      "source": "tencent",
      "slug": "spotify-linux",
      "status": "healthy",
      "reason": "direct_download_ok",
      "recommendedAction": "download",
      "checkedAt": "2026-05-10T03:06:12.704Z",
      "expiresAt": "2026-05-17T03:06:12.704Z",
      "httpStatus": 200,
      "finalUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=spotify-linux",
      "contentType": "application/zip",
      "probeMethod": "head",
      "details": {
        "probeUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=spotify-linux",
        "contentDisposition": "attachment; filename=\"spotify-linux-1.2.0.zip\"",
        "redirectLocation": null,
        "bodySnippet": null,
        "slug": "spotify-linux"
      },
      "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-linux"
    },
    "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-linux",
    "downloadUrl": "https://openagent3.xyz/downloads/spotify-linux",
    "agentUrl": "https://openagent3.xyz/skills/spotify-linux/agent",
    "manifestUrl": "https://openagent3.xyz/skills/spotify-linux/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/spotify-linux/agent.md"
  }
}
```
## Documentation

### Spogo - Spotify CLI for Linux Servers

Control Spotify from headless Linux servers using cookie-based auth. No OAuth callback needed - perfect for remote servers.

### Why This Skill?

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.

### Requirements

Spotify Premium account
Go 1.21+ installed
User's Spotify browser cookies

### 1. Install Go (if not installed)

# 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

### 2. Install spogo

go install github.com/steipete/spogo/cmd/spogo@latest

This installs to ~/go/bin/spogo. Add to PATH if needed:

sudo ln -s ~/go/bin/spogo /usr/local/bin/spogo

### 3. Verify

spogo --version
# spogo v0.2.0

### Setup (Cookie Auth)

Since OAuth requires localhost callback (impossible on remote servers), we use cookie auth instead.

### 1. Get cookies from browser

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)

### 2. Create config

Create ~/.config/spogo/config.toml:

default_profile = "default"

[profile.default]
cookie_path = "/root/.config/spogo/cookies/default.json"
market = "IL"
language = "en"

### 3. Create cookies file

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
  }
]

### 4. Verify

spogo auth status
# → "Cookies: 2 (file)"

### Commands

# 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

### "missing device id" Error - Browser Fallback

spogo needs an active Spotify session. If no device played recently:

Open track in browser:

browser open https://open.spotify.com/track/TRACK_ID profile=openclaw

Click Play via browser automation


Transfer to target device:

spogo device set "DEVICE_ID"

The browser profile stays logged in (cookies persist). Session stays active for hours after playback.

### Rate Limits

Connect API (default): No rate limits ✓
Web API (--engine web): Rate limited (429 errors)
For library access when rate limited → use browser automation

### "missing device id"

No active Spotify session. Use browser fallback (see above) to start playback first.

### "401 Unauthorized"

Cookies expired. Get fresh cookies from browser and update the JSON file.

### Commands work but no sound

Check spogo device list - playback might be on wrong device. Use spogo device set "DEVICE_ID" to switch.

### Security & Privacy

Cookie handling: sp_dc and sp_t are stored locally in ~/.config/spogo/cookies/ — treat them as secrets, never log or share them
Network access: spogo only communicates with Spotify APIs (api.spotify.com, open.spotify.com)
Browser fallback: Optional — only used when no active Spotify device exists. Uses the agent's browser profile to open open.spotify.com and click Play. This does NOT extract additional cookies or access other browser state
Install source: go install from the official steipete/spogo GitHub repository — open source, auditable

### Notes

Cookie expiry: ~1 year, but may invalidate if user logs out or changes password
Premium required: Free accounts can't use Connect API
Market setting: Change market in config for correct regional availability (IL, US, etc.)
## Trust
- Source: tencent
- Verification: Indexed source record
- Publisher: Shaharsha
- Version: 1.1.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:06:12.704Z
- Expires at: 2026-05-17T03:06:12.704Z
- Recommended action: Download for OpenClaw
## Links
- [Detail page](https://openagent3.xyz/skills/spotify-linux)
- [Send to Agent page](https://openagent3.xyz/skills/spotify-linux/agent)
- [JSON manifest](https://openagent3.xyz/skills/spotify-linux/agent.json)
- [Markdown brief](https://openagent3.xyz/skills/spotify-linux/agent.md)
- [Download page](https://openagent3.xyz/downloads/spotify-linux)