« Documentation

WIP. Last update: 0.6.6

Setting up external services

Made in Switzerland  in personal time, at private expense.
Donate (external site, opens in a new tab) to help cover development costs, or support a charity (external site, opens in a new tab).

Sleevesight runs no server and includes no API keys of its own. You choose which external services to use, save your own keys for the ones that need them, and switch them on.

For every setting in detail, see Settings; for prices and free tiers, see What it costs you.

1. Which services need a key, and why

Services fall into two groups in Settings: Sources (which gather facts about the playing track) and AI services (which write the short insight from those facts).

Service Where in Settings Key needed? What it does What if it is not enabled?
MusicBrainz Sources No (on by default) Identifies the recording, artists, release dates, credits and tags, and gives the album’s tracklist. Other sources match by name alone, without MusicBrainz’s identifier check; release dates, the album’s tracklist and MusicBrainz genre tags are missing.
Wikipedia and Wikidata Sources No (on by default) Articles on songs, albums and artists, facts from Wikidata, and genre definitions; for a track sung in another language, also the Wikipedia in that language. No Wikipedia or Wikidata lines in the evidence, and no Wikipedia definition in a genre’s panel.
LRCLIB Sources No (on by default) An open lyrics library: whether a track has lyrics, to tell sung tracks from instrumental ones. Whether a track is instrumental rests on the other sources’ tags and, with AI web search on, a web search.
Last.fm Sources Yes Listeners’ genre tags, artist biographies, listener counts and similar artists. Stays off. The app works without it, using MusicBrainz and Wikipedia for facts and MusicBrainz alone for genre labels.
Exa web search Sources Yes Searches the web for articles and quotes about the track and the album, and, with AI web search, the pages your AI service answers from: Ask AI, Find the lyrics, Explain the song, the check whether a track is instrumental, and the artist’s or the song’s insight when the other sources fall short. Stays off. Insights rely on MusicBrainz, Wikipedia, Wikidata and Last.fm, which often suffices for well-known tracks; newer or less-documented tracks may have little or nothing to write from. Ask AI and Find the lyrics answer from the model’s own knowledge, and Explain the song is not offered.
Anthropic, OpenAI, or Google (Gemini) AI services Yes (one service at a time) Writes the track’s insight, and the song’s, the artist’s and the album’s, from the sources’ evidence; answers Why is this …? in a genre’s panel, Explain the song, and Ask AI or Find the lyrics when a source has nothing. The app still looks the track up and shows the genre labels and all evidence under Sources, but writes no insight (Key insights says Choose an AI service and save its key in Settings to have insights written.).

Every request goes straight from your phone to the services you switch on, over HTTPS, with each API key sent only to its own service. A service that is off receives nothing.

2. How to get the keys

You only need keys for the services you want to use: one AI service (to have insights written), and optionally Last.fm and Exa.

Service Where to get the key Cost & documentation
Anthropic Claude Console → API keys Paid per token (a small one-off free credit for new accounts); about $0.0002 an insight on the default model. Anthropic docs · Pricing
OpenAI OpenAI Platform → API keys Paid per token; about $0.0002 an insight on the default model. OpenAI docs · Pricing
Google (Gemini) Google AI Studio → Get API key Free tier within daily limits (outside the EEA, Switzerland and the UK, Google uses free-tier requests to improve its products; a Google Cloud project with billing on uses the paid tier). Gemini API docs · Pricing
Last.fm Create a Last.fm API account (copy the API Key, a 32-character hex string; the Shared secret is not needed) Free for non-commercial use. Last.fm API docs · Terms
Exa Exa dashboard → API keys $10 of free credit every month (up to 2,500 searches, no card needed); $0.004 per search after that. Exa docs · Pricing

If you are in the closed test on Google Play, you can also use the Anthropic key we provide (Testing Sleevesight).

3. How to enter the keys

Open Settings (the cogwheel at the top right of the home screen) and tap the Secrets chip to open its panel. Keys are stored encrypted on the phone, never backed up, and never shown again once saved.

Entering one key (Anthropic API key, Last.fm API key, …)

Tap the service’s row under Secrets (or tap Set your … API key here. directly under the service in AI services or Sources). The dialog offers three ways to fill the Key field:

Under the field, a box offers to switch the service on as the key is saved (section 4); tap Save, and a summary says what was saved and switched on, with Done.

Entering several keys at once (Load keys)

To load any combination of AI, Last.fm and Exa keys in one scan:

  1. On the phone, under Secrets, tap Load keys. The first screen names the page that makes the code; tap Start.
  2. Step 1, Encryption words. The phone shows five random words, to be used within 5 minutes; when they expire, new ones are drawn by themselves. On a computer, open sleevesight.app/api-keys (the page makes no network requests and sends your keys nowhere). Type the five words into its boxes (the first three letters of each word are enough), then paste your keys into their fields or drop a NAME=value keys file onto the page. The page draws one QR code sealed with those words. On the phone, tap Next.
  3. Step 2, QR Code. Scan the code. The phone unseals it and says QR code read; tap Next.
  4. Step 3, Keys to save. The phone lists the keys it found by their last four characters, each ticked to be saved, and names any that did not scan. Untick any you do not want, and tap Next.
  5. Step 4, Services to enable. The phone asks Which services do you want to enable?: the sources are ticked, and an AI service is ticked when its key is the only AI key and no AI service was set up before; otherwise it starts as it was, so a key saved again for a service switched off leaves it off. With several AI services to choose from, choose one, or none. Tap Complete: only now are the keys saved and the services switched. The Summary says which keys were saved and which services were switched on or off; Done closes it.

Previous goes back a step, and Cancel leaves with nothing saved and nothing switched.

4. How to enable the services

Saving a key switches its service on, as you choose while saving. A key’s dialog has Enable … under its field, ticked for a source, and for an AI service while none is on; while another AI service is on, it offers Switch the AI service to …, unticked, so the service that writes changes only if you tick it. Load keys asks which services to switch on after it saves the keys. To switch a service on or off later, open its section in Settings:

5. How to check that they work

Play a song in a music player you follow (Spotify is followed by default; enable any other under Settings → Players) and return to Sleevesight’s home screen:

« Documentation