Xpersona
S

SearXNG Search CLI (Free, Self-hosted, Auto-deploy, Multi-Channel)

CLAWHUB · Unverified

Use self-hosted SearXNG search engine (Free, Self-hosted, Auto-deploy, Multi-Channel). SearXNG is a free meta search engine that aggregates 200+ search engin... Skill: SearXNG Search CLI (Free, Self-hosted, Auto-deploy, Multi-Channel) Owner: leeshunee Summary: Use self-hosted SearXNG search engine (Free, Self-hosted, Auto-deploy, Multi-Channel). SearXNG is a free meta search engine that aggregates 200+ search engin... Tags: latest:1.3.0 Version history: v1.3.0 | 2026-07-16T08:57:56.790Z | user 新增 Codex 插件适配并完善跨平台安装与运行说明。 v1.2.1 | 2026-04-01T09:16:35.567Z | user Add GitHub re

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 s1782xm9gtwjg6m1vnxsad9zc583qs9v:searxng-search-cli
  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-leeshunee-searxng-search-cli/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

130,102 characters of source documentation, loaded on request.

Extracted files

5 files captured from the source.

SKILL.md

---
name: searxng-search-cli
displayName: "SearXNG Search CLI (Free, Self-hosted, Auto-deploy, Multi-Channel)"
version: 1.3.0
description: |
  Use self-hosted SearXNG search engine (Free, Self-hosted, Auto-deploy, Multi-Channel). SearXNG is a free meta search engine that aggregates 200+ search engines (Google, Bing, Brave, GitHub, etc.), completely free and self-hostable.
  Trigger: User needs to search queries, research information, find resources, etc.
---

# SearXNG-CLI (Free, Self-hosted, Search Engine Aggregator) | SearXNG CLI(免费、自托管、搜索引擎聚合器)

