---
title: Deploy Kavita with AI on Blossom
url: "/deploy/kavita/"
canonical_url: https://blossom88.com/deploy/kavita/
markdown_url: https://blossom88.com/deploy/kavita.md
summary: Set up a private reading library, open a sample EPUB, and pick up where you
  left off after an update.
categories:
- deployment
- ebooks
stack:
- C#
- ASP.NET Core
- Angular
- SQLite
---

# Deploy Kavita with AI on Blossom

[Kavita](https://github.com/Kareadita/Kavita) is a reading server for ebooks,
comics, and manga. Start with one book to try the library and built-in reader.

## Ask Your Agent

> **Ask your AI agent:** Deploy Kavita on Blossom. Help me add a sample EPUB and pick up where I left off.
>
> Follow this guide: https://blossom88.com/deploy/kavita/

[Install the Blossom CLI and skill](https://docs.blossom88.com/learn/getting-started/install/) on your agent's machine and [choose a Location in your cloud account](https://docs.blossom88.com/learn/getting-started/choose-your-cloud/#blossom-byoc).

## How It Runs

| Part | Role | Where |
|---|---|---|
| Kavita | Index books and serve the browser reader | One Persistent Service with Blossom Account access |
| Books and progress | Keep the media files, settings, and reader database together | One Volume mounted at /config |

## Deploy Kavita

Run the LinuxServer Kavita image with a Volume at `/config`. Use Blossom
Account access and create your Kavita administrator on first sign-in.

<details class="optional-reading" markdown="1">
<summary>Notes for your agent</summary>

Use the [LinuxServer package](https://github.com/linuxserver/docker-kavita/tree/v0.9.1.4-ls133)
at `lscr.io/linuxserver/kavita@sha256:4634afda85a8d0303e6973174700f89814fe2b8dd9ebd4659d38a97294fff9b6`.
Keep its entrypoint, set port 5000, and use a TCP health check. Give the
Kavita process read and write access to `/config`. Put the sample and any
other books for this library under `/config/library` on the same Volume.
The [sample seed script](/deploy/recipes/kavita/seed-library.sh) checks the
sample EPUB before placing it in that library. It accepts base64-encoded
EPUB bytes on standard input and leaves a different existing file alone.
See the [image documentation](https://docs.linuxserver.io/images/docker-kavita/).

</details>

<details class="optional-reading" markdown="1">
<summary>Commands your agent runs</summary>

    blossom app_plan:preview --data kavita-plan.yml
    blossom app:create --data kavita-app.yml
    blossom environment:create --data kavita-environment.yml
    blossom service:create --data kavita-service.yml
    blossom environment:deploy --id environment-100 --follow

</details>

## Add a Sample Book

Put the [sample EPUB](/deploy/recipes/kavita/harbor-workshop-reader.epub) in
its own folder under `/config/library`. Create a Book library that points
to `/config/library`, enable embedded metadata, and scan the library.
Kavita uses the embedded title and author to index the sample.

![Find Harbor Workshop Reader in the private library.](/deploy/assets/images/kavita/kavita-library.webp)

> **Ask your AI agent:** Add the sample EPUB to Kavita and scan the library so I can find the book.

> Follow this guide: https://blossom88.com/deploy/kavita/



## Read With Your Own Account

Invite a regular reader to the library. Open the book as that reader and
advance a page to save your place.

<details class="optional-reading" markdown="1">
<summary>Set up a reader without email</summary>

Copy the invitation link from Kavita and open it in a separate browser
session. For a private Blossom deployment, give the reader Blossom
Account access as well. See [Kavita's user settings](https://wiki.kavitareader.com/guides/admin-settings/users/).

</details>

## Keep It Running

Keep the same Volume across updates. After replacing the web Container,
sign in as the reader and resume the sample book.

![Resume the book from the saved page.](/deploy/assets/images/kavita/kavita-reader.webp)


> **Ask your AI agent:** Replace the Kavita demo Container and check that I can resume the same book as the reader.

> Follow this guide: https://blossom88.com/deploy/kavita/



## What You Get

- A private library with a separate reader account
- A sample book you can open in the browser
- Reading progress that stays with your account across updates

Tested on Blossom: After a Container replacement, a fresh sign-in as the invited reader reopened the same EPUB at its saved page.
