Apus supports SearXNG as a self-hosted, key-free web_search provider. SearXNG is an open-source meta-search engine that aggregates results from Google, Bing, DuckDuckGo, and other sources.

Advantages:

Setup

Install the plugin

```bash
apus plugins install @openclaw/searxng-plugin
```

Installation applies to a running Gateway automatically; otherwise it takes effect
on the next startup. See [Apply changes and inspect](/plugins/manage-plugins#apply-changes-and-inspect).

Run a SearXNG instance

```bash
docker run -d -p 8888:8080 searxng/searxng
```

Or use any existing SearXNG deployment you have access to. See the
[SearXNG documentation](https://docs.searxng.org/) for production setup.

Configure

```bash
apus configure --section web
# Select "searxng" as the provider
```

Or set the env var and let auto-detection find it:

```bash
export SEARXNG_BASE_URL="http://localhost:8888"
```

Config

{
  tools: {
    web: {
      search: {
        provider: "searxng",
      },
    },
  },
}

Plugin-level settings for the SearXNG instance:

{
  plugins: {
    entries: {
      searxng: {
        config: {
          webSearch: {
            baseUrl: "http://localhost:8888",
            categories: "general,news", // optional
            language: "en", // optional
          },
        },
      },
    },
  },
}

baseUrl also accepts a SecretRef object (for example { source: "env", id: "SEARXNG_BASE_URL" }).

Environment variable

Set SEARXNG_BASE_URL as an alternative to config:

export SEARXNG_BASE_URL="http://localhost:8888"

Resolution order: configured baseUrl (a string or an allowed env SecretRef), then SEARXNG_BASE_URL only when baseUrl is missing. An explicit SecretRef that read-only config inspection blocks does not fall through to the ambient environment; fix its provider, default-provider, or env allowlist policy instead. When none of the config paths are set and SEARXNG_BASE_URL is present with no explicit provider chosen, auto-detection picks SearXNG.

Plugin config reference

Field Description
baseUrl Base URL of your SearXNG instance (required)
categories Comma-separated categories such as general, news, or science
language Language code for results such as en, de, or fr

The web_search tool call also accepts count (1-10 results), categories, and language as per-call overrides.

Notes

For SearXNG JSON API to work, make sure your SearXNG instance has the json format enabled in its settings.yml under search.formats.

Related