---
title: Deploy SearXNG with AI on Blossom
url: "/deploy/searxng/"
canonical_url: https://blossom88.com/deploy/searxng/
markdown_url: https://blossom88.com/deploy/searxng.md
summary: Deploy a private SearXNG instance on Blossom and compare results from two
  configured sources.
categories:
- deployment
- search
stack:
- Python
- Flask
- Granian
---

# Deploy SearXNG with AI on Blossom

[SearXNG](https://docs.searxng.org/) searches the sources you configure
and combines their results. Try two sample engines to see which source
returned each result.

![Find results from two configured sources in one search.](/deploy/assets/images/searxng/two-configured-sources.webp)

## Ask Your Agent

> **Ask your AI agent:** Deploy a private SearXNG instance on Blossom and help me search two sources.
>
> Follow this guide: https://blossom88.com/deploy/searxng/

[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

Nothing is required beyond your Blossom account.

- **Search sources to enable** (Later): Try the two sample engines first, then choose the sources you want.

## How It Runs

| Part | Role | Where |
|---|---|---|
| SearXNG | Sends queries to configured engines and combines their results | App Capacity |
| Sample search sources | Return two different sets of demo results | Private App Capacity |

## Deploy SearXNG

Run the official image on port 8080. Keep the search page behind
Blossom Account access. Give the Service a generated secret and
load your [SearXNG settings](https://docs.searxng.org/admin/settings/settings.html)
at Container startup.

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

Configure two [JSON engines](https://docs.searxng.org/dev/engines/json_engine.html)
and point them at the demo's private source Service. Allow HTTP only
for these sample engines on the Environment network. Keep the web
Service's settings and secret stable. If you want to enable the public
limiter later, follow the project's [Valkey and limiter setup](https://docs.searxng.org/admin/searx.limiter.html).

</details>

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

    blossom app_plan:preview --data searxng-plan.yml
    blossom service:create --data searxng-service.yml
    blossom environment:deploy --id environment-100 --follow

</details>

## Compare Your Sources

Search for “city garden” to find the sample handbook and field
notes. Each result shows its source. Prefix your query with an
engine's shortcut, such as `!gh city garden`, to search only that engine.

> **Ask your AI agent:** Help me compare both sample sources and run a query against just the garden handbook.

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



## Keep Your Configuration

Replace the web Container with the same settings and secret. Run
the query again to confirm both configured sources still work.
SearXNG reads from those sources when you search.

![Use an engine shortcut to narrow the search after replacement.](/deploy/assets/images/searxng/one-source-after-replacement.webp)

## What You Get

- A search page behind Blossom Account access
- Search results labeled with their source
- A shortcut for querying a single engine

Tested on Blossom: The same settings returned both results after web Container replacement, and a shortcut restricted the query to one engine.
