---
title: Deploy Calibre-Web with AI on Blossom
url: "/deploy/calibre-web/"
canonical_url: https://blossom88.com/deploy/calibre-web/
markdown_url: https://blossom88.com/deploy/calibre-web.md
summary: Run a private ebook library, open a sample EPUB in your browser, and keep
  it on your shelf across updates.
categories:
- deployment
- ebooks
stack:
- Python
- Flask
- SQLite
- EPUB.js
---

# Deploy Calibre-Web with AI on Blossom

[Calibre-Web](https://github.com/janeczku/calibre-web) is a browser interface
for a Calibre ebook library. Put one book on a private shelf and open a
chapter from the browser to try it.

## Ask Your Agent

> **Ask your AI agent:** Deploy Calibre-Web on Blossom. Help me add a sample ebook to a private shelf and open it in the browser.
>
> Follow this guide: https://blossom88.com/deploy/calibre-web/

[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 |
|---|---|---|
| Calibre-Web | Organize the library and serve the browser EPUB reader | One Persistent Service with Blossom Account access |
| Library and settings | Keep accounts, shelves, SQLite databases, and book files | One Volume mounted at /config |

## Deploy Calibre-Web

Run the LinuxServer Calibre-Web image with a Volume at `/config`.
Use Blossom Account access for your library.

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

The pinned [LinuxServer 0.6.27-ls411 package](https://github.com/linuxserver/docker-calibre-web/releases/tag/0.6.27-ls411)
is `lscr.io/linuxserver/calibre-web@sha256:18b65a754ec18f119af36ad672b5f1e64543c89648febd6df6edf64f5ec4c5b8`.
Use port 8083 with a TCP health check and mount one Volume at `/config`.
Start the image through its normal `/init` script. The image stores its settings and
account database there. For this setup, put the Calibre library under
`/config/library` so the settings and books share the same Volume.
See the [LinuxServer image documentation](https://docs.linuxserver.io/images/docker-calibre-web/).

</details>

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

    blossom app_plan:preview --data calibre-web-plan.yml
    blossom app:create --data calibre-web-app.yml
    blossom environment:create --data calibre-web-environment.yml
    blossom env_var:push --environment environment-100 --file calibre-web.env
    blossom service:create --data calibre-web-service.yml
    blossom environment:deploy --id environment-100 --follow

</details>

## Open a Private Library

Set a new administrator password before inviting anyone. Select
`/config/library` as the library path in Calibre-Web.

> **Ask your AI agent:** Secure my Calibre-Web administrator sign-in and set up an empty library on the mounted Volume.

> Follow this guide: https://blossom88.com/deploy/calibre-web/



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

For a fresh demo, the tested
[startup script](/deploy/recipes/calibre-web/launcher-runtime.py) seeds the upstream
[empty metadata.db](https://github.com/janeczku/calibre-web/blob/c3756a903e7d91b2ab7e12c1b5ff818a61cc1e16/library/metadata.db)
at `/config/library/metadata.db` and sets the administrator password before
starting `/init`. Run the script with `python3`. Store a generated password
in protected `CALIBRE_QA_ADMIN_PASSWORD` and the gzip-compressed,
base64-encoded database in `CALIBRE_QA_LIBRARY_SEED_GZIP`. The script reads
the seed once and skips it when the initialized Volume is attached again.

For an existing library, copy its database and book files together with
write access for Calibre-Web. Sign in, open basic configuration, and set
the library path.

</details>

## Put One Book on a Shelf

Enable uploads in the admin settings. After any requested app restart,
upload the [sample EPUB](/deploy/recipes/calibre-web/harbor-point-field-notes.epub)
or one you can share. Create a private shelf, add the book, and choose
**Read in browser**.

![Reopen Harbor Point Field Notes on the same private shelf.](/deploy/assets/images/calibre-web/calibre-private-shelf.webp)

> **Ask your AI agent:** Add Harbor Point Field Notes to a private shelf and open its first chapter in Calibre-Web.

> Follow this guide: https://blossom88.com/deploy/calibre-web/



## Keep It Running

Keep the same `/config` Volume across updates. In your test Environment,
replace the web Container, sign in again, and open the same shelf and book.

![Read the original book in the browser after a Container update.](/deploy/assets/images/calibre-web/calibre-epub-reader.webp)


> **Ask your AI agent:** Replace the Calibre-Web demo Container and reopen the same private shelf and book.

> Follow this guide: https://blossom88.com/deploy/calibre-web/



## What You Get

- An ebook library protected by Blossom Account access
- A private shelf containing a sample book
- An EPUB chapter you can open in the browser
- The same shelf and original ebook after an app update

Tested on Blossom: A fresh sign-in reopened the same shelf, rendered the EPUB chapter and downloaded the original file after Container replacement.
