Xpersona
H

Huo15 Searxng

CLAWHUB · Unverified

SearXNG 自托管搜索引擎一键部署 - Docker Compose + OpenClaw 配置自动化 (v1.2.1) Skill: Huo15 Searxng Owner: zhaobod1 Summary: SearXNG 自托管搜索引擎一键部署 - Docker Compose + OpenClaw 配置自动化 (v1.2.1) Tags: latest:1.2.2 Version history: v1.2.2 | 2026-04-24T04:15:32.730Z | auto - No changes detected in this version. - Version number incremented, but all files remain unchanged from the previous release. v1.2.1 | 2026-04-23T03:21:22.010Z | user v1.2.1 把本地工作态同步到 clawhub(之前本地版本号落后于 clawhub) v1.2.0 | 2026-04-12T2

62
Rank
84
Safety
1.2k
Downloads

About

What it does, and when to use it.

Capability contract not published. No trust telemetry is available yet. 1.2K downloads reported by the source. Last updated 10/11/2026.

Avoid when

  • Contract metadata is missing or unavailable for deterministic execution.

Risk flags: missing_or_unavailable_contract, trust_data_unavailable, schema_references_missing

Install and run

Setup complexity: low.

clawhub skill install s17f6q72skfgyjycm2frgdc8dn83v5mk:huo15-searxng
  1. Setup complexity is classified as HIGH. You must provision dedicated cloud infrastructure or an isolated VM. Do not run this directly on your local workstation.
  2. Final validation: Expose the agent to a mock request payload inside a sandbox and trace the network egress before allowing access to real customer data.

Contract: missing

curl -s "https://www.xpersona.co/api/v1/agents/clawhub-zhaobod1-huo15-searxng/snapshot"

Run-check

$0.02 USD

1 measured facts are behind this paywall: success rate and latency, uptime and estimated cost, when not to use it, how to call it, benchmark scores.

Agents pay $0.02 in USDC. A card payment is $0.50, the smallest a card allows.

Documentation

CLAWHUB

41,775 characters of source documentation, loaded on request.

Extracted files

4 files captured from the source.

SKILL.md

---
name: huo15-searxng
version: 1.2.1
description: SearXNG 自托管搜索引擎一键部署 - Docker Compose + OpenClaw 配置自动化 (v1.2.1)
homepage: https://github.com/zhaobod1/huo15-skills
metadata:
  openclaw:
    emoji: "🔍"
    requires:
      bins: ["docker", "nc"]
---

# huo15-searxng

SearXNG 自托管搜索引擎一键部署技能。

## 触发词

- "安装 SearXNG"、"部署 SearXNG"
- "searxng"、"SearXNG"
- "自托管搜索"、"私有搜索"
- "搭建搜索"

## 功能

当用户请求安装或部署 SearXNG 时,执行 `scripts/install.sh` 进行自动化部署:

1. 检查 Docker 和 docker compose 环境
2. 检测可用端口(8888 → 8910 自动检测冲突)
3. 一键部署 SearXNG 容器(含 limiter.toml 修复 403 问题)
4. 等待服务就绪并验证
5. 自动配置 OpenClaw 环境变量

## 使用方式

```
@贾维斯 安装 SearXNG
```

## 常用命令

| 命令 | 说明 |
|------|------|
| `bash .../install.sh` | 安装/升级 SearXNG |
| `bash .../status.sh` | 查看运行状态 |
| `bash .../uninstall.sh` | 卸载 SearXNG |

## 技术细节

- SearXNG 镜像:`searxng/searxng:latest`
- 数据目录:`~/docker/searxng/`
- 默认端口:8888(自动检测冲突)
- OpenClaw 配置:`SEARXNG_BASE_URL` 环境变量

## 前提条件

- Docker Desktop (macOS) / Docker Engine (Linux)
- docker compose v2
- `nc` 命令(macOS/Linux 内置)

README.md

# huo15-searxng

> SearXNG 自托管搜索引擎一键部署 - Docker Compose + OpenClaw 配置自动化 (v1.1.0)

## 功能特性

- 🔍 **一键部署**:Docker Compose 自动部署 SearXNG 实例
- 🔄 **端口冲突自动处理**:8888 → 8889 → 8890 → 8910 自动检测可用端口
- 🔒 **botdetection 修复**:limiter.toml 解决 SearXNG 403 Forbidden 问题
- ⚙️ **OpenClaw 无缝集成**:自动配置 `SEARXNG_BASE_URL` 环境变量
- ✅ **健康检查**:启动后自动验证服务可用性(含 JSON API)
- 🔄 **幂等性**:已安装时自动检测并显示状态,支持升级

## 前提条件

- Docker Desktop (macOS) / Docker Engine (Linux)
- docker compose v2 (`docker compose` 命令)
- `nc` 命令(macOS/Linux 内置)

## 快速开始

### 安装 Skill

```bash
clawhub install huo15-searxng --dir ~/.openclaw/workspace/skills
```

### 部署 SearXNG

```bash
@贾维斯 安装 SearXNG
```

或手动执行安装脚本:

```bash
bash ~/.openclaw/workspace/skills/huo15-searxng/scripts/install.sh
```

## 工作原理

```
安装脚本流程:
1. 检查 Docker + docker compose v2
2. 检测已安装? → 显示状态并退出(幂等性)
3. 端口 8888-8910 可用性检测
4. 渲染 docker-compose.yml + settings.yml + limiter.toml
5. docker compose up -d
6. 健康检查 (HTTP 200) + JSON API 验证
7. 配置 SEARXNG_BASE_URL 到 ~/.zshrc
8. 输出完成信息
```

## 目录结构

