Stop 1 of 3 on the round trip
Import
Bring highlights into your library from a Kindle or Kobo file, or sync eligible Kindle highlights from your browser.
Your reader’s file
Section titled “Your reader’s file”| Reader | File to import | Note |
|---|---|---|
| Kindle | documents/My Clippings.txt |
Contains device highlights, notes, and bookmarks |
| Kobo | .kobo/KoboReader.sqlite |
.kobo is a hidden folder |
Relego reads the quote, book title, and author. You do not need SQLite tooling for Kobo, upload the file as-is.
1. Start the server
Section titled “1. Start the server”The server is where your highlights live. It is a single Docker container with a
SQLite database at /data/relego.db, one file on your disk that you can back
up by copying it.
From a checkout of the repository, or any directory containing the project’s
docker-compose.yml:
docker compose --profile app up -dCheck it came up:
docker compose psThen open http://localhost:8080. That is the Relego web UI, served by the server itself. If it loads, you are ready to import.
The server also runs the recap scheduler in the background. It does not need to be reachable from the internet.
Mail settings can wait
Section titled “Mail settings can wait”The server reads its mail settings from the environment. Put them in a .env
file next to docker-compose.yml:
RELEGO_KINDLE_EMAIL=your-name@kindle.comRELEGO_SMTP_HOST=smtp.your-relay.exampleRELEGO_SMTP_PORT=587RELEGO_SMTP_USER=relegoRELEGO_SMTP_PASSWORD=your-relay-passwordYou do not need working mail settings to import. Come back to this when you reach Deliver, which covers choosing a relay; the environment variable reference has the full list.
2. Get your highlights in
Section titled “2. Get your highlights in”Now it’s time to import highlights into Relego. You can drag and drop files to the web interface. If you prefer a terminal, you can use the CLI.
The page reports what it added when the upload finishes. Uploading the same file twice does not create duplicates, so re-uploading after a few more reading sessions is the normal way to keep the library current.
Kindle
Section titled “Kindle”To sync eligible cloud highlights automatically, install and connect the Kindle browser extension. The browser, extension, and Relego server must be running for sync to work.
For a local import, including highlights that are not available in the Kindle Notebook, use your Kindle over USB:
- Connect your Kindle over USB and wait for it to appear on your computer
- In Relego web, go to Import, then drop in
documents/My Clippings.txtor click to browse for it.

Importing from Kobo requires USB connection:
- Connect your Kobo over USB and wait for it to appear on your computer.
- Copy the
.kobodirectory from the device to your computer. If you don’t see the directory, you have to enable hidden files in your file manager settings. - In the Relego web, go to Import, then drop in
.kobo/KoboReader.sqliteor click to browse for it.
You have a library. Deliver your first recap →