---
title: Deploy Drizzle Gateway with AI on Blossom
url: "/deploy/drizzle-gateway/"
canonical_url: https://blossom88.com/deploy/drizzle-gateway/
markdown_url: https://blossom88.com/deploy/drizzle-gateway.md
summary: Open a PostgreSQL table in Drizzle Gateway and keep the saved connection
  after an update.
categories:
- deployment
- databases
stack:
- TypeScript
- React
- PostgreSQL
---

# Deploy Drizzle Gateway with AI on Blossom

[Drizzle Gateway](https://gateway.drizzle.team/) is the self-hosted
version of Drizzle Studio. Open a database in your browser to
inspect its tables and run SQL.

## Ask Your Agent

> **Ask your AI agent:** Deploy Drizzle Gateway on Blossom and help me browse a sample PostgreSQL table.
>
> Follow this guide: https://blossom88.com/deploy/drizzle-gateway/

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

## Have Ready

- **Drizzle Gateway distribution** (Required): Use the free self-hosted image from the Drizzle team.

## How It Runs

| Part | Role | Where |
|---|---|---|
| Drizzle Gateway | Browse databases and store connections | Persistent Service behind Blossom Account access |
| PostgreSQL | Store the sample orders | Private Persistent Service |

## Deploy a Protected Gateway

Use the [official self-hosted image](https://orm.drizzle.team/drizzle-studio/overview#drizzle-gateway).
Keep the web endpoint behind Blossom Account access. Set a strong
master password and attach a
[Persistent Service Volume](/docs/apps/persistent-services/) at `/app`
to save connection settings.

## Open a Sample Table

Add a PostgreSQL connection using a read-only database role. Open
the `orders` table and check that the sample rows appear.

> **Ask your AI agent:** Help me add a read-only PostgreSQL connection and open the sample orders table.

> Follow this guide: https://blossom88.com/deploy/drizzle-gateway/



![Open the sample orders table with read-only PostgreSQL access.](/deploy/assets/images/drizzle-gateway/open-sample-orders.webp)

## Keep the Connection After an Update

Replace the Drizzle Gateway Container on the same Volume. Sign
in again and open the saved connection.

> **Ask your AI agent:** Replace Drizzle Gateway and check that I can still open the saved PostgreSQL connection.

> Follow this guide: https://blossom88.com/deploy/drizzle-gateway/



![Reopen the saved connection and see the same orders after replacement.](/deploy/assets/images/drizzle-gateway/reopen-saved-orders.webp)

## What You Get

A protected database browser and a read-only connection that stays
available across Gateway updates.

## What You Get

- A Drizzle Gateway protected by Blossom Account access
- A saved read-only PostgreSQL connection
- The same connection and sample rows after replacing Gateway

Tested on Blossom: A fresh sign-in reopened the saved read-only connection and returned the same three orders after replacement.
