Kavita Sync

approvedunreviewed

by david bowman

Sync annotations and highlights from your Kavita server to your vault.

★ 25 stars↓ 2,894 downloadsUpdated 1mo agoMIT

Kavita Sync

Bring your reading highlights and notes from Kavita into Obsidian, as beautiful, linked book notes.

  • One note per book. Highlights are grouped by chapter in reading order and colored to match your Kavita highlight colors.
  • Back to the page. Every highlight links straight to its exact spot in Kavita's reader, and each book links to the book.
  • Covers and a library. Each note can show the book's cover, and an optional library view (an Obsidian base) shows all your books as cover cards.
  • Your notes stay yours. Each note ends with a My notes heading. Anything you write under it, and any properties you add, are kept on every sync. Rename notes or reorganize them inside the folder freely.
  • Native and searchable. Properties work with Bases and Dataview, and the settings are searchable.

What a book note looks like

---
title: The Great Gatsby
author:
  - "[[F. Scott Fitzgerald]]"
series: "[[The Great Gatsby]]"
series_index: 1
genres:
  - Fiction
cover: "[[Kavita Annotations/Covers/123.png]]"
highlights: 12
last_highlighted: 2026-10-12
kavita_url: https://kavita.example.com/library/1/series/42/book/123
kavita_series_id: 42
kavita_chapter_id: 123
tags:
  - kavita
  - series/the-great-gatsby
  - author/f-scott-fitzgerald
  - genre/fiction
---

![[Kavita Annotations/Covers/123.png|160]]

by [[F. Scott Fitzgerald]] · [Open in Kavita](https://kavita.example.com/library/1/series/42/book/123)

## Chapter 1

> [!kavita-yellow] [Page 3](https://kavita.example.com/library/1/series/42/book/123?annotation=987)
> In my younger and more vulnerable years my father gave me some advice…
>
> **Note:** The narrator sets up his own reliability here.

## My notes

Anything I write here is kept on every sync.

In Obsidian each highlight renders as a colored callout, and its page label opens that exact spot in Kavita. Spoilers, if you include them, appear collapsed. Everything above My notes is refreshed on each sync; write your own thoughts under it.

Prefer everything in one place? Choose One note for everything and all highlights go into a single note, grouped by series, book, and chapter.

Requirements

  • Kavita 0.8.8 or newer (the first release with highlights). Every change is tested against live Kavita 0.8.8 and the latest release.
  • Obsidian 1.13.2 or newer, desktop or mobile.

Getting started

  1. Install Kavita Sync from Settings → Community plugins → Browse, and enable it.
  2. The setup window opens. Enter your Kavita server URL and an auth key:
    • Kavita 0.9 and newer: in Kavita, open your user settings → Manage auth keys and create a key.
    • Kavita 0.8: user settings → 3rd party clients → copy the API key.
  3. Select Connect. You'll see who you're connected as and how many highlights are ready.
  4. Choose a layout and folder, then Sync now.

You can reopen setup any time with the command Kavita Sync: Connect to Kavita.

Install from a GitHub release

  1. Download main.js, manifest.json, and styles.css from the latest release.
  2. Put them in .obsidian/plugins/kavita-sync/ inside your vault.
  3. Restart Obsidian and enable Kavita Sync in Settings → Community plugins.

Syncing

  • Sync now: the book icon in the left ribbon, the command Kavita Sync: Sync highlights, the status bar item (desktop), or the Sync now button in settings.
  • Automatically: turn on Sync when Obsidian starts, or choose an interval under Sync automatically. Automatic syncs are quiet unless new highlights arrive or something goes wrong.
  • From anywhere: open obsidian://kavita-sync to start a sync, for example from a shortcut or script.

While a sync runs, a notice shows progress, then a summary such as 12 highlights from 4 books · 2 new, with a link to open your notes. The status bar shows when you last synced.

Other commands:

  • Open this book in Kavita: opens the current book note's book in Kavita.
  • Open library: opens the library view, if you created one.

Settings

SettingWhat it doesDefault
Server URLYour Kavita address
Auth keyYour Kavita auth key, kept in Obsidian's secure storage rather than the vault
LayoutOne note per book, or one note for everythingOne note per book
FolderWhere book notes go, filed by seriesKavita Annotations
NoteThe note used by the one-note layoutkavita-annotations.md
Download book coversShow each cover in its note and the library viewOn
Create a library viewAdd a base that shows your books as cover cards (created once, never overwritten)Off
Remove notes for deleted highlightsTrash a book note once all its highlights are gone from Kavita (only notes this plugin created)On
Include your commentsShow the notes you wrote on highlightsOn
Include spoilersShow spoiler highlights, collapsedOff
Match highlight colorsColor highlights like Kavita, or use plain quotesOn
Highlight templateCustomize each highlight, with a live preview of your own highlightsCallout
Link authors and seriesWrite authors and series as [[links]]On
Add tags / Genre tag prefixTag notes by series, author, and genreOn / genre/
Sync when Obsidian startsCheck for new highlights when the vault opensOff
Sync automaticallyCheck for new highlights every 15 minutes to 3 hoursOff

Highlight template

The template controls each highlight. Variables include {{quote}}, {{selectedText}}, {{comment}}, {{commentQuote}}, {{callout}}, {{color}}, {{fold}}, {{location}}, {{link}}, {{pageNumber}}, {{chapterTitle}}, {{seriesName}}, and {{date}}, plus {{#if variable}}…{{/if}} blocks. The template page in settings lists every variable and previews your most recent highlights as you type.

Troubleshooting

Every error tells you what went wrong and links to the fix. See the troubleshooting guide for details.

Network & Privacy

This plugin connects only to your own Kavita server. All requests go through Obsidian's requestUrl to the server URL you configure:

RequestWhy
POST /api/Plugin/authenticateExchange your auth key for a short-lived session token
GET /api/AccountFind out which user the key belongs to, so only your highlights sync
POST /api/Annotation/all-filteredGet your highlights
GET /api/Series/volumesGet book titles, authors, and genres
GET /api/Image/chapter-coverDownload covers (only when Download book covers is on)
  • Read-only: the plugin never changes anything in Kavita.
  • Auth key: stored in Obsidian's secret storage, not in your vault.
  • Open in Kavita: the Open this book in Kavita command and the links in your notes open Kavita in your browser.
  • Vault access: the plugin only reads and writes inside its own notes folder (and the single note, in one-note mode).
  • Only yours: highlights other Kavita users share with you are never synced.
  • No telemetry: no analytics or usage data, and nothing is sent anywhere else.

Questions or issues?

Contributing

See CONTRIBUTING.md for development setup, tests, and the release flow.

License

MIT

For plugin developers

Search results and similarity scores are powered by semantic analysis of your plugin's README. If your plugin isn't appearing for searches you'd expect, try updating your README to clearly describe your plugin's purpose, features, and use cases.