---
title: Deploy ZITADEL with AI on Blossom
url: "/deploy/zitadel/"
canonical_url: https://blossom88.com/deploy/zitadel/
markdown_url: https://blossom88.com/deploy/zitadel.md
summary: Run ZITADEL with managed PostgreSQL and add OpenID Connect sign-in to a sample
  app.
categories:
- deployment
- authentication
- developer-tools
stack:
- Go
- TypeScript
- Next.js
- PostgreSQL
---

# Deploy ZITADEL with AI on Blossom

[ZITADEL](https://zitadel.com/) provides sign-in and user management for
applications. Register an app and let ZITADEL handle its sign-in page.
This recipe uses the [v4 Community edition](https://github.com/zitadel/zitadel/blob/v4.20.5/LICENSE) under AGPL-3.0.

![A sample application signed in through ZITADEL.](/deploy/assets/images/zitadel/sample-sign-in.webp)

## Ask Your Agent

> **Ask your AI agent:** Deploy ZITADEL on Blossom and help me sign in to a sample app.
>
> Follow this guide: https://blossom88.com/deploy/zitadel/

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

## Sign In to a Sample App

Register a sample app with its callback URL. Sign in through ZITADEL and
verify that the app receives a valid OpenID Connect ID token for your
test user.

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

Run the ZITADEL API and Login UI as separate Services on App Capacity.
Link Blossom Managed PostgreSQL to the API and give both Services the
same HTTPS origin through Caddy. Forward the public HTTPS scheme to the
Login UI so it builds HTTPS redirects. Use the
[API Dockerfile recipe](/deploy/recipes/zitadel/README.md) and a stable
private master key. Initialize the PostgreSQL schema
with the database owner before starting the API.

The [upstream setup](https://zitadel.com/docs/self-hosting/deploy/compose)
explains the Login Client and its reverse-proxy route. Write the
bootstrap tokens to separate temporary files under `/dev/shm`. Read
them into protected files and configure the Login UI with only the
scoped Login Client token.

    blossom profile:show
    blossom app:create --data app.yml
    blossom environment:create --data environment.yml
    blossom database_instance:create --data postgres.yml
    blossom environment_link:create --data postgres-link.yml
    blossom service:create --data web.yml
    blossom service:create --data api.yml
    blossom service:create --data login.yml
    blossom env_var:push --environment environment-100 --file .env.runtime
    blossom environment:deploy --id environment-100 --follow

</details>

## What You Get

- An HTTPS identity provider with the ZITADEL Login UI
- A sample app that signs in with OpenID Connect
