An AI-powered Spotify playlist manager that uses real web research and retrieval to find songs. Unlike simple recommendation engines, the AI actually searches the web, analyzes your music taste, and cross-references against Spotify's catalog to build playlists with genuine depth and variety.
You supply your own API keys. Nothing is stored externally.
Generate from your playlists -- Select existing playlists. The AI analyzes your taste and builds a new playlist of songs you will actually like, pulling from the full Spotify catalog.
Generate from a prompt -- Describe what you want. The AI researches artists, subgenres, and deep cuts using web search, then resolves every track against Spotify.
Manage playlists -- Sort by release date, popularity, artist, or name. Chat with the AI about your library. Add AI-matched songs to existing playlists. Rename, delete, and edit playlists inline.
Multi-model support -- Choose between OpenAI models (GPT-5 Mini, GPT-5.2, GPT-5 Nano, and others) or Google Gemini models.
Other features -- Thumbs up/down ratings with iterative refinement, one-click save to Spotify, dark Spotify-inspired UI.
- Python 3.10 or newer
- A Spotify Developer account (free)
- An OpenAI API key, a Google Gemini API key, or both
No installation required. Just download and run.
- Go to the Releases Page on GitHub.
- Download the latest
SpotifyPlaylistManager.exe. - Double-click to run.
- Note: Windows Defender might flag this because it is not digitally signed. Click "More Info" > "Run Anyway".
- The app will open in your browser automatically.
-
Clone the repository:
git clone [https://github.com/kubojion/spotify-playlist-manager.git](https://github.com/kubojion/spotify-playlist-manager.git) cd spotify-playlist-manager -
Run the launcher:
- Windows: Double-click
scripts\start.bat - Mac/Linux: Run
./scripts/start.sh(you may need to runchmod +x scripts/start.shfirst).
- Windows: Double-click
The script automatically creates a virtual environment, installs Python dependencies, and launches the app.
On the first launch, the app will open a setup screen in your browser. You will need to enter your keys:
- Go to the Spotify Developer Dashboard.
- Log in and click "Create App".
- Important: In the app settings, find "Redirect URIs" and add exactly:
http://127.0.0.1:5000/callback - Copy the Client ID and Client Secret.
- OpenAI: Go to OpenAI API Keys. (Requires a funded account).
- Google Gemini: Go to Google AI Studio. (Free tier available).
Enter these keys into the app setup screen to begin.
spotify-playlist-manager/
src/ Application source code
app.py Flask backend and API routes
ai_client.py Multi-provider AI client (OpenAI + Gemini)
spotify_client.py Spotify API wrapper
config_manager.py Configuration and secrets management
static/ Frontend (HTML, CSS, JS)
scripts/ Launcher scripts
start.bat Windows
start.sh macOS / Linux
docker/ Docker setup (optional)
run.py Entry point
requirements.txt Python dependencies
.env.example Environment variable template
API keys can be provided in two ways:
-
In-app setup (recommended) -- Enter your keys in the browser on first launch. They are saved to
config.jsonin the project root. -
Environment variables -- Copy
.env.exampleto.envand fill in your keys. Environment variables take priority overconfig.json.
- The Spotify redirect URI must be
http://127.0.0.1:5000/callback. Set this in both your Spotify Developer Dashboard and your configuration. - The app runs locally on port 5000. It does not expose anything to the internet.
config.jsonand.envare in.gitignoreand will not be committed.- This is a personal tool. You use your own API keys and interact only with your own Spotify account.
MIT
