SearXNG Search

Private, self-hosted web search integration using SearXNG.

Overview

Clew Code integrates with SearXNG, a privacy-respecting, self-hosted metasearch engine. This gives the AI access to web search results without relying on third-party search APIs.

Setup

  1. Deploy SearXNG (Docker is recommended):
    docker run --name searxng -d -p 8888:8080 \
      -e BASE_URL=http://localhost:8888/ \
      searxng/searxng
  2. Configure SearXNG to enable JSON API:
    # /etc/searxng/settings.yml
    search:
      formats:
        - html
        - json
  3. Set the SearXNG URL in Clew Code:
    export SEARXNG_URL=http://localhost:8888

Using SearXNG

❯ /searxng search "your query here"

The search results are automatically available to the AI as context.

Benefits