---
title: Deploy LobeHub with AI on Blossom
url: "/deploy/lobehub/"
canonical_url: https://blossom88.com/deploy/lobehub/
markdown_url: https://blossom88.com/deploy/lobehub.md
summary: Run a private LobeHub workspace, chat through Ollama, and keep conversations
  in PostgreSQL.
categories:
- deployment
- ai
- chat
stack:
- TypeScript
- Next.js
- PostgreSQL
- Redis
- Ollama
---

# Deploy LobeHub with AI on Blossom

[LobeHub](https://lobehub.com/) gives you a workspace for chatting with AI
models and organizing your conversations. The self-hosted edition uses the
[LobeHub Community License](https://github.com/lobehub/lobehub/blob/v2.3.6/LICENSE).

![A LobeHub conversation showing a reply from a private Ollama model.](/deploy/assets/images/lobehub/private-chat.webp)

## Ask Your Agent

> **Ask your AI agent:** Deploy LobeHub on Blossom and help me chat with an Ollama model.
>
> Follow this guide: https://blossom88.com/deploy/lobehub/

[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).

## Try Your First Chat

Sign in, choose an Ollama model, and send a text prompt. Reopen the topic
to find the conversation in your history.

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

Run the [official LobeHub image](https://lobehub.com/docs/self-hosting/platform/docker)
on port 3210. Use Blossom Account access and stable keys for Better Auth.
Set up [the supporting Services](/deploy/recipes/lobehub/README.md) with
PostgreSQL and pgvector, Redis, private S3-compatible storage and Ollama.
Use `FTS_SEARCH_PROVIDER=pg_like` with the pgvector-only database.
In Provider → Ollama, save **Use Client Request Mode** as off so LobeHub
uses the private Ollama endpoint from the server.

The PostgreSQL Service uses a [Volume](https://docs.blossom88.com/docs/apps/persistent-services/)
for conversations. For attachments, provide a durable bucket and configure
[the browser-facing S3 endpoint and CORS](https://lobehub.com/docs/self-hosting/advanced/s3).
The Community License has additional terms for commercial distribution of
derivatives.

    blossom profile:show
    blossom app:create --data app.yml
    blossom environment:create --data environment.yml
    blossom service:create --data postgres.yml
    blossom service:create --data redis.yml
    blossom service:create --data object-storage.yml
    blossom service:create --data ollama.yml
    blossom service:create --data web.yml
    blossom env_var:push --environment environment-100 --file .env.production
    blossom environment:deploy --id environment-100 --follow
    blossom shell --service service-ollama -- ollama pull qwen2.5:0.5b

</details>

## What You Get

- A private workspace for chatting with your model
- Conversation history in PostgreSQL