```
huo15-searxng/
├── SKILL.md              # Skill 定义
├── README.md             # 本文档
├── scripts/
│   ├── install.sh        # 核心安装脚本 (v1.1.0)
│   ├── uninstall.sh      # 卸载脚本 (新增)
│   ├── env.sh           # 环境变量加载
│   └── status.sh        # 状态检查 (v1.1.0)
└── templates/
    └── docker-compose.yml.template
```

## 配置说明

### 环境变量

安装后自动添加以下环境变量到 `~/.zshrc`:

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

**立即生效**:

```bash
source ~/.zshrc
```

### OpenClaw 配置

OpenClaw 自动检测 `SEARXNG_BASE_URL` 环境变量,无需手动配置。

如需手动配置,编辑 `~/.openclaw/openclaw.json`:

```json
{
  "plugins": {
    "entries": {
      "searxng": {
        "config": {
          "webSearch": {
            "baseUrl": "http://localhost:8888"
          }
        }
      }
    }
  }
}
```

## 常用命令

| 操作 | 命令 |
|------|------|
| 安装/升级 | `bash ~/.openclaw/workspace/skills/huo15-searxng/scripts/install.sh` |
| 查看状态 | `bash ~/.openclaw/workspace/skills/huo15-searxng/scripts/status.sh` |
| 查看日志 | `docker logs searxng` |
| 重启服务 | `cd ~/docker/searxng && docker compose restart` |
| 停止服务 | `cd ~/docker/searxng && docker compose down` |
| 卸载 | `bash ~/.openclaw/workspace/skills/huo15-searxng/scripts/uninstall.sh` |

## 端口说明

| 端口 | 说明 |
|------|------|
| 8888 | 默认端口 |
| 8889 | 备用端口 1 |
| 8890 | 备用端口 2 |
| 8910 | 最大检测端口 |

脚本会按顺序检测,找到第一个可用端口为止。

## v1.1.0 更新

- ✅ 修复 `grep -oP` (GNU grep) → `grep -oE` (跨平台)
- ✅ 修复 sed 分隔符问题(用 `|` 代替 `/` 避免 URL 冲突)
- ✅ 新增幂等性检测(已安装时显示状态不重复部署)
- ✅ 新增卸载脚本 `uninstall.sh`
- ✅ 新增 `source ~/.zshrc` 生效提示
- ✅ 增强 curl 超时参数(--connect-timeout, --max-time)
- ✅ 停止旧容器逻辑(升级时清理)

## 故障排除

### Docker 未安装

```bash
# macOS
brew install --cask docker

# Linux (Ubuntu)
curl -fsSL https://get.docker.com | sh
```

### 端口全部占用

手动指定端口后重新安装:

```bash
cd ~/docker/searxng
# 编辑 docker-compose.yml 修改端口
docker compose up -d
# 手动设置环境变量
export SEARXNG_BASE_URL="http://localhost:你指定的端口"
```

### SearXNG 启动失败

```bash
# 查看日志
docker logs searxng

# 调试健康检查
curl -v http://localhost:8888/healthz

# 完整日志

_meta.json

{
  "ownerId": "kn7byevkn40d6z4p7ghdb097z983tj33",
  "slug": "huo15-searxng",
  "version": "1.2.2",
  "publishedAt": 1777004132730
}

skill-card.md

## Description:

Deploys a self-hosted SearXNG search engine with Docker Compose and configures OpenClaw to use the local search endpoint.

This skill is ready for commercial/non-commercial use.

## Publisher:

[zhaobod1](https://clawhub.ai/user/zhaobod1)

### License/Terms of Use:

MIT-0

## Use Case:

Developers and OpenClaw users use this skill to install, check, and remove a local SearXNG instance for self-hosted web search. It is intended for environments where Docker is available and a local HTTP port can be exposed.

### Deployment Geography for Use:

Global

## Known Risks and Mitigations:

Risk: The skill creates and manages a persistent Docker SearXNG container and exposes a local port.

Mitigation: Review the generated Docker Compose settings before installation, bind the service to localhost where possible, and install only in environments approved for local containers.

Risk: The install and environment scripts can modify shell configuration by adding SEARXNG_BASE_URL to ~/.zshrc.

Mitigation: Inspect shell configuration changes before sourcing the file and use the uninstall script or manual edits to remove stale environment variables.

Risk: The SearXNG image is referenced with the latest tag, so installations may change as upstream images change.

Mitigation: Pin the SearXNG image to a reviewed version or digest before deploying in controlled environments.

Risk: The README includes a curl-to-shell Docker installation command for Linux troubleshooting.

Mitigation: Prefer operating-system package repositories or reviewed Docker installation steps instead of piping remote install scripts directly to the shell.

## Reference(s):

- [ClawHub Skill Page](https://clawhub.ai/zhaobod1/skills/huo15-searxng)
- [SearXNG Documentation](https://docs.searxng.org/)
- [OpenClaw SearXNG Configuration](https://docs.openclaw.ai/tools/searxng-search)
- [SearXNG GitHub Repository](https://github.com/searxng/searxng)

## Skill Output:

**Output Type(s):** [Shell commands, Configuration, Guidance, Text]

**Output Format:** [Markdown with inline shell commands and status text]

**Output Parameters:** [1D]

**Other Properties Related to Output:** [May create Docker Compose configuration, SearXNG settings, a persistent Docker container, local data directories, and a SEARXNG_BASE_URL shell environment entry.]

## Skill Version(s):

1.2.2 (source: server release metadata; artifact frontmatter and _meta.json report 1.2.1)

## Ethical Considerations:

Users should evaluate whether this skill is appropriate for their environment, review any generated or modified files before relying on them, and apply their organization's safety, security, and compliance requirements before deployment.

Sponsored

Ads related to Huo15 Searxng and adjacent AI workflows.