---
title: Deploy Lychee with AI on Blossom
url: "/deploy/lychee/"
canonical_url: https://blossom88.com/deploy/lychee/
markdown_url: https://blossom88.com/deploy/lychee.md
summary: Make a private photo album and keep the original on a Volume across updates.
categories:
- deployment
- photography
- storage
stack:
- PHP
- Laravel
- Vue.js
- SQLite
---

# Deploy Lychee with AI on Blossom

[Lychee](https://lycheeorg.dev/) is a web gallery for uploading and organizing
photos. Use the [MIT-licensed edition](https://github.com/LycheeOrg/Lychee/blob/v7.13.1/LICENSE)
to start with a private album and one image you own.

## Ask Your Agent

> **Ask your AI agent:** Deploy Lychee on Blossom and help me make my first private photo album.
>
> Follow this guide: https://blossom88.com/deploy/lychee/

[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 |
|---|---|---|
| Lychee | Upload photos and manage albums | One Persistent Service |
| SQLite and photo uploads | Keep the album and original files | One Volume |

## Deploy a Private Gallery

Run the official Lychee image on a Persistent Service, enable Blossom
Account access, and open your generated address.

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

Use the [Lychee startup script](/deploy/recipes/lychee/runtime.sh) on port
8000. Mount a Volume at `/data`. The script initializes SQLite and places the
uploads directory under `/data/lychee`, then runs the standard Lychee
entrypoint. Keep `APP_KEY` stable in the Environment's runtime secrets.

</details>

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

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

</details>

## Create the Owner Account

Complete the Lychee owner setup in your browser, then sign in.

> **Ask your AI agent:** Help me set up my Lychee owner account and sign in.

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



## Make Your First Album

Choose **New Album** and use **Upload Photo** inside it. Keep the album
private and open its photo to check the original.

![Browse the private album with a sample photo.](/deploy/assets/images/lychee/lychee-private-workshop-album.webp)

> **Ask your AI agent:** Help me create a private Lychee album and upload one of my photos.

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



## Reopen the Same Photo

Replace the Container, sign in again, and use Lychee's original image
action to open the same file.

> **Ask your AI agent:** Replace the Lychee Container and help me reopen the album and verify the original.

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



![Open the same original photo after replacing the Container.](/deploy/assets/images/lychee/lychee-reopened-original.webp)

## What You Get

- A web gallery behind Blossom Account access
- A private album with a photo you own
- The original photo kept across updates

Tested on Blossom: A fresh login reopened the same private album and byte-identical original after Container replacement.
