Community plugin

anthony1x6000 / dsh-searxng-search

Keyless web_search for DeepSeek Harness via a self-hosted SearXNG instance

  • TypeScript
  • MIT
  • 1 stars
  • Nov 13, 2026

About this plugin

Written by the registry from verified metadata, not from the README.

dsh-searxng-search is a DSH plugin published from the anthony1x6000/dsh-searxng-search repository.

  • Listing statusManifest verified
  • Manifest checkedNov 13, 2026
  • Packagedsh-searxng-search
  • Package version0.1.0
  • Source commit0931d1f
  • Repository createdSep 22, 2026

Capabilities and topics

deepseek-harnessdsh-pluginsearxngweb-search
From the repository README

README

Everything below this line is the repository's own document, cached here. This site did not write or review it.

dsh-searxng-search

ci

Keyless web_search for DeepSeek Harness via a self-hosted SearXNG instance. A thin ctx.web provider (searxng-local) plus on-demand podman start — no API key, no MCP hop. The start is detached into a transient systemd scope, so restarting dsh-web cannot kill the container's port-forward (see why).

Install

One-liner for podman (system dependency, outside pnpm):

sudo apt update && sudo apt install -y podman

Install the bundle into your web profile (pnpm only — no profile hand-editing):

dsh plugin --profile web add "github:anthony1x6000/dsh-searxng-search#main"

Verify the layer without booting:

dsh --profile web --dump-config | grep -B 1 -A 4 searxng

Then restart dsh web for the new bundle layer to take effect. Build artifacts (lib/) are committed, so installing from git runs no build and needs no pnpm allowBuilds approval. The first search creates the container if missing (~1–2 min for the image pull), later ones start it on demand after reboots.

Why the container start is scoped

podman run / podman start inherit the cgroup of whoever invokes them. Installed as a bundle that caller is dsh-web.service, so the container's conmon and pasta — the processes that actually own the 127.0.0.1:8888 forward — end up inside that service's cgroup. A systemctl --user restart dsh-web then tears the cgroup down with the default KillMode=control-group: SearXNG keeps running, but nothing listens on the port any more, so web_search reports the provider down while podman ps still shows the container Up.

Every container-mutating CLI call is therefore wrapped in a transient per-container scope:

systemd-run --user --scope --collect --quiet --unit dsh-searxng-<container>.scope podman …

A scope is a sibling of dsh-web.service under user@1000.service/app.slice, so restarting DSH never touches it. Inspect it with systemctl --user status dsh-searxng-searxng.scope. Where no user systemd manager is reachable (macOS, a bare CI container, systemd-run missing) the plugin calls the CLI directly and logs a one-line warning; SEARXNG_DETACH=0/false forces that behaviour. searxng-podman.sh uses the same wrapper.

The bundle pins searchProvider: searxng-local in its own layer because the base bundle defaults to deepseek-official (hosted API, needs a key) — without the pin, searches never reach your local instance. Your profile patch can still override it. To go back to hosted search, dsh plugin --profile web remove dsh-searxng-search (then restart) and the layer — pin included — is gone.

Local development: pnpm install && pnpm build, then dsh plugin --profile web add link:/path/to/dsh-searxng-search.

Files

FileRole
index.tsThe plugin source: WebSearchProvider over GET {base}/search?format=json, on-demand podman start scoped out of the caller's cgroup
lib/index.jsBuilt artifact (pnpm build), committed — what installed profiles actually load
package.jsonBundle manifest (dsh.bundle.patch); build-only devDeps, zero runtime deps
cordis.patch.ymlBundle layer: package-name entry + searxng-local provider pin
searxng-podman.shOne-shot SearXNG setup: settings.yml (secret + json format), container run, health check
selfcheck.tsMapping + URL-gating + packaging asserts: pnpm selfcheck

Config

Env / row fieldDefaultMeaning
SEARXNG_BASE_URL / baseURLhttp://127.0.0.1:8888SearXNG base; /search is appended
SEARXNG_CONTAINER / containerNamesearxngContainer started on demand
SEARXNG_CLI / containerCLIpodmanpodman, docker tried as fallback
SEARXNG_START_TIMEOUT_MS / startTimeoutMs60000Start + readiness budget per search
SEARXNG_AUTO_CREATE / autoCreatetrueCreate the container when missing (set 0/false to start-only)
SEARXNG_IMAGE / imagedocker.io/searxng/searxng:latestImage pulled on first creation
SEARXNG_PORT / port8888Host port the container binds
SEARXNG_DETACH / detachtrueStart the container in a transient systemd --user scope so it leaves the caller's cgroup (0/false calls the CLI directly)

Autostart only manages loopback bases (localhost, 127.0.0.1, ::1); remote bases fail fast. Redirects are rejected (redirect: 'error'); SearXNG returns no generated answer, so results carry sources only.

Badge

Listed here? Link back with this badge — paste the snippet into your repository README.

Listed on DSH Plugin badge
[![Listed on DSH Plugin](https://dsh-plugin.com/badges/listed.svg)](https://dsh-plugin.com/plugins/anthony1x6000/dsh-searxng-search)