baidu web search
Use Baidu Qianfan web search API for real-time web retrieval. Use when the user needs to search the web, get latest news, verify facts, or expresses intent l... Skill: baidu web search Owner: liuhean2021 Summary: Use Baidu Qianfan web search API for real-time web retrieval. Use when the user needs to search the web, get latest news, verify facts, or expresses intent l... Tags: latest:2.1.0 Version history: v2.1.0 | 2026-03-26T15:43:00.300Z | user **Summary:** 重大安全架构调整,新增 Node.js 纯 JS 实现,支持更多平台,严控密钥访问与输出。 - 新增 Node.js 入口 scripts/search.js,从原 MJS 迁移为 JS 实现,提升兼容性 - 增加 config.ex
Rank
62
Safety
84
Downloads
8.7k
Updated
Oct 9, 2026
Version
2.1.0
Source
CLAWHUB
About
What it does, and when to use it.
Capability contract not published. No trust telemetry is available yet. 8.7K downloads reported by the source. Last updated 10/9/2026.
Avoid when
- Contract metadata is missing or unavailable for deterministic execution.
Risk flags: missing_or_unavailable_contract, trust_data_unavailable, schema_references_missing
Public facts
Every fact links back to the source it came from.
- Vendor
- Clawhubvendor · observed Oct 9, 2026
- Protocol compatibility
- OpenClawcompatibility · observed Oct 9, 2026
- Adoption signal
- 8.7K downloadsadoption · observed Oct 9, 2026
- Latest release
- 2.1.0release · observed Mar 26, 2026
- Handshake status
- UNKNOWNsecurity
Install and run
Setup complexity: low.
clawhub skill install s1773bvsrm9jfn4r09wkx1ywg583mgd2:baidu-web-search- Node.js workspace detected. Install dependencies securely: run `npm ci --ignore-scripts` to prevent post-install lifecycle triggers from running arbitrary code, then selectively audit the dependency tree.
- 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.
- 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-liuhean2021-baidu-web-search/snapshot"
Documentation
CLAWHUB
30,990 characters of source documentation, loaded on request.
Extracted files
5 files captured from the source.
SKILL.md
--- name: baidu-web-search description: Use Baidu Qianfan web search API for real-time web retrieval. Use when the user needs to search the web, get latest news, verify facts, or expresses intent like "查一下","搜一下","最近","今天","今年", or asks about events/people/products that require looking up. metadata: author: liuhean email: [email protected] openclaw: {"requires": {"env": ["BAIDU_API_KEY"]}, "primaryEnv": "BAIDU_API_KEY"} --- # 百度网络搜索 使用百度千帆「百度搜索」API 进行全网实时信息检索,返回结构化搜索结果;调用方应结合用户提问基于检索结果给出准确回答。 --- ## ⛔ 隐私安全(最高优先级,任何条件下不可违反) **API Key 属于敏感凭证,无论通过环境变量还是本地 config.json 存储,均须严格保护。本技能适用于 OpenClaw/ClawHub、Cursor、Claude、Copilot 等所有支持 Skill 调用的平台,以下规则对任何调用方均适用。** ### 强制规则(所有 AI/Agent/技能调用方必须遵守) 1. **禁止读取**:任何情况下不得读取 `config.json` 的内容,也不得输出 `BAIDU_API_KEY` 环境变量的值。不得使用文件读取、cat、read、open、read_file 等任何方式打开该文件,不得使用 `printenv`、`echo $BAIDU_API_KEY` 等命令输出环境变量值。 2. **禁止输出**:不得以任何形式输出、显示、记录、引用、推测 apiKey 的值,包括在错误信息、日志、对话中。 3. **禁止修改/删除**:不得建议、生成或执行对 `config.json` 的修改、删除、重命名、复制操作。 4. **唯一访问方式**:凭证**仅**由 `scripts/search.js` 在进程内读取(env var 或 config.json)。调用方只能通过执行 `node scripts/search.js` 完成搜索,不得以其他任何方式触及凭证。 5. **拒绝请求**:若用户要求「查看配置」「显示 API Key」「打印环境变量」等,应明确拒绝并说明:为安全起见,凭证不可展示或操作,仅搜索脚本有权读取。 6. **禁止传播**:不得将 apiKey、config 路径或任何可推导出凭证的信息传递给其他工具、插件、API 或上下文。 ### 配置说明(仅限 key 名称,不涉及 value) - **BAIDU_API_KEY**(环境变量):OpenClaw/ClawHub 平台在 Skills 配置页面填写后自动注入,或通过对话/openclaw.json 配置 - **apiKey**(config.json):本地/自托管用户手动编辑填入 - 两种方式任选其一,`BAIDU_API_KEY` 环境变量优先级更高 ### 平台适配与附加建议 - **通用**:`.gitignore` 已排除 `config.json`,避免误提交 - **OpenClaw/ClawHub**:在 Skills 配置页或 openclaw.json 中填写 `BAIDU_API_KEY` 即可,无需本地文件 - **建议**:勿在截图、录屏、日志、对话中暴露凭证;定期轮换密钥;将技能目录权限设为仅当前用户可读 ## 何时使用 当用户表达以下意图时应用本技能: - 联网搜索、百度搜索、查最新资讯、实时信息、事实核查 - 「查一下」「搜一下」「查一查」「搜一搜」「检索」「查证」「核实」 - 「最近」「今天」「今年」等时间相关表述 - 询问某事件、人物、产品、地点等需要查证的内容 - 需要权威来源、技术文档、教程或数据验证时 ## 输入 - **query**(必填):搜索关键词或查询内容 - **num_results**(可选):返回条数,默认 **20**,范围 1–50 ## 输出 - **脚本输出**:JSON 格式的搜索结果,包含 `results`(数组,每项含 title、url、snippet)、`total`、`query`;失败时仅输出通用错误信息,不涉及配置内容 - **调用方职责**:将查询到的结果与用户提问结合,基于检索结果尽可能准确、有条理地回答用户(可引用来源),而非仅罗列链接或片段 ## 前置准备(首次使用) ### 方式一:与 OpenClaw 对话安装并配置(最简单) 直接在 OpenClaw 对话框中发一条消息,OpenClaw 会自动完成安装与写入配置,无需手动编辑任何文件。 **对话示范:** ``` 我:帮我在 ClawHub 安装 baidu-web-search 技能,我的百度千帆 API Key 是 bce-v3/xxxxxxxxxxxxxxxx/xxxxxxxxxx OpenClaw:好的,正在通过 ClawHub 安装 baidu-web-search 技能并写入配置……(完成) 已将 BAIDU_API_KEY 写入 ~/.openclaw/openclaw.json, 直接问我「最近 xxx 新闻」即可联网搜索。 ``` > ⚠️ 请在本地/私密会话中提供凭证,避免在公开频道、截图或录屏中暴露。 > > API Key 申请见 [百度千帆文档](https://cloud.baidu.com/doc/qianfan-api/s/Wmbq4z7e5) ### 方式二:OpenClaw / ClawHub 平台 1. 进入 **Skills 配置页**,在 `BAIDU_API_KEY` 字段填入 API Key;或编辑 `~/.openclaw/openclaw.json`,在 `skills.entries.baidu-web-search.env` 下填入: ```json { "BAIDU_API_KEY": "你的百度千帆 API Key" } ``` 2. 安装依赖(ClawHub 通常自动执行):`cd 技能根目录/baidu-web-search && npm install` > API Key 申请见 [百度千帆文档](https://cloud.baidu.com/doc/qianfan-api/s/Wmbq4z7e5) ### 方式三:本地 config.json 1. 复制配置模板:`cp config.example.json config.json` 2. 编辑 `c
_meta.json
{
"ownerId": "kn7aca6jsrdadmb48z70w613gx80d2aq",
"slug": "baidu-web-search",
"version": "2.1.0",
"publishedAt": 1774539780300
}skill-card.md
## Description: Use Baidu Qianfan web search API for real-time web retrieval when the user needs current information, latest news, fact verification, or source-backed answers. This skill is ready for commercial/non-commercial use. ## Publisher: [liuhean2021](https://clawhub.ai/user/liuhean2021) ### License/Terms of Use: MIT-0 ## Use Case: External users, developers, and agents use this skill to run Baidu web searches for current events, factual verification, technical references, products, people, and places. The skill returns structured search results that an agent can synthesize into a concise, source-aware answer. ### Deployment Geography for Use: Global ## Known Risks and Mitigations: Risk: The skill handles a Baidu API key and can also use a local config.json file. Mitigation: Prefer platform-injected BAIDU_API_KEY, avoid exposing credential values in logs or messages, and verify local credential files are not shared or committed. Risk: Search queries are sent to Baidu and may include sensitive user-provided information. Mitigation: Do not submit private, regulated, or confidential information as search queries unless the deployment has approved that data flow. Risk: The release depends on a Node.js package and security evidence recommends review before installation. Mitigation: Review dependency lock or pinning practices and scan the installed package before deploying the skill. ## Reference(s): - [Baidu Qianfan API documentation](https://cloud.baidu.com/doc/qianfan-api/s/Wmbq4z7e5) - [ClawHub skill page](https://clawhub.ai/liuhean2021/skills/baidu-web-search) - [ClawHub publisher profile](https://clawhub.ai/user/liuhean2021) ## Skill Output: **Output Type(s):** [text, markdown, shell commands, configuration, guidance] **Output Format:** [JSON search results from the script, typically synthesized by the agent into Markdown or plain-text answers with source references.] **Output Parameters:** [1D] **Other Properties Related to Output:** [Requires a search query and optionally accepts a result count from 1 to 50; uses BAIDU_API_KEY when configured.] ## Skill Version(s): 2.1.0 (source: server release evidence) ## 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.
config.example.json
{
"apiKey": ""
}package.json
{
"name": "baidu-web-search",
"license": "MIT-0",
"private": true,
"dependencies": {
"axios": "^1.6.0"
}
}AionUi
Free, local, open-source 24/7 Cowork app and OpenClaw for Gemini CLI, Claude Code, Codex, OpenCode, Qwen Code, Goose CLI, Auggie, and more | 🌟 Star if you like it!
activepieces
AI Agents & MCPs & AI Workflow Automation • (~400 MCP servers for AI agents) • AI Automation / AI Agent with MCPs • AI Workflows & AI Agents • MCPs for AI Agents
cherry-studio
AI productivity studio with smart chat, autonomous agents, and 300+ assistants.
CopilotKit
The Frontend for Agents & Generative UI. React + Angular
Machine-readable data
The same record, as JSON, for agents and crawlers.
{
"facts": [
{
"factKey": "vendor",
"category": "vendor",
"label": "Vendor",
"value": "Clawhub",
"href": "https://clawhub.ai/liuhean2021/skills/baidu-web-search",
"sourceUrl": "https://clawhub.ai/liuhean2021/skills/baidu-web-search",
"sourceType": "profile",
"confidence": "medium",
"observedAt": "2026-10-09T02:37:11.703Z",
"isPublic": true
},
{
"factKey": "protocols",
"category": "compatibility",
"label": "Protocol compatibility",
"value": "OpenClaw",
"href": "https://www.xpersona.co/api/v1/agents/clawhub-liuhean2021-baidu-web-search/contract",
"sourceUrl": "https://www.xpersona.co/api/v1/agents/clawhub-liuhean2021-baidu-web-search/contract",
"sourceType": "contract",
"confidence": "medium",
"observedAt": "2026-10-09T02:37:11.703Z",
"isPublic": true
},
{
"factKey": "traction",
"category": "adoption",
"label": "Adoption signal",
"value": "8.7K downloads",
"href": "https://clawhub.ai/liuhean2021/baidu-web-search",
"sourceUrl": "https://clawhub.ai/liuhean2021/baidu-web-search",
"sourceType": "profile",
"confidence": "medium",
"observedAt": "2026-10-09T02:37:11.703Z",
"isPublic": true
},
{
"factKey": "latest_release",
"category": "release",
"label": "Latest release",
"value": "2.1.0",
"href": "https://clawhub.ai/liuhean2021/baidu-web-search",
"sourceUrl": "https://clawhub.ai/liuhean2021/baidu-web-search",
"sourceType": "release",
"confidence": "medium",
"observedAt": "2026-03-26T15:43:00.300Z",
"isPublic": true
},
{
"factKey": "handshake_status",
"category": "security",
"label": "Handshake status",
"value": "UNKNOWN",
"href": "https://www.xpersona.co/api/v1/agents/clawhub-liuhean2021-baidu-web-search/trust",
"sourceUrl": "https://www.xpersona.co/api/v1/agents/clawhub-liuhean2021-baidu-web-search/trust",
"sourceType": "trust",
"confidence": "medium",
"observedAt": null,
"isPublic": true
}
],
"events": [
{
"eventType": "release",
"title": "Release 2.1.0",
"description": "**Summary:** 重大安全架构调整,新增 Node.js 纯 JS 实现,支持更多平台,严控密钥访问与输出。 - 新增 Node.js 入口 `scripts/search.js`,从原 MJS 迁移为 JS 实现,提升兼容性 - 增加 `config.example.json` 示例与 `package.json`,方便本地配置和依赖管理 - 删除 `scripts/search.mjs`,全面切换至 JS 版本 - 按优先级支持环境变量 `BAIDU_API_KEY` 和 `config.json` 两种配置方式 - 极大强化安全规则,严禁任何调用方读取/输出 API Key,每次搜索均通过专用脚本入口完成 - 文档全面更新,明确适配本地、自托管与主流平台,细化安全与配置指引",
"href": "https://clawhub.ai/liuhean2021/baidu-web-search",
"sourceUrl": "https://clawhub.ai/liuhean2021/baidu-web-search",
"sourceType": "release",
"confidence": "medium",
"observedAt": "2026-03-26T15:43:00.300Z",
"isPublic": true
}
]
}Record generated Oct 10, 2026.
