Save to Spotify
A command-line tool for saving audio content to Spotify. Built for agents and automation, generate a daily briefing, language lesson, or meeting recap, then push it to Spotify where it's available alongside your other listening.
What you can make
Point your agent at content you have, and get a finished episode on Spotify:
- Morning briefing — your calendar, tasks, and overnight repo activity as a 3-minute daily brief
- Deep dive — turn a topic, article, or PDF into a personalized audio explainer
- Meeting recap — drop in a transcript, get a 2-minute summary with action items
- Travel guide — a private audio itinerary for your next trip
- News roundup — a daily roundup from the newsletters, feeds, and sites you follow
- Bedtime story — a custom story using your kid's name and favorite setting
Describe what you want in plain English; the agent sources, scripts, narrates, and saves it.
Making the audio
This CLI saves audio to Spotify — it does not generate speech itself. You bring a voice engine:
- Kokoro (recommended) — free, local, no API key, no limits (~340 MB)
- OpenAI TTS — high quality, needs
OPENAI_API_KEY
- ElevenLabs — most natural, needs
ELEVENLABS_API_KEY
No key? Kokoro is the default. Already have an OpenAI or ElevenLabs key? The agent detects it and offers to use it — no extra setup.
Run save-to-spotify tts status to see what's available, or save-to-spotify tts add to register any other engine.
Quick Start
Prompt your agent to install:
> Install Save to Spotify by running https://saveto.spotify.com/install.sh
Installs the CLI and exposes the skill to Claude Code, Cursor, Codex, and any agent that reads .agents/skills/.
Once installed, invoke with /save-to-spotify (Claude Code) or $save-to-spotify (Codex), or just describe what you want in plain English.
Install
Curl-bash
Same script the Quick Start prompt runs:
curl -fsSL https://saveto.spotify.com/install.sh | bash
Common options:
# Pin a specific version
curl -fsSL https://saveto.spotify.com/install.sh | bash -s -- --version 0.2.1
# Custom install directory
curl -fsSL https://saveto.spotify.com/install.sh | bash -s -- --dir ~/.local/bin
# Binary only, skip the agent skill
curl -fsSL https://saveto.spotify.com/install.sh | bash -s -- --no-skills
Skills.sh
Install the agent skill to Claude Code, Cursor, Codex, and 50+ other agents:
npx skills add spotify/save-to-spotify
ClawHub / OpenClaw
Save to Spotify is listed on ClawHub as @spotify/save-to-spotify. Install it into your active OpenClaw workspace:
openclaw skills install @spotify/save-to-spotify
The ClawHub listing installs the agent skill. The skill uses the save-to-spotify CLI, so if the binary is not already on your PATH, run the curl-bash installer above.
Claude Code plugin marketplace
/plugin marketplace add spotify/save-to-spotify
/plugin install save-to-spotify@save-to-spotify
Manual
If you can't run the install script:
- Download
save-to-spotify-{os}-{arch}-v{version}.zip and its matching .sha256 from the releases page.
- Verify integrity:
shasum -c save-to-spotify-darwin-arm64-v0.2.1.zip.sha256
- Unzip, you get the binary plus a
skills/save-to-spotify/ tree.
- Move the binary to a directory on your
PATH and chmod +x it (not needed on Windows).
- (Optional) Copy
skills/save-to-spotify/ into your agent's skill directory, e.g. ~/.claude/skills/save-to-spotify/ or ~/.cursor/skills/save-to-spotify/.
Windows notes
- Run the install script in Git Bash (ships with Git for Windows); it installs
save-to-spotify.exe to ~/.local/bin and offers a PATH fix.
- The Windows binaries are not code-signed yet: SmartScreen may block the first run. Unblock with right-click → Properties → Unblock, or
Unblock-File save-to-spotify.exe in PowerShell.
Build from source
Requires Go 1.21+.
go build -ldflags "-X github.com/spotify/save-to-spotify/cmd.commit=$(git rev-parse --short HEAD)" \
-o save-to-spotify .
sudo mv save-to-spotify /usr/local/bin/
Authentication
Log in once, the CLI stores your token and refreshes it automatically.
# Opens your browser to authorize (default)
save-to-spotify auth login
# Headless mode, prints a URL to open on any device, then you paste back the redirect URL
# Useful for SSH sessions and remote servers
save-to-spotify auth login --no-browser
# Check if you're logged in
save-to-spotify auth status
# Log out (removes stored credentials)
save-to-spotify auth logout