---
title: Deploy Trilium Notes with AI on Blossom
url: "/deploy/trilium-notes/"
canonical_url: https://blossom88.com/deploy/trilium-notes/
markdown_url: https://blossom88.com/deploy/trilium-notes.md
summary: Run a private Trilium notebook and keep your note links through an app update.
categories:
- deployment
- productivity
stack:
- TypeScript
- Node.js
- SQLite
---

# Deploy Trilium Notes with AI on Blossom

[Trilium Notes](https://github.com/TriliumNext/Trilium) is an open-source
personal knowledge base. Organize notes in a tree and link to related
notes from the page you are reading.

## Ask Your Agent

> **Ask your AI agent:** Deploy Trilium Notes privately on Blossom and help me make a notebook with two linked notes.
>
> Follow this guide: https://blossom88.com/deploy/trilium-notes/

[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/#connect-your-provider).

## How It Runs

| Part | Role | Where |
|---|---|---|
| Trilium Notes | Serve the notebook and store its SQLite document | Blossom Persistent Service |

## Deploy Trilium Notes

Start one Persistent Service with Blossom Account access. Choose a
password in Trilium before creating your first notebook.

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

Use a maintained official Trilium server image. Serve port 8080 and
mount a Volume at `/home/node/trilium-data`. Use `/api/health-check`
for HTTP readiness. Before updating, check the upstream release notes
for changes that affect the SQLite document or sync.
[Official server setup](https://docs.triliumnotes.org/user-guide/setup/server/installation/docker).

</details>

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

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

</details>

## Make Your First Linked Notes

Create a notebook and a checklist underneath it. Add an internal link
to the checklist from the notebook page. Open the link to see the note.

![Open the synced notebook and its checklist link.](/deploy/assets/images/trilium-notes/trilium-notebook.webp)

> **Ask your AI agent:** Help me link a checklist from my notebook and open the link.

> Follow this guide: https://blossom88.com/deploy/trilium-notes/



## Reopen the Link After an Update

Update Trilium and open the notebook again. Your note and its links
should still be there on the same Volume.

![Follow the link after replacing the primary Container.](/deploy/assets/images/trilium-notes/trilium-checklist.webp)


> **Ask your AI agent:** Update Trilium and check that my checklist link still opens the same note.

> Follow this guide: https://blossom88.com/deploy/trilium-notes/



<details class="optional-reading" markdown="1">
<summary>Syncing a second instance</summary>

Trilium supports native sync with another instance. The private-network
test used a second instance that could reach the first directly. Check
the upstream connection and authentication requirements for your client.
[Trilium sync setup](https://docs.triliumnotes.org/user-guide/setup/synchronization).

</details>

## What You Get

- A private notebook you can open in a browser
- Notes you can organize and link together
- A Volume that keeps your notebook through updates

Tested on Blossom: The notebook link opened the same checklist, and private two-way sync still worked after replacing the primary Container.