- **Author**: [LeeShunEE](https://github.com/LeeShunEE)
- **Organization**: [KinemaClawWorkspace](https://github.com/KinemaClawWorkspace)
- **GitHub**: https://github.com/KinemaClawWorkspace/searxng-search-cli

Use SearXNG self-hosted search API for fast, accurate searching.

使用 SearXNG 自托管搜索 API 进行快速、准确的搜索。

## ⚠️ Before First Use | 首次使用必读

**首次使用此 skill 前,必须先读取 [references/ONBOARDING.md](references/ONBOARDING.md) 完成环境配置。**

- **首次配置** → 读取 references/ONBOARDING.md 完成全部步骤
- **环境不可用**(命令不存在、依赖缺失、搜索失败)→ 读取 references/ONBOARDING.md Troubleshooting 排查修复
- **配置完成后** → 直接使用下方 Run Commands

## Run Commands | 使用命令

```bash
# Search | 搜索
searxng-search search "your query"

# Specify engine | 指定引擎
searxng-search search "git clone" --engine github

# Specify language | 指定语言
searxng-search search "AI News" --lang zh

# Pagination | 分页
searxng-search search "llm" --page 2

# Time filter | 时间过滤
searxng-search search "python" --time-range month
```

## Command List | 命令列表

| Command | Description | 说明 |
|---------|-------------|------|
| install | One-click install SearXNG | 一键安装 SearXNG |
| start | Start service | 启动服务 |
| stop | Stop service | 停止服务 |
| restart | Restart service | 重启服务 |
| status | Check service status | 查看服务状态 |
| search \<query\> | Search | 搜索 |
| enable | Enable auto-start | 开机自启 |
| disable | Disable auto-start | 取消开机自启 |

## Configuration | 配置

- `SEARXNG_PORT` - Port (default 8888) | 端口 (默认 8888)
- `SEARXNG_HOST` - Bind address (default 127.0.0.1) | 绑定地址 (默认 127.0.0.1)
- `SEARXNG_SECRET` - Auth key (auto-generated if not set) | 认证密钥 (自动生成)

## Search Parameters | 搜索参数

| Parameter | Short | Description | Example |
|-----------|-------|-------------|---------|
| --engine | -e | Specify engine | github, google |
| --lang | -l | Language | zh, en, auto |
| --page | -p | Page number | 1, 2, 3 |
| --time-range | -t | Time range | day, week, month, year |
| --safe-search | -s | Safe search | 0, 1, 2 |
| --limit | | Max results (default 5) | 10 |

### Available Engines | 可用引擎

General: google, bing, brave, duckduckgo, yandex, startpage, qwant
Code/Dev: github, gitlab, stackoverflow, npm, pypi
Academic: arxiv, pubmed, wikipedia, google-scholar
Video/Image: youtube, vimeo, pexels, pixabay

## Known Limitations | 已知限制

- **部分引擎不稳定**:DuckDuckGo 可能触发 CAPTCHA、Brave 可能 403,属上游外部限制
- **首次搜索较慢**:可能需要 5-30 秒,后续请求会加速
- **推荐部

README.md

# SearXNG Search CLI

自托管 SearXNG 搜索引擎 CLI,聚合 200+ 搜索引擎(Google、Bing、Brave、GitHub 等),免费、可自部署。

## 功能

- 一键安装和部署 SearXNG 实例
- 多搜索引擎聚合查询
- 支持指定引擎、语言、时间范围
- 服务管理(启动、停止、重启、状态)
- 开机自启控制

## 适用场景

- 替代付费搜索 API 进行信息检索
- 为 AI Agent 提供搜索能力
- 自建私有搜索引擎实例

## 使用方式

本 skill 支持 Codex、Claude Code 和 OpenClaw,安装后可通过对话触发:

```
搜索一下 Python 异步编程
帮我查一下 GitHub 上的 xxx 项目
搜一下最近的 AI 新闻
```

首次使用需完成 [references/ONBOARDING.md](references/ONBOARDING.md) 配置。原生 Windows 可连接已有服务;本地部署命令面向 Linux/WSL。

## Codex 安装

```powershell
codex plugin marketplace add https://github.com/KinemaClawWorkspace/kinema-skills-marketplace.git
codex plugin add searxng-search-cli@kinema-skills-marketplace
```

安装后新开一个 Codex 对话。

## 命令列表

| 命令 | 说明 |
|------|------|
| `install` | 一键安装 SearXNG |
| `start / stop / restart` | 服务管理 |
| `status` | 查看服务状态 |
| `search <query>` | 搜索 |
| `enable / disable` | 开机自启 |

## 搜索参数

| 参数 | 简写 | 说明 | 示例 |
|------|------|------|------|
| `--engine` | `-e` | 指定引擎 | `github`, `google` |
| `--lang` | `-l` | 语言 | `zh`, `en` |
| `--page` | `-p` | 分页 | `1`, `2` |
| `--time-range` | `-t` | 时间范围 | `day`, `week`, `month` |
| `--limit` | | 最大结果数 | `10` |

## 项目结构

```
searxng-search-cli/
├── .claude-plugin/plugin.json
├── .codex-plugin/plugin.json
├── skills/searxng-search-cli/SKILL.md
├── SKILL.md
├── scripts/searxng_cli.py
└── references/ONBOARDING.md
```

## 作者

- **Author**: [LeeShunEE](https://github.com/LeeShunEE)
- **Organization**: [KinemaClawWorkspace](https://github.com/KinemaClawWorkspace)

## 许可证

[GNU General Public License v3.0](LICENSE)

_meta.json

{
  "ownerId": "kn7cjsf9pc9x1tmreq1dahs90s83p9y0",
  "slug": "searxng-search-cli",
  "version": "1.3.0",
  "publishedAt": 1784192276790
}

references/ONBOARDING.md

# SearXNG Search CLI Onboarding

> 本文档指导 AI Agent 完成首次环境配置。按顺序执行,遇到问题时参考 Troubleshooting。

## Prerequisites | 前置条件

- Python 3.x(运行 `python3 --version` 确认)
- 网络(需克隆 SearXNG 仓库,搜索时需访问外部搜索引擎)
- 可用端口(默认 8888)

> 平台说明:`search` 命令可从 Windows 连接已有 SearXNG 服务;本文件的 `install/start/stop/enable` 流程依赖 Linux/WSL 的路径和工具。原生 Windows 用户必须选择 WSL、Linux 主机或现有远程实例,不直接执行类 Unix 安装步骤。

## Step 1: 检查 Python 环境

### 检测
```bash
python3 --version
```
期望输出:`Python 3.x.x`

如果不存在,尝试:
```bash
python --version
which python3 || which python
```

如果完全没有 Python,告知用户需要安装 Python 3。

## Step 2: 安装 uv

### 检测
```bash
command -v uv && uv --version
```

如果已安装,跳到 Step 3。

### 安装
```bash
# 尝试 1: curl
curl -LsSf https://astral.sh/uv/install.sh | sh
export PATH="$HOME/.local/bin:$PATH"

# 尝试 2: wget
wget -qO- https://astral.sh/uv/install.sh | sh
export PATH="$HOME/.local/bin:$PATH"

# 尝试 3: 如果 PATH 未生效
export PATH="$HOME/.local/bin:$PATH"
```

### 验证
```bash
uv --version
```

## Step 3: 一键安装 SearXNG

### 检测
```bash
searxng-search status
```

如果显示 `✓ 服务运行中`,跳到 Step 5。

### 安装
```bash
# 确保脚本可执行
chmod +x <skill_dir>/scripts/searxng_cli.py

# 创建 symlink(如果不存在)
which searxng-search || sudo ln -sf <skill_dir>/scripts/searxng_cli.py /usr/local/bin/searxng-search

# 设置 secret(安装时会自动生成,也可预设置)
export SEARXNG_SECRET="your-secret-key"

# 一键安装(自动完成:克隆、venv、依赖、JSON启用、limiter配置、启动)
searxng-search install
```

> **install 自动执行以下操作:**
> 1. 克隆 SearXNG 到 `~/projects/searxng`
> 2. `uv venv --clear` 创建虚拟环境
> 3. `uv pip install -r requirements.txt` 安装依赖
> 4. 启用 JSON API(修改 `settings.yml`)
> 5. 复制 `limiter.toml` 到 `/etc/searxng/`(需要 sudo 或目录已存在)
> 6. 生成 secret 并启动服务

### 验证
```bash
searxng-search status
```
期望输出:`✓ 服务运行中: http://127.0.0.1:8888`

## Step 4: 验证搜索功能

### 验证
```bash
searxng-search search "test"
```
期望输出:搜索结果列表(标题 + URL + 摘要)

```bash
curl -s -H "X-Forwarded-For: 127.0.0.1" "http://127.0.0.1:8888/search?q=test&format=json" | python3 -m json.tool | head -10
```
期望输出:有效 JSON(`"query": "test"` + `"results": [...]`)

## Onboarding 完成

以上步骤全部通过后,onboarding 完成。后续可直接使用 `searxng-search` 命令。

## Known Limitations | 已知限制

- **部分引擎不稳定**:DuckDuckGo 可能触发 CAPTCHA、Brave 可能返回 403、Startpage 可能 JSON 解析失败。这是 SearXNG 上游和各搜索引擎的外部限制,非 CLI 问题
- **首次搜索较慢**:首次请求可能需要 5-30 秒(引擎初始化、DNS 解析),后续请求会加速
- **容器环境**:在资源受限的容器中可能启动超时,推荐部署在有稳定网络出口的宿主机上

## Troubleshooting | 故障排除

| 错误 | 原因 | 解决 |
|------|------|------|
| `command not found: searxng-search` | symlink 未创建 | `sudo ln -sf <skill_dir>/scripts/searxng_cli.py /usr/local/bin/searxng-search` |
| `command not found: uv` | uv 未安装或 PATH 未生效 | Step 2 重新安装,`export PATH="$HOME/.local/bin:$PATH"` |
| `TypeError: schema of limiter.toml is invalid` | `/etc/searxng/limiter.toml` 格式错误或为空 | `sudo cp ~/projects/searxng/searx/limiter.toml /etc/searxng/limiter.toml` |
| `403 Forbidden` (API 请求) | Bot detection 拦截(缺少 `X-Forwarded-For` header) | 确保 limiter.toml 存在且格式正确(使用源码默认文件)

skill-card.md

## Description:

Uses a self-hosted SearXNG search engine to provide agents with free, multi-engine web search through a CLI.

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

## Publisher:

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

### License/Terms of Use:

GNU General Public License v3.0

## Use Case:

Developers and agents use this skill to deploy or connect to a SearXNG instance and run aggregated web searches without a paid search API. It is suited for information retrieval, project research, and self-hosted search workflows.

### Deployment Geography for Use:

Global

## Known Risks and Mitigations:

Risk: Setup can execute remote installation code, install mutable upstream software, and run a local SearXNG service.

Mitigation: Review installer commands before execution, pin or verify uv, SearXNG, and dependencies where possible, and approve any sudo use explicitly.

Risk: Search queries can be sent to the local SearXNG instance and upstream search engines.

Mitigation: Avoid searching for secrets, private data, or sensitive internal information.

Risk: The setup path can create persistence for the local SearXNG service.

Mitigation: Use the status, enable, disable, start, and stop commands deliberately and document whether auto-start is appropriate for the host.

## Reference(s):

- [SearXNG Search CLI Onboarding](references/ONBOARDING.md)
- [SearXNG Official Docs](https://docs.searxng.org)
- [SearXNG GitHub Repository](https://github.com/searxng/searx)

## Skill Output:

**Output Type(s):** [text, shell commands, configuration, guidance]

**Output Format:** [Markdown guidance with inline shell commands and CLI search result text]

**Output Parameters:** [1D]

**Other Properties Related to Output:** [Search results depend on the configured SearXNG instance and upstream search engines.]

## Skill Version(s):

1.3.0 (source: frontmatter and server release metadata)

## 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 SearXNG Search CLI (Free, Self-hosted, Auto-deploy, Multi-Channel) and adjacent AI workflows.