Guide

Make AI playlists from your local music

Set up Core Musica with an OpenAI-compatible endpoint, Ollama, OpenRouter or another provider, build a playlist from a prompt, and see what data is sent.

Last updated

You can describe a playlist in your own words, such as "mellow late-night jazz from the 60s", and have Core Musica build it from the files in your library. The AI turns your description into playlist settings. Core Musica's similarity engine then picks the tracks. Both the Windows app and the cross-platform app for macOS and Linux include this.

Choose a provider

No provider is selected when you start. One provider setting is shared by the app's AI features.

Provider What you need
OpenAI-compatible A server or service that offers the chat completions API, local or hosted
Ollama Ollama running, with a model downloaded
Anthropic API or Google Gemini API An API key
Anthropic CLI, Google Gemini CLI or GitHub Copilot CLI That command line tool, installed and signed in

Pick it in Settings, under AI & recommendations, in the AI provider settings.

Set up an OpenAI-compatible endpoint

  1. Select the OpenAI-compatible provider.
  2. Enter the Base URL. Core Musica adds /chat/completions to it, so it usually ends in /v1. The starting value is http://localhost:1234/v1, which suits a local server on that port.
  3. Enter an API key if the service needs one. It is optional and is sent as a bearer token. The app saves it in its credential store.
  4. Enter the model name exactly as the service expects it. The starting value is gpt-4o-mini, so change it if your service does not offer that.
  5. Press Test.

"Compatible" varies between services and models. A model still has to follow instructions and return valid JSON. Small models can fail at that, and you will see an error instead of a playlist.

OpenRouter

Press Use OpenRouter free router to fill in the base URL https://openrouter.ai/api/v1 and the model openrouter/free, then add your OpenRouter key. You can enter another OpenRouter model name instead.

The provider profile setting has three values. auto recognizes OpenRouter's own HTTPS address. Choose openrouter if you reach it through a proxy, and generic for other services. With the OpenRouter profile, the app asks for output matching a strict schema, asks OpenRouter to use only providers that support the request, and enables its response-healing plugin.

Restrict OpenRouter to providers that do not collect data adds that restriction to the request. OpenRouter is what enforces it, and it can leave fewer models available. The free router has limited availability, and you may be told you hit a rate limit.

Local servers and AI matching

For AI matching, the generic profile also asks for JSON response format. If your server rejects that, generation carries on without the AI's help. The prompt step does not send that field.

Set up Ollama

Enter the Ollama address (http://localhost:11434 to start) and choose the model. Playlist features use the model set for Ollama's suggestions, which starts as llama3.1:8b. If you also use tag similarity scoring with Ollama, it uses the nomic-embed-text model, so download that too.

Build a playlist from a prompt

To check the settings first: choose Generate Dynamic Playlist, open the Describe tab, type your description and press Interpret. Look over the seeds, filters and weights it filled in, change anything you like, then generate.

For a quick one: type into the prompt box on the Playlists screen and press Generate. This creates the playlist and starts building it straight away.

What to expect:

  • The AI is given the tags and top artists your library has. Values it makes up are discarded. If your library has no mood tags, asking for a mood has little to work with, so enrich your metadata and tidy your tags first.
  • The parts that can shape the result are artist, genre and mood seeds, weights, genre and mood restrictions, excluded genres, moods, themes and instruments, years, language, live and top-track options, track limit and minimum similarity.
  • Required and excluded tag lists are hard filters, and Core Musica applies all of them. Under Show advanced filters they are Required subgenres, Excluded subgenres, Required themes, Required instruments, Required vocal styles and Required production styles, next to the genre, mood and other lists. A track must have at least one value from each required list you fill in, so tracks with no data of that kind are left out. The AI is told to fill a required list only when you clearly insist, for example "only" or "nothing but", but check the advanced filters before you generate. With thin tags, a strict filter can give a short or empty playlist.
  • A dynamic playlist saved by an older version of Core Musica that already holds any of those six lists did not apply them then. It keeps ignoring them until you choose. The first time you regenerate or top it up, Core Musica asks Apply saved playlist filters?. You can apply them, review them in the editor first, or cancel, in which case it asks again next time. Applying them can make the playlist shorter.
  • If you use another computer's library through a remote connection, the host must report the playlist-tag-constraints capability to save those six lists. A host without it would silently drop them, so Core Musica shows a notice and refuses to save a playlist that fills any of them. Clear those lists or update Core Musica on the host.
  • A playlist can come out shorter than the limit. Try a lower minimum similarity.

If a slow model times out on the prompt step, the Windows app has a Summary timeout setting that also covers it. The default is 30 seconds.

Optional AI help during generation

AI matching starts on Assist, including for playlists made from the prompt box.

  • Assist asks the provider to suggest styles for up to 100 uncertain tracks: ones that fail the style check and have no genre or subgenre tags, or only broad Rock or Metal genres. The suggestions are used for playlist matching only, not saved as track tags, and are cached.
  • Review does that, and also asks about up to 100 borderline tracks. The AI can reject one or move its score by up to 10 points.
  • Off uses your library metadata only.

If you tick Generate AI-assisted playlist notes, you also get a short description and up to three suggestions for refining the playlist.

AI-assisted playlist notes showing a generated description, three curation hints and buttons to use or dismiss them (screenshot from March 2026)

The AI works from text. It has not heard your music, and its notes can be wrong.

What is sent to the provider

Step Data in the request
Interpreting a prompt Your prompt, plus lists from your library: tag values such as genres, moods, themes and instruments, languages, the range of years, and up to 200 of your most common artists. No track list.
AI matching The seed styles, and for the tracks being checked: an internal ID, title, artist, album, genres, subgenres, moods and score
Playlist notes The playlist name, seeds and options, and up to 12 tracks with title, artist, album, genres, moods and score

These three requests do not include audio or file paths. Other AI features, such as metadata suggestions, library summaries, tag similarity scoring and theme matching during Genius enrichment, use the same provider and send their own data. See the AI features guide.

Local or hosted? Where the data goes depends on the address and provider you choose.

  • With a base URL on the same computer, such as localhost, Core Musica sends requests to that program. What that program does next is up to it. If it forwards requests to a cloud service, your data leaves your computer.
  • With a hosted service, the data goes to that service under its terms. OpenRouter passes requests on to the model provider it selects.
  • The command line options run the vendor's tool, which sends the request to that vendor.

In offline mode, the OpenAI-compatible and Ollama providers still work with an address on the same computer. An address elsewhere on your network is not treated as local.

Costs and limits

The app's AI usage caps cover AI matching and several other AI features. They do not cap interpreting prompts or generating playlist notes. If you use a paid service, set a spending limit with the provider too.

An unhandled error has occurred. Reload 🗙

Rejoining the server...

Rejoin failed. Trying again in seconds.

Failed to rejoin. Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session. Please retry or reload the page.