---
title: Deploy AFFiNE with AI on Blossom
url: "/deploy/affine/"
canonical_url: https://blossom88.com/deploy/affine/
markdown_url: https://blossom88.com/deploy/affine.md
summary: Self-host AFFiNE on Blossom and create a workshop plan with notes, a whiteboard,
  and shared files.
categories:
- deployment
- collaboration
- whiteboards
stack:
- TypeScript
- React
- PostgreSQL
- Redis
---

# Deploy AFFiNE with AI on Blossom

[AFFiNE](https://affine.pro/) combines documents and whiteboards in one
workspace. Write a workshop agenda, attach a reference image, and switch
to the whiteboard to sketch the layout.

![An AFFiNE workshop plan open in its whiteboard view.](/deploy/assets/images/affine/workshop-board.webp)

## Ask Your Agent

> **Ask your AI agent:** Deploy AFFiNE on Blossom and help me create a workshop plan with a whiteboard.
>
> Follow this guide: https://blossom88.com/deploy/affine/

[Install the Blossom CLI and skill](https://docs.blossom88.com/learn/getting-started/install/) on your agent's machine and choose a Blossom Cloud Location when you log in. You can also use [Blossom BYOC (bring your own cloud)](https://docs.blossom88.com/learn/getting-started/choose-your-cloud/#blossom-byoc).

## Create a Workshop Plan

Create a workspace on your AFFiNE server, add a page, and upload a
reference image. Open the same page in Edgeless mode to work on the
whiteboard.

<details class="optional-reading" markdown="1">
<summary>Deployment setup and commands</summary>

Use the [official AFFiNE release](https://github.com/toeverything/AFFiNE/releases)
with managed Redis and a private PostgreSQL Service with pgvector. The
PostgreSQL data directory and AFFiNE's files and configuration each use a
[Persistent Service](/docs/apps/persistent-services/) Volume. Run AFFiNE's
self-host setup after PostgreSQL is reachable at its private Service address.
Keep the public HTTPS origin stable.

Keep the sample workspace behind Blossom Account access, then set up the
first AFFiNE administrator.

    blossom profile:show
    blossom app:create --data app.yml
    blossom environment:create --data environment.yml
    blossom cache_instance:create --data redis.yml
    blossom environment_link:create --data redis-link.yml
    blossom service:create --data postgres.yml
    blossom service:create --data web.yml
    blossom env_var:push --environment environment-100 --file .env.production
    blossom environment:deploy --id environment-100 --follow

</details>

## What You Get

- A private AFFiNE workspace for documents and whiteboards
- Uploaded files and workspace data on persistent storage
