Skip to content

Koito

Updated

Koito is a scrobbler. It sits behind whatever you actually play music with, records every track that gets played, and turns that stream of events into something worth looking at: top artists, top albums, listening hours, and a history you can scroll back through.

It speaks the ListenBrainz API, which is the useful part. Anything that can scrobble to ListenBrainz can scrobble to Koito instead, and that covers Navidrome, most Android and iOS music players, and the desktop bridges people use for Spotify and Apple Music. Nothing needs to know Koito exists by name.

Get a 7-day trial of ElfHosted Koito! πŸͺ„

How do I access Koito?

Koito is available:

Signed-in users see their own URLs

The addresses above show the general pattern. Sign in and these become your personal, clickable links.

Why would I want this?

  • Your history stops belonging to somebody else. Last.fm has your listening data going back years and can decide tomorrow what you may do with it. Koito keeps the same data where you can export it.
  • It runs alongside your existing scrobbler, not instead of it. Koito can relay everything it receives on to Last.fm or ListenBrainz, so you can run it for a few months and lose nothing if you decide it is not for you.
  • It brings your old history with it. Imports work from Spotify, Last.fm, ListenBrainz and Maloja, so you start with your full history rather than an empty page.

First login

Koito ships with a starting account of elfie / changemeelfie. Change the password from the Account tab in Koito's settings the first time you sign in.

Your ElfHosted login already stands in front of the Koito web interface, so this second password is not what keeps strangers out. It is what protects your API Keys page, and that key is the one thing worth guarding: anyone holding it can write listens into your history.

Getting your API key

Press ++backslash++ (or click the settings icon), sign in on the Account tab, then open the API Keys tab. The key shown there is what every scrobble client authenticates with.

Scrobbling from Navidrome

Point Navidrome at Koito with ElfBot:

Replace <domain> with the domain in your dashboard's address (for example elfhosted.com).

Quick-paste into Navidrome's environment variables using ElfBot
ND_LISTENBRAINZ_ENABLED=true
ND_LISTENBRAINZ_BASEURL=https://<your username>-koito.<domain>/apis/listenbrainz/1

Then in Navidrome, open Settings, then Personal, and turn on Scrobble to ListenBrainz. It will ask for a token: paste in your Koito API key.

Scrobbling from a phone or desktop

Any ListenBrainz-compatible client works the same way. Give it:

Setting Value
API URL https://<your username>-koito.<domain>/apis/listenbrainz/1
Token Your Koito API key

Some clients want the address without the trailing /1. If a client rejects the URL above, try it without.

The scrobble endpoint is reachable without an ElfHosted login, because a phone cannot complete a browser sign-in. It is protected by your API key instead, and rejects anything that does not carry one. Everything else, including the page that shows you that key, stays behind your ElfHosted login.

Showing album art

Koito can pull artwork from your Navidrome library rather than the internet. Set these with ElfBot:

Quick-paste into Koito's environment variables using ElfBot
KOITO_SUBSONIC_URL=https://<your username>-navidrome.<domain>
KOITO_SUBSONIC_PARAMS=u=<navidrome user>&t=<token>&s=<salt>

The three parameters come out of any authenticated Navidrome request. Open Navidrome in a browser, press ++f12++, look at the Network tab, and copy them from the query string of a getCoverArt call.

Koito refuses to start if these are wrong

Koito validates the Subsonic settings during startup and exits if they fail. If Koito stops coming up after you set these, that is why. Clear them with ElfBot and it will start again.

Importing your history

Koito reads import files from import inside its config folder, and picks them up when it next starts.

  1. Get your export: Spotify, Last.fm via ghan.nl, ListenBrainz, or the Export button on another Maloja instance.
  2. Copy the file into /storage/config/koito/import/ using FileBrowser.
  3. Restart Koito from ElfBot. The import starts on its own.

The filename matters, because that is how Koito decides which format it is looking at. Keep Streaming_History_Audio in Spotify filenames, recenttracks for Last.fm, listenbrainz for ListenBrainz, and maloja for Maloja.

Large imports take a while

Every unfamiliar artist means a MusicBrainz lookup, and those are rate limited to one per second, by MusicBrainz and not by us. A decade of Last.fm history can take hours. It runs in the background and you can use Koito while it works.

Relaying to Last.fm or ListenBrainz

If you are not ready to leave your existing scrobbler, Koito will forward everything it receives to another ListenBrainz-compatible server. Set this with ElfBot:

Quick-paste into Koito's environment variables using ElfBot
KOITO_ENABLE_LBZ_RELAY=true
KOITO_LBZ_RELAY_URL=https://api.listenbrainz.org/1
KOITO_LBZ_RELAY_TOKEN=<your listenbrainz token>

Restart Koito afterwards. The relay URL needs the full path to the other server's endpoint, not just its hostname.

Koito or Maloja?

Both record the same thing. Maloja is the older and steadier of the two, speaks more scrobble dialects, and has a plainer interface. Koito is the newer one, is faster with a large history, and looks considerably better.

Koito's own author describes the project as unstable and still moving, so expect the occasional rough edge on upgrade. If that matters more to you than the interface does, run Maloja instead. Both can import from the other, so the choice is not permanent.

Koito also works with

How do I get support for Koito?

  1. For general use of Koito, refer to the official site or to one of the links in the resources section below.

  2. For specific support re your ElfHosted configuration / account, see the ElfHosted support options!

You can contribute directly to the development of Koito using the following:

Koito resources

What users say..

We're rocking some excellent ⭐⭐⭐⭐⭐ TrustPilot Reviews, and here's what some of our usersfriends say..

Fantastic customer service. They are active on Discord at almost any hour of the day and offer you walkthroughs/tips on how to get the most out of your product.

β˜…β˜…β˜…β˜…β˜… Rory M. (Trustpilot)

I am absolutely stoked with my experience with ElfHosted! I paid for their Elf Wizard VIP Setup Experience, and it was worth every single penny.

My elf wizard, Waansin, was absolutely fantastic to work with. He was incredibly kind, caring, and clearly knows these products inside and out. He took the time to ensure everything was configured perfectly and got a totally awesome service up and running for me without any hassle.

The range of services ElfHosted offers is fantastic. The platform itself is fast, rock-solid stable, and delivers exactly what I want. What really gives me peace of mind is knowing how stellar their support isβ€”I feel completely confident that if anything ever goes wrong, they will be right there to help me fix it.

If you are on the fence, definitely go for it. Huge thanks to Waansin and the team for the top-tier service!

β˜…β˜…β˜…β˜…β˜… Tim D. (Trustpilot)

Had troble getting my server to work. Staff team told me they would look into it and they did, within 24 hours i had a solution and everything is working as it should now. Would 100% recommend

β˜…β˜…β˜…β˜…β˜… Kasper P. (Trustpilot)

an amazing talented team and I'm very thankful to be with them

β˜…β˜…β˜…β˜…β˜… Ahmed (Trustpilot)