Spotify Control — AI Plays Music
Spotify Control — AI Plays Music — easy-to-understand guide based on official docs
It’s like handing your DJ a remote control, except the DJ is your AI assistant and the remote works across every speaker in your house.
Why This Matters
You’re typing away, deep in flow, and suddenly you need a song change. Instead of unlocking your phone, opening Spotify, and breaking your concentration, you just ask Hermes. It pauses, skips, queues, or searches—all through the official Spotify API. No hacks, no screen scraping, just clean, legal control.
The One-Time Setup (About 5 Minutes)
Hermes uses Spotify’s official Web API with PKCE OAuth. That sounds technical, but here’s what it means for you: you log in once, and Hermes handles the rest. Tokens refresh automatically. You only re-auth every six months or so.
The catch? Spotify requires every user to create their own tiny developer app. It’s free, takes two minutes, and Hermes walks you through it step by step.
Fastest Path: One Command
Run this and follow the prompts:
hermes tools
Scroll to 🎵 Spotify, press space to toggle it on, then press s to save. Hermes immediately drops you into the OAuth flow. If you don’t have a Spotify app yet, it opens the developer dashboard in your browser, tells you exactly what to paste, and asks for your Client ID. Once you approve, you’re done—toolset enabled AND authenticated in one pass.
Prefer Step-by-Step? No Problem
First, enable the toolset:
hermes tools
Toggle Spotify on, save, and when the wizard opens, press Ctrl+C to dismiss it. The tools stay on; only auth is deferred.
Then, run the login wizard separately:
hermes auth spotify
Hermes will ask for your Client ID if it’s not already saved. After you paste it, the browser opens for Spotify login. Approve, and you’re authenticated.
What You Need to Know
- Free Spotify account? You get search, playlists, saved tracks, and listening history.
- Premium account? You also get playback control—play, pause, skip, seek, volume, queue, and transfer.
- Active device required: For playback tools, Spotify must be open on at least one device (phone, desktop, web, speaker). If not, you’ll see a
403 Forbiddenerror. Just open Spotify anywhere and retry.
The 7 Tools Appear Only After You Enable Them
Hermes keeps things lean. The Spotify tools are off by default, so users who don’t want them don’t ship extra tool schemas on every API call. Once you toggle the toolset on, all 7 tools appear in your agent’s toolbox.
Final Tip
Save your Client ID somewhere safe. It’s stored in ~/.hermes/.env, so you won’t need it again on this machine. But if you switch computers, you’ll be glad you kept it.
Summary: Enable the toolset, run the auth wizard, and let Hermes handle the music. It’s one small setup for you, one giant leap for your productivity.
Practical tip: Start with search and playlist tools first—they work on free accounts and don’t require an active device. Once you’re comfortable, upgrade to playback and enjoy hands-free control.
📖 Official Docs
This article is based on the official Hermes Agent documentation:Official docs › user-guide/spotify