Install Kolumi Server

Kolumi Server is one container next to Audiobookshelf and Navidrome. This guide takes you from an empty folder to the first family member in the app.

On this page

What Kolumi Server adds

  • Households and profiles for grown-ups, teens and kids, with one sign-in for Audiobookshelf and Navidrome. Kolumi Server creates or links the accounts there.
  • The kids’ mode with shelf, good night, listening time, volume limit and hidden titles. The server checks the rules on every device.
  • Devices for one person, for the whole family (“Who’s listening?”) or as a kiosk for one kid.
  • Wishes, Jam (listening together), shared playlists and printable story cards.
  • Single sign-on with OIDC, optional.
  • A web interface in English and German for libraries, households, wishes and services.

Technically it is a single Go program with SQLite inside, published as a Docker image for amd64 and arm64. It runs as a non-root user and listens on port 8080.

What you need

  • A machine with Docker and Docker Compose.
  • Audiobookshelf, Navidrome 0.64.1 or newer, or both. Each one is optional.
  • An Audiobookshelf API key of an admin user, and a Navidrome admin that has a password.
  • An address under which your phones reach the server. For use outside your home, HTTPS through a reverse proxy or a VPN.

Step 1: compose.yaml and .env

Create a folder, for example /srv/kolumi, and put two files into it. This example runs Kolumi Server together with Audiobookshelf and Navidrome. Change the media paths under volumes to where your audiobooks and music are.

compose.yaml
# Kolumi Server together with Audiobookshelf and Navidrome.
# Already running both? Keep only the kolumi-server service, put it into
# the same Docker network as Navidrome and adjust the addresses in .env.
services:
  kolumi-server:
    image: ghcr.io/xnycrofox/kolumi-server:latest
    container_name: kolumi-server
    restart: unless-stopped
    user: "1000:1000"            # must own ./data
    env_file: .env
    ports:
      - "8080:8080"              # or only through your reverse proxy
    volumes:
      - ./data:/data             # database and key: back this up
    networks:
      media:
        ipv4_address: 172.30.0.10   # fixed, so Navidrome can trust it

  audiobookshelf:
    image: ghcr.io/advplyr/audiobookshelf:latest
    restart: unless-stopped
    ports:
      - "13378:80"
    volumes:
      - /srv/media/audiobooks:/audiobooks
      - ./audiobookshelf/config:/config
      - ./audiobookshelf/metadata:/metadata
    networks:
      - media

  navidrome:
    image: deluan/navidrome:latest
    restart: unless-stopped
    user: "1000:1000"
    ports:
      - "4533:4533"
    environment:
      ND_MUSICFOLDER: /music
      # Kolumi Server signs people in with this header.
      # Trust it only when it comes from Kolumi Server.
      ND_EXTAUTH_USERHEADER: Remote-User
      ND_EXTAUTH_TRUSTEDSOURCES: 172.30.0.10/32
    volumes:
      - /srv/media/music:/music:ro
      - ./navidrome:/data
    networks:
      - media

networks:
  media:
    ipam:
      config:
        - subnet: 172.30.0.0/24
.env
# The address phones use to reach Kolumi Server (QR codes, links, sign-in)
KOLUMI_PUBLIC_URL=https://kolumi.example.org
TZ=Europe/Berlin

# Audiobookshelf: API key of an admin (Settings > API Keys)
ABS_URL=http://audiobookshelf:80
ABS_ADMIN_TOKEN=

# Navidrome: an admin with a password
ND_URL=http://navidrome:4533
ND_ADMIN_USER=
ND_ADMIN_PASSWORD=
ND_USER_HEADER=Remote-User

All other settings are optional; the configuration page lists them.

The containers run as user 1000:1000, so the data folders must belong to that user:

Terminal, in /srv/kolumi
mkdir -p data navidrome audiobookshelf/config audiobookshelf/metadata
sudo chown 1000:1000 data navidrome

You can choose another user, as long as it owns these folders. Without a user line, Kolumi Server runs as UID 65532; then data has to belong to 65532.

Already running Audiobookshelf and Navidrome?

