Skip to content

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.

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.

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:

Terminal window
docker compose --profile app up -d

Check it came up:

Terminal window
docker compose ps

Then 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.

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.com
RELEGO_SMTP_HOST=smtp.your-relay.example
RELEGO_SMTP_PORT=587
RELEGO_SMTP_USER=relego
RELEGO_SMTP_PASSWORD=your-relay-password

You 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.

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.

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.txt or click to browse for it.

Relego’s web interface open to the Import page, showing the Kindle and Kobo file upload area.

Importing from Kobo requires USB connection:

  • Connect your Kobo over USB and wait for it to appear on your computer.
  • Copy the .kobo directory 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.sqlite or click to browse for it.

You have a library. Deliver your first recap →