Then you only need the kolumi-server service. Point ABS_URL and ND_URL in .env at addresses the container can reach, for example the service names in a shared Docker network or http://192.168.1.20:13378.

Kolumi Server signs people in to Navidrome with a request header (Navidrome calls this reverse proxy authentication). Navidrome needs two settings for it, both in the example above:

  • ND_EXTAUTH_USERHEADER: the name of the header. It must match ND_USER_HEADER in Kolumi Server’s .env (default Remote-User). If Navidrome already uses a header for another sign-in, for example from Authentik behind Traefik, set ND_USER_HEADER to that name instead.
  • ND_EXTAUTH_TRUSTEDSOURCES: the addresses Navidrome accepts this header from.
Trust only Kolumi Server.

Whoever may send this header to Navidrome can sign in as anyone. That is why the example gives Kolumi Server a fixed address (172.30.0.10) and Navidrome trusts only that one. Don’t trust a whole network that also contains a reverse proxy which forwards requests from the internet. Kolumi Server itself always removes this header when a client sends it.

Older Navidrome versions call the two settings ND_REVERSEPROXYUSERHEADER and ND_REVERSEPROXYWHITELIST.

Step 3: start

Start Audiobookshelf and Navidrome first if they are new, and set them up in their web interfaces: create the admin users and your libraries, then create the API key in Audiobookshelf under Settings → API Keys and fill in .env. Then start everything:

Terminal
docker compose up -d
docker compose logs -f kolumi-server

Kolumi Server logs in JSON. When it runs, http://your-server:8080/healthz answers with {"status":"ok", …}.

Step 4: first sign-in

As long as nobody is admin of this server, Kolumi Server writes a one-time admin token into its log at every start:

Terminal
docker compose logs kolumi-server | grep adminToken

It looks like KOLUMI-XXXX-XXXX-XXXX. Open the web interface at your address, choose Sign in with a code, paste the token and enter your name. You are now the admin of this Kolumi Server and the manager of your own household. The token is used up; a restart creates a new one only while there is still no admin.

With single sign-on you don’t need the token: members of the group kolumi-admin are admins.

Step 5: check services and libraries

  1. Services shows Audiobookshelf, Navidrome and SSO. Each should say it is connected; if not, the page says what is missing.
  2. Libraries: choose Sync with the servers. For each library, set who it is for (Kids up to 7, Teens 8 to 15, Adults 16+ or Everyone, with age tags) and its language. Kolumi Server guesses both from the name. Kid profiles see the libraries for kids and for everyone, teen profiles also those for teens. A manager can change this for each person in the app.
  3. Still under Libraries, choose where wishes go for audiobooks and for music.

In libraries for everyone, Kolumi Server hides titles by their tags in Audiobookshelf: kids don’t see titles tagged teens or erwachsene, teens don’t see erwachsene. Usual spellings count as well, for example teen, YA, adults, 18+ or explicit.

Step 6: connect your phone

In the web interface, open Households, then the menu next to your name, and choose Create sign-in code. The code works once, for 15 minutes. On your phone, open Kolumi and either scan the QR code (Pair this device with a QR code) or choose Connect Kolumi Server, enter your address, then Sign in with a token and the code.

Your phone is now signed in with your profile. More devices you connect from the app later, under Settings → Family → Connect a device.

Step 7: add your family

In the app, open Settings → Family. As a manager you land in Manage:

  • Add more people: kids and teens need no password and no account of their own. Grown-ups get an invitation and sign in on their own phone; invite the other parent as a manager too.
  • Connect a device: set up a kid’s tablet or a family tablet with a QR code.
  • Set your own PIN first. Kid devices and kiosks can only be left with a manager’s PIN.

More in family and profiles and kids’ mode.

Other households on the same server

One Kolumi Server can serve several households that don’t see each other, for example grandparents or an aunt. In the web interface, open Households → Invite a household. Whoever redeems the invitation in the app gets their own household and manages it. As the server admin you see households, accounts and the services, but not the listening history, shelves or rules of other households.

Next steps

Something wrong or missing on this page? Write to hello@kolumi.app.