{"id":"b3909f8f-9cc8-40ff-be5a-4b156b7861e3","entityType":"agent","slug":"clawhub-liuhean2021-baidu-web-search","name":"baidu web search","canonicalUrl":"https://www.xpersona.co/agent/clawhub-liuhean2021-baidu-web-search","canonicalPath":"/agent/clawhub-liuhean2021-baidu-web-search","generatedAt":"2026-10-10T03:26:40.256Z","source":"CLAWHUB","claimStatus":"UNCLAIMED","verificationTier":"NONE","summary":{"evidence":{"source":"editorial-content","verified":true,"confidence":"high","updatedAt":"2026-10-09T02:37:11.703Z","emptyReason":null},"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 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","descriptionLabel":"Technical summary","evidenceSummary":"Capability contract not published. No trust telemetry is available yet. 8.7K downloads reported by the source. Last updated 10/9/2026.","installCommand":"clawhub skill install s1773bvsrm9jfn4r09wkx1ywg583mgd2:baidu-web-search","sourceUrl":"https://clawhub.ai/liuhean2021/baidu-web-search","homepage":"https://clawhub.ai/liuhean2021/skills/baidu-web-search","primaryLinks":[{"label":"View on ClawHub","url":"https://clawhub.ai/liuhean2021/baidu-web-search","kind":"source"},{"label":"Homepage","url":"https://clawhub.ai/liuhean2021/skills/baidu-web-search","kind":"homepage"}],"safetyScore":84,"overallRank":62,"popularityScore":74,"trustScore":null,"claimedByName":null,"isOwner":false,"seoDescription":"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..."},"coverage":{"evidence":{"source":"public-profile","verified":false,"confidence":"medium","updatedAt":"2026-10-09T02:37:11.703Z","emptyReason":null},"protocols":[{"protocol":"OPENCLEW","label":"OpenClaw","status":"self-declared","notes":"Declared in the public agent profile."}],"capabilities":[],"verifiedCount":0,"selfDeclaredCount":1,"capabilityMatrix":{"rows":[{"key":"OPENCLEW","type":"protocol","support":"unknown","confidenceSource":"profile","notes":"Listed on profile"}],"flattenedTokens":"protocol:OPENCLEW|unknown|profile"}},"adoption":{"evidence":{"source":"CLAWHUB","verified":false,"confidence":"medium","updatedAt":"2026-10-09T02:37:11.703Z","emptyReason":null},"stars":null,"forks":null,"downloads":8704,"packageName":null,"latestVersion":"2.1.0","tractionLabel":"8.7K downloads"},"release":{"evidence":{"source":"CLAWHUB","verified":false,"confidence":"medium","updatedAt":"2026-10-09T02:37:11.703Z","emptyReason":null},"lastUpdatedAt":"2026-10-09T02:37:11.703Z","lastCrawledAt":"2026-10-09T02:37:11.703Z","lastIndexedAt":null,"nextCrawlAt":"2026-10-10T02:37:11.703Z","lastVerifiedAt":null,"highlights":[{"version":"2.1.0","createdAt":"2026-03-26T15:43:00.300Z","changelog":"**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，每次搜索均通过专用脚本入口完成 - 文档全面更新，明确适配本地、自托管与主流平台，细化安全与配置指引","fileCount":6,"zipByteSize":7009},{"version":"2.0.0","createdAt":"2026-03-26T14:54:57.466Z","changelog":"- Migrated script from CommonJS to ES Module (`search.js` → `search.mjs`) for improved compatibility and maintainability. - Removed unnecessary files: `package.json` and the old `search.js` script. - Updated all documentation and execution instructions to reference the new `search.mjs` script. - No changes to core functionality or configuration—continue using the `BAIDU_API_KEY` environment variable for authentication.","fileCount":3,"zipByteSize":5240},{"version":"1.3.0","createdAt":"2026-03-26T14:26:33.746Z","changelog":"**Credential configuration is now environment-variable only; config file support removed.** - Removed support for local config.json files; API Key must now be set via the BAIDU_API_KEY environment variable. - Deleted config.example.json from the repository as part of this security change. - Updated documentation to reflect the new environment variable-only setup and provide migration guidance. - Enhanced and clarified privacy, security, and credential handling rules.","fileCount":4,"zipByteSize":5261},{"version":"1.2.0","createdAt":"2026-03-13T08:44:17.027Z","changelog":"- Updated maintainer contact information and metadata author field. - Added a new \"参与贡献\" (Contributing) section with repository and contribution guidelines. - Provided the official GitHub repository link for feedback and pull requests. - Clarified that the skill is located in the `skills/baidu-web-search/` directory. - Reminded contributors to avoid committing `config.json` by keeping it in `.gitignore`.","fileCount":5,"zipByteSize":5689},{"version":"1.1.0","createdAt":"2026-02-25T10:03:45.835Z","changelog":"- 新增支持通过 OpenClaw 对话框安装和配置技能，用户可直接对话自动写入 API Key，无需手动编辑文件 - 明确说明 OpenClaw/ClawHub 平台支持通过 Skills 配置页、openclaw.json 或会话配置 API Key - 安全说明细化，强调在私密会话下配置并避免凭证泄露 - 教程部分补充三种配置方式，简化上手流程 - 其他文档描述优化，便于理解和操作","fileCount":5,"zipByteSize":5474},{"version":"1.0.0","createdAt":"2026-02-24T14:50:04.859Z","changelog":"baidu-web-search v1.0.0 - Initial release enabling real-time web search via Baidu Qianfan web search API. - Provides structured search results in JSON based on user queries. - Enforces strict privacy and credential security rules; API key must never be exposed, logged, or manipulated outside the search script. - Supports usage in OpenClaw/ClawHub and self-hosted environments, with clear configuration guidance for each. - Designed for queries related to latest news, fact-checking, recent events, and general web search needs.","fileCount":5,"zipByteSize":5182}]},"execution":{"evidence":{"source":"CLAWHUB","verified":false,"confidence":"low","updatedAt":null,"emptyReason":"No published capability contract is available yet."},"installCommand":"clawhub skill install s1773bvsrm9jfn4r09wkx1ywg583mgd2:baidu-web-search","setupComplexity":"low","setupSteps":["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":{"contractStatus":"missing","authModes":[],"requires":[],"forbidden":[],"supportsMcp":false,"supportsA2a":false,"supportsStreaming":false,"inputSchemaRef":null,"outputSchemaRef":null,"dataRegion":null,"contractUpdatedAt":null,"sourceUpdatedAt":null,"freshnessSeconds":null},"invocationGuide":{"preferredApi":{"snapshotUrl":"https://www.xpersona.co/api/v1/agents/clawhub-liuhean2021-baidu-web-search/snapshot","contractUrl":"https://www.xpersona.co/api/v1/agents/clawhub-liuhean2021-baidu-web-search/contract","trustUrl":"https://www.xpersona.co/api/v1/agents/clawhub-liuhean2021-baidu-web-search/trust"},"curlExamples":["curl -s \"https://www.xpersona.co/api/v1/agents/clawhub-liuhean2021-baidu-web-search/snapshot\"","curl -s \"https://www.xpersona.co/api/v1/agents/clawhub-liuhean2021-baidu-web-search/contract\"","curl -s \"https://www.xpersona.co/api/v1/agents/clawhub-liuhean2021-baidu-web-search/trust\""],"jsonRequestTemplate":{"query":"summarize this repo","constraints":{"maxLatencyMs":2000,"protocolPreference":["OPENCLEW"]}},"jsonResponseTemplate":{"ok":true,"result":{"summary":"...","confidence":0.9},"meta":{"source":"CLAWHUB","generatedAt":"2026-10-10T03:26:40.255Z"}},"retryPolicy":{"maxAttempts":3,"backoffMs":[500,1500,3500],"retryableConditions":["HTTP_429","HTTP_503","NETWORK_TIMEOUT"]}},"endpoints":{"dossierUrl":"https://www.xpersona.co/api/v1/agents/clawhub-liuhean2021-baidu-web-search/dossier","snapshotUrl":"https://www.xpersona.co/api/v1/agents/clawhub-liuhean2021-baidu-web-search/snapshot","contractUrl":"https://www.xpersona.co/api/v1/agents/clawhub-liuhean2021-baidu-web-search/contract","trustUrl":"https://www.xpersona.co/api/v1/agents/clawhub-liuhean2021-baidu-web-search/trust"}},"reliability":{"evidence":{"source":"runtime-metrics","verified":false,"confidence":"low","updatedAt":null,"emptyReason":"No trust, reliability, or runtime telemetry is available."},"trust":{"status":"unavailable","handshakeStatus":"UNKNOWN","verificationFreshnessHours":null,"reputationScore":null,"p95LatencyMs":null,"successRate30d":null,"fallbackRate":null,"attempts30d":null,"trustUpdatedAt":null,"trustConfidence":"unknown","sourceUpdatedAt":null,"freshnessSeconds":null},"decisionGuardrails":{"doNotUseIf":["Contract metadata is missing or unavailable for deterministic execution."],"safeUseWhen":[],"riskFlags":["missing_or_unavailable_contract","trust_data_unavailable","schema_references_missing"],"operationalConfidence":"low"},"executionMetrics":{"observedLatencyMsP50":null,"observedLatencyMsP95":null,"estimatedCostUsd":null,"uptime30d":null,"rateLimitRpm":null,"rateLimitBurst":null,"lastVerifiedAt":null,"verificationSource":null},"runtimeMetrics":{"successRate":null,"avgLatencyMs":null,"avgCostUsd":null,"hallucinationRate":null,"retryRate":null,"disputeRate":null,"p50Latency":null,"p95Latency":null,"lastUpdated":null}},"benchmarks":{"evidence":{"source":"no-benchmark-data","verified":false,"confidence":"low","updatedAt":null,"emptyReason":"No benchmark suites or observed failure patterns are available."},"suites":[],"failurePatterns":[]},"artifacts":{"evidence":{"source":"CLAWHUB","verified":false,"confidence":"high","updatedAt":"2026-10-09T02:37:11.703Z","emptyReason":null},"readme":"Skill: baidu web search\n\nOwner: liuhean2021\n\nSummary: 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...\n\nTags: latest:2.1.0\n\nVersion history:\n\nv2.1.0 | 2026-03-26T15:43:00.300Z | user\n\n**Summary:**  \n重大安全架构调整，新增 Node.js 纯 JS 实现，支持更多平台，严控密钥访问与输出。\n\n- 新增 Node.js 入口 `scripts/search.js`，从原 MJS 迁移为 JS 实现，提升兼容性\n- 增加 `config.example.json` 示例与 `package.json`，方便本地配置和依赖管理\n- 删除 `scripts/search.mjs`，全面切换至 JS 版本\n- 按优先级支持环境变量 `BAIDU_API_KEY` 和 `config.json` 两种配置方式\n- 极大强化安全规则，严禁任何调用方读取/输出 API Key，每次搜索均通过专用脚本入口完成\n- 文档全面更新，明确适配本地、自托管与主流平台，细化安全与配置指引\n\nv2.0.0 | 2026-03-26T14:54:57.466Z | user\n\n- Migrated script from CommonJS to ES Module (`search.js` → `search.mjs`) for improved compatibility and maintainability.\n- Removed unnecessary files: `package.json` and the old `search.js` script.\n- Updated all documentation and execution instructions to reference the new `search.mjs` script.\n- No changes to core functionality or configuration—continue using the `BAIDU_API_KEY` environment variable for authentication.\n\nv1.3.0 | 2026-03-26T14:26:33.746Z | user\n\n**Credential configuration is now environment-variable only; config file support removed.**\n\n- Removed support for local config.json files; API Key must now be set via the BAIDU_API_KEY environment variable.\n- Deleted config.example.json from the repository as part of this security change.\n- Updated documentation to reflect the new environment variable-only setup and provide migration guidance.\n- Enhanced and clarified privacy, security, and credential handling rules.\n\nv1.2.0 | 2026-03-13T08:44:17.027Z | user\n\n- Updated maintainer contact information and metadata author field.\n- Added a new \"参与贡献\" (Contributing) section with repository and contribution guidelines.\n- Provided the official GitHub repository link for feedback and pull requests.\n- Clarified that the skill is located in the `skills/baidu-web-search/` directory.\n- Reminded contributors to avoid committing `config.json` by keeping it in `.gitignore`.\n\nv1.1.0 | 2026-02-25T10:03:45.835Z | user\n\n- 新增支持通过 OpenClaw 对话框安装和配置技能，用户可直接对话自动写入 API Key，无需手动编辑文件  \n- 明确说明 OpenClaw/ClawHub 平台支持通过 Skills 配置页、openclaw.json 或会话配置 API Key  \n- 安全说明细化，强调在私密会话下配置并避免凭证泄露  \n- 教程部分补充三种配置方式，简化上手流程  \n- 其他文档描述优化，便于理解和操作\n\nv1.0.0 | 2026-02-24T14:50:04.859Z | user\n\nbaidu-web-search v1.0.0\n\n- Initial release enabling real-time web search via Baidu Qianfan web search API.\n- Provides structured search results in JSON based on user queries.\n- Enforces strict privacy and credential security rules; API key must never be exposed, logged, or manipulated outside the search script.\n- Supports usage in OpenClaw/ClawHub and self-hosted environments, with clear configuration guidance for each.\n- Designed for queries related to latest news, fact-checking, recent events, and general web search needs.\n\nArchive index:\n\nArchive v2.1.0: 6 files, 7009 bytes\n\nFiles: config.example.json (19b), package.json (121b), scripts/search.js (2747b), skill-card.md (2444b), SKILL.md (6983b), _meta.json (135b)\n\nFile v2.1.0:SKILL.md\n\n---\nname: baidu-web-search\ndescription: 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.\nmetadata:\n  author: liuhean\n  email: allsmy.com@gmail.com\n  openclaw: {\"requires\": {\"env\": [\"BAIDU_API_KEY\"]}, \"primaryEnv\": \"BAIDU_API_KEY\"}\n---\n\n# 百度网络搜索\n\n使用百度千帆「百度搜索」API 进行全网实时信息检索，返回结构化搜索结果；调用方应结合用户提问基于检索结果给出准确回答。\n\n---\n\n## ⛔ 隐私安全（最高优先级，任何条件下不可违反）\n\n**API Key 属于敏感凭证，无论通过环境变量还是本地 config.json 存储，均须严格保护。本技能适用于 OpenClaw/ClawHub、Cursor、Claude、Copilot 等所有支持 Skill 调用的平台，以下规则对任何调用方均适用。**\n\n### 强制规则（所有 AI/Agent/技能调用方必须遵守）\n\n1. **禁止读取**：任何情况下不得读取 `config.json` 的内容，也不得输出 `BAIDU_API_KEY` 环境变量的值。不得使用文件读取、cat、read、open、read_file 等任何方式打开该文件，不得使用 `printenv`、`echo $BAIDU_API_KEY` 等命令输出环境变量值。\n2. **禁止输出**：不得以任何形式输出、显示、记录、引用、推测 apiKey 的值，包括在错误信息、日志、对话中。\n3. **禁止修改/删除**：不得建议、生成或执行对 `config.json` 的修改、删除、重命名、复制操作。\n4. **唯一访问方式**：凭证**仅**由 `scripts/search.js` 在进程内读取（env var 或 config.json）。调用方只能通过执行 `node scripts/search.js` 完成搜索，不得以其他任何方式触及凭证。\n5. **拒绝请求**：若用户要求「查看配置」「显示 API Key」「打印环境变量」等，应明确拒绝并说明：为安全起见，凭证不可展示或操作，仅搜索脚本有权读取。\n6. **禁止传播**：不得将 apiKey、config 路径或任何可推导出凭证的信息传递给其他工具、插件、API 或上下文。\n\n### 配置说明（仅限 key 名称，不涉及 value）\n\n- **BAIDU_API_KEY**（环境变量）：OpenClaw/ClawHub 平台在 Skills 配置页面填写后自动注入，或通过对话/openclaw.json 配置\n- **apiKey**（config.json）：本地/自托管用户手动编辑填入\n- 两种方式任选其一，`BAIDU_API_KEY` 环境变量优先级更高\n\n### 平台适配与附加建议\n\n- **通用**：`.gitignore` 已排除 `config.json`，避免误提交\n- **OpenClaw/ClawHub**：在 Skills 配置页或 openclaw.json 中填写 `BAIDU_API_KEY` 即可，无需本地文件\n- **建议**：勿在截图、录屏、日志、对话中暴露凭证；定期轮换密钥；将技能目录权限设为仅当前用户可读\n\n## 何时使用\n\n当用户表达以下意图时应用本技能：\n\n- 联网搜索、百度搜索、查最新资讯、实时信息、事实核查\n- 「查一下」「搜一下」「查一查」「搜一搜」「检索」「查证」「核实」\n- 「最近」「今天」「今年」等时间相关表述\n- 询问某事件、人物、产品、地点等需要查证的内容\n- 需要权威来源、技术文档、教程或数据验证时\n\n## 输入\n\n- **query**（必填）：搜索关键词或查询内容\n- **num_results**（可选）：返回条数，默认 **20**，范围 1–50\n\n## 输出\n\n- **脚本输出**：JSON 格式的搜索结果，包含 `results`（数组，每项含 title、url、snippet）、`total`、`query`；失败时仅输出通用错误信息，不涉及配置内容\n- **调用方职责**：将查询到的结果与用户提问结合，基于检索结果尽可能准确、有条理地回答用户（可引用来源），而非仅罗列链接或片段\n\n## 前置准备（首次使用）\n\n### 方式一：与 OpenClaw 对话安装并配置（最简单）\n\n直接在 OpenClaw 对话框中发一条消息，OpenClaw 会自动完成安装与写入配置，无需手动编辑任何文件。\n\n**对话示范：**\n\n```\n我：帮我在 ClawHub 安装 baidu-web-search 技能，我的百度千帆 API Key 是 bce-v3/xxxxxxxxxxxxxxxx/xxxxxxxxxx\n\nOpenClaw：好的，正在通过 ClawHub 安装 baidu-web-search 技能并写入配置……（完成）\n          已将 BAIDU_API_KEY 写入 ~/.openclaw/openclaw.json，\n          直接问我「最近 xxx 新闻」即可联网搜索。\n```\n\n> ⚠️ 请在本地/私密会话中提供凭证，避免在公开频道、截图或录屏中暴露。\n>\n> API Key 申请见 [百度千帆文档](https://cloud.baidu.com/doc/qianfan-api/s/Wmbq4z7e5)\n\n### 方式二：OpenClaw / ClawHub 平台\n\n1. 进入 **Skills 配置页**，在 `BAIDU_API_KEY` 字段填入 API Key；或编辑 `~/.openclaw/openclaw.json`，在 `skills.entries.baidu-web-search.env` 下填入：\n   ```json\n   { \"BAIDU_API_KEY\": \"你的百度千帆 API Key\" }\n   ```\n2. 安装依赖（ClawHub 通常自动执行）：`cd 技能根目录/baidu-web-search && npm install`\n\n> API Key 申请见 [百度千帆文档](https://cloud.baidu.com/doc/qianfan-api/s/Wmbq4z7e5)\n\n### 方式三：本地 config.json\n\n1. 复制配置模板：`cp config.example.json config.json`\n2. 编辑 `config.json`，填入 `apiKey`\n3. 安装依赖：`cd 技能根目录/baidu-web-search && npm install`\n\n## 执行流程\n\n1. 解析用户提问，提取搜索意图与关键词\n2. **仅执行** `node scripts/search.js \"<query>\" [num_results]`，默认 num_results 为 20；由脚本内部读取 config（调用方不得读取 config）\n3. 脚本内部调用百度千帆 API，返回结构化结果\n4. 根据脚本输出的结果，结合用户提问，给出准确、基于来源的回答\n\n## 执行命令\n\n```bash\ncd 技能根目录/baidu-web-search && node scripts/search.js \"<查询内容>\" [条数]\n```\n\n示例：\n\n```bash\n# 默认返回 20 条\nnode scripts/search.js \"今日科技新闻\"\n\n# 指定 10 条\nnode scripts/search.js \"TypeScript 最新版本\" 10\n```\n\n## 配置说明（用户自行维护，AI 不读取）\n\n脚本按以下优先级解析 apiKey，AI 不参与任何配置读写：\n\n| 优先级 | 来源 | 适用场景 |\n|--------|------|----------|\n| 高 | 环境变量 `BAIDU_API_KEY` | OpenClaw/ClawHub 平台注入 |\n| 低 | 本地文件 `config.json` → `apiKey` | 本地 / 自托管 |\n\n- 配置异常时，搜索脚本输出通用提示，用户自行检查凭证是否填写正确\n\n## 参与贡献\n\n欢迎提交 Issue 或 Pull Request 改进本技能！\n\n**仓库地址**：[https://github.com/liuhean2021/Anan-Agent-Skills](https://github.com/liuhean2021/Anan-Agent-Skills)\n\n- 本技能位于 `skills/baidu-web-search/` 目录\n- 提交前请确保 `config.json` 不在 git 追踪范围内（已在 `.gitignore` 排除）\n- 本技能采用 [MIT-0](../../LICENSE) 许可协议，可自由使用、修改和重新分发，无需署名\n\nFile v2.1.0:_meta.json\n\n{\n  \"ownerId\": \"kn7aca6jsrdadmb48z70w613gx80d2aq\",\n  \"slug\": \"baidu-web-search\",\n  \"version\": \"2.1.0\",\n  \"publishedAt\": 1774539780300\n}\n\nFile v2.1.0:skill-card.md\n\n## Description:\n\nUse Baidu Qianfan web search API for real-time web retrieval when the user needs current information, latest news, fact verification, or source-backed answers.\n\nThis skill is ready for commercial/non-commercial use.\n\n## Publisher:\n\n[liuhean2021](https://clawhub.ai/user/liuhean2021)\n\n### License/Terms of Use:\n\nMIT-0\n\n## Use Case:\n\nExternal 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.\n\n### Deployment Geography for Use:\n\nGlobal\n\n## Known Risks and Mitigations:\n\nRisk: The skill handles a Baidu API key and can also use a local config.json file.\n\nMitigation: Prefer platform-injected BAIDU_API_KEY, avoid exposing credential values in logs or messages, and verify local credential files are not shared or committed.\n\nRisk: Search queries are sent to Baidu and may include sensitive user-provided information.\n\nMitigation: Do not submit private, regulated, or confidential information as search queries unless the deployment has approved that data flow.\n\nRisk: The release depends on a Node.js package and security evidence recommends review before installation.\n\nMitigation: Review dependency lock or pinning practices and scan the installed package before deploying the skill.\n\n## Reference(s):\n\n- [Baidu Qianfan API documentation](https://cloud.baidu.com/doc/qianfan-api/s/Wmbq4z7e5)\n- [ClawHub skill page](https://clawhub.ai/liuhean2021/skills/baidu-web-search)\n- [ClawHub publisher profile](https://clawhub.ai/user/liuhean2021)\n\n## Skill Output:\n\n**Output Type(s):** [text, markdown, shell commands, configuration, guidance]\n\n**Output Format:** [JSON search results from the script, typically synthesized by the agent into Markdown or plain-text answers with source references.]\n\n**Output Parameters:** [1D]\n\n**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.]\n\n## Skill Version(s):\n\n2.1.0 (source: server release evidence)\n\n## Ethical Considerations:\n\nUsers 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.\n\nFile v2.1.0:config.example.json\n\n{\n  \"apiKey\": \"\"\n}\n\nFile v2.1.0:package.json\n\n{\n  \"name\": \"baidu-web-search\",\n  \"license\": \"MIT-0\",\n  \"private\": true,\n  \"dependencies\": {\n    \"axios\": \"^1.6.0\"\n  }\n}\n\nArchive v2.0.0: 3 files, 5240 bytes\n\nFiles: scripts/search.mjs (2935b), SKILL.md (6580b), _meta.json (135b)\n\nFile v2.0.0:SKILL.md\n\n---\nname: baidu-web-search\ndescription: 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.\nmetadata:\n  author: liuhean\n  email: allsmy.com@gmail.com\n  openclaw:\n    requires:\n      env: [\"BAIDU_API_KEY\"]\n    primaryEnv: \"BAIDU_API_KEY\"\n    network:\n      - \"https://qianfan.baidubce.com\"\n    purpose: \"Authenticates with Baidu Qianfan API for web search retrieval.\"\n---\n\n# 百度网络搜索\n\n使用百度千帆「百度搜索」API 进行全网实时信息检索，返回结构化搜索结果；调用方应结合用户提问基于检索结果给出准确回答。\n\n---\n\n## 🛡️ 安全与隐私保护（最高优先级）\n\n**API Key 属于敏感凭证，必须严格保护。本技能遵循「最小权限原则」，仅在必要时通过环境变量读取凭证。**\n\n### 强制安全规则\n\n1. **禁止读取/输出**：任何情况下不得输出 `BAIDU_API_KEY` 环境变量的值。不得使用 `printenv`、`echo $BAIDU_API_KEY` 等命令在对话或日志中暴露凭证。\n2. **凭证隔离**：凭证**仅**由 `scripts/search.mjs` 在进程内读取，并作为 Bearer Token 传递给百度官方 API 端点（`https://qianfan.baidubce.com`）。\n3. **拒绝非法请求**：若用户要求「显示 API Key」或「查看环境变量」，应明确拒绝，说明凭证仅由后台脚本用于鉴权，不可对外展示。\n4. **数据流向透明**：本技能仅将用户输入的搜索关键词发送至百度千帆 API，不会将凭证发送至任何其他第三方地址。\n\n### 配置说明\n\n- **BAIDU_API_KEY**（环境变量）：在 OpenClaw/ClawHub 技能配置页填写后自动注入，或通过本地环境变量配置。\n- **不再支持 config.json**：为提升安全性，本技能已移除本地文件配置方式，避免凭证意外泄露。如果您此前使用 `config.json`，请将其中的 `BAIDU_API_KEY` 迁移至环境变量配置，并**务必删除**旧的配置文件。\n\n## 何时使用\n\n当用户表达以下意图时应用本技能：\n\n- 联网搜索、百度搜索、查最新资讯、实时信息、事实核查\n- 「查一下」「搜一下」「查一查」「搜一搜」「检索」「查证」「核实」\n- 「最近」「今天」「今年」等时间相关表述\n- 询问某事件、人物、产品、地点等需要查证的内容\n- 需要权威来源、技术文档、教程或数据验证时\n\n## 输入\n\n- **query**（必填）：搜索关键词或查询内容\n- **num_results**（可选）：返回条数，默认 **20**，范围 1–50\n\n## 输出\n\n- **脚本输出**：JSON 格式的搜索结果，包含 `results`（数组，每项含 title、url、snippet）、`total`、`query`；失败时仅输出通用错误信息，不涉及配置内容\n- **调用方职责**：将查询到的结果与用户提问结合，基于检索结果尽可能准确、有条理地回答用户（可引用来源），而非仅罗列链接或片段\n\n## 前置准备（首次使用）\n\n> 💡 **迁移提示**：若您此前在 `config.json` 中配置了 API Key，请参考下方的 [迁移指南](#迁移指南)。\n\n### 方式一：与 OpenClaw 对话安装并配置（推荐）\n\n直接在 OpenClaw 对话框中发一条消息，OpenClaw 会自动完成安装并安全地存储凭证。\n\n**对话示范：**\n```\n我：帮我在 ClawHub 安装 baidu-web-search 技能，我的百度千帆 API Key 是 bce-v3/xxxx/xxxx\n\nOpenClaw：好的，正在通过 ClawHub 安装 baidu-web-search 技能并写入配置……（完成）\n          已将 BAIDU_API_KEY 写入本地加密配置，直接问我「今日头条」即可搜索。\n```\n\n### 方式二：手动配置环境变量\n\n在您的 Shell 配置文件（如 `.bashrc` 或 `.zshrc`）或系统环境变量中设置：\n\n```bash\nexport BAIDU_API_KEY=\"你的百度千帆 API Key\"\n```\n\n或在 OpenClaw 的 `openclaw.json` 中配置该技能的 `env` 字段。\n\n> API Key 申请见 [百度千帆文档](https://cloud.baidu.com/doc/qianfan-api/s/Wmbq4z7e5)\n\n## 执行流程\n\n1. 解析用户提问，提取搜索意图与关键词\n2. **仅执行** `node scripts/search.mjs \"<query>\" [num_results]`，默认 num_results 为 20；由脚本内部读取 `BAIDU_API_KEY` 环境变量（调用方不得直接读取或输出凭证）\n3. 脚本内部调用百度千帆 API，返回结构化结果\n4. 根据脚本输出的结果，结合用户提问，给出准确、基于来源的回答\n\n## 执行命令\n\n```bash\ncd skills/baidu-web-search && node scripts/search.mjs \"<查询内容>\" [条数]\n```\n\n示例：\n\n```bash\n# 默认返回 20 条\nnode scripts/search.mjs \"今日科技新闻\"\n\n# 指定 10 条\nnode scripts/search.mjs \"TypeScript 最新版本\" 10\n```\n\n## 配置说明\n\n脚本从 `BAIDU_API_KEY` 环境变量读取凭证，AI 不参与任何配置读写：\n\n| 来源 | 适用场景 |\n|------|----------|\n| 环境变量 `BAIDU_API_KEY` | OpenClaw/ClawHub 平台注入；本地 Shell / `.zshrc` / `.bashrc` |\n\n### 迁移指南\n\n若您此前在 `config.json` 中配置了 API Key，请按以下步骤操作以确保安全：\n\n1. **迁移凭证**：将原 `config.json` 中的 `BAIDU_API_KEY` 值填入上述环境变量中（或在 OpenClaw 配置界面填入）。\n2. **删除旧文件**：手动删除 `skills/baidu-web-search/config.json` 文件，避免敏感凭证留在明文文件中。\n3. **验证配置**：运行一次搜索命令（如 `node scripts/search.mjs \"test\"`）确认环境变量已生效。\n\n## 常见问题（故障排除）\n\n- **搜索报错「未配置 BAIDU_API_KEY」**：请检查环境变量是否正确导出，或是否在 OpenClaw 配置界面正确填写。\n- **搜索服务不可用**：\n  - 请确认您的 `BAIDU_API_KEY` 是否有效且未过期。\n  - 请登录 [百度千帆控制台](https://console.bce.baidu.com/qianfan/aisearch/v2) 检查是否有足够的免费额度或账户余额。\n  - 检查您的网络环境是否能正常访问 `https://qianfan.baidubce.com`。\n- **搜索结果质量不佳**：尝试优化您的 `query` 关键词，使其更加具体明确。\n\n## 参与贡献\n\n欢迎提交 Issue 或 Pull Request 改进本技能！\n\n**仓库地址**：[https://github.com/liuhean2021/Anan-Agent-Skills](https://github.com/liuhean2021/Anan-Agent-Skills)\n\n- 本技能位于 `skills/baidu-web-search/` 目录\n- 本技能采用 [MIT-0](../../LICENSE) 许可协议，可自由使用、修改和重新分发，无需署名\n\nFile v2.0.0:_meta.json\n\n{\n  \"ownerId\": \"kn7aca6jsrdadmb48z70w613gx80d2aq\",\n  \"slug\": \"baidu-web-search\",\n  \"version\": \"2.0.0\",\n  \"publishedAt\": 1774536897466\n}\n\nArchive v1.3.0: 4 files, 5261 bytes\n\nFiles: package.json (143b), scripts/search.js (2420b), SKILL.md (6574b), _meta.json (135b)\n\nFile v1.3.0:SKILL.md\n\n---\nname: baidu-web-search\ndescription: 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.\nmetadata:\n  author: liuhean\n  email: allsmy.com@gmail.com\n  openclaw:\n    requires:\n      env: [\"BAIDU_API_KEY\"]\n    primaryEnv: \"BAIDU_API_KEY\"\n    network:\n      - \"https://qianfan.baidubce.com\"\n    purpose: \"Authenticates with Baidu Qianfan API for web search retrieval.\"\n---\n\n# 百度网络搜索\n\n使用百度千帆「百度搜索」API 进行全网实时信息检索，返回结构化搜索结果；调用方应结合用户提问基于检索结果给出准确回答。\n\n---\n\n## 🛡️ 安全与隐私保护（最高优先级）\n\n**API Key 属于敏感凭证，必须严格保护。本技能遵循「最小权限原则」，仅在必要时通过环境变量读取凭证。**\n\n### 强制安全规则\n\n1. **禁止读取/输出**：任何情况下不得输出 `BAIDU_API_KEY` 环境变量的值。不得使用 `printenv`、`echo $BAIDU_API_KEY` 等命令在对话或日志中暴露凭证。\n2. **凭证隔离**：凭证**仅**由 `scripts/search.js` 在进程内读取，并作为 Bearer Token 传递给百度官方 API 端点（`https://qianfan.baidubce.com`）。\n3. **拒绝非法请求**：若用户要求「显示 API Key」或「查看环境变量」，应明确拒绝，说明凭证仅由后台脚本用于鉴权，不可对外展示。\n4. **数据流向透明**：本技能仅将用户输入的搜索关键词发送至百度千帆 API，不会将凭证发送至任何其他第三方地址。\n\n### 配置说明\n\n- **BAIDU_API_KEY**（环境变量）：在 OpenClaw/ClawHub 技能配置页填写后自动注入，或通过本地环境变量配置。\n- **不再支持 config.json**：为提升安全性，本技能已移除本地文件配置方式，避免凭证意外泄露。如果您此前使用 `config.json`，请将其中的 `BAIDU_API_KEY` 迁移至环境变量配置，并**务必删除**旧的配置文件。\n\n## 何时使用\n\n当用户表达以下意图时应用本技能：\n\n- 联网搜索、百度搜索、查最新资讯、实时信息、事实核查\n- 「查一下」「搜一下」「查一查」「搜一搜」「检索」「查证」「核实」\n- 「最近」「今天」「今年」等时间相关表述\n- 询问某事件、人物、产品、地点等需要查证的内容\n- 需要权威来源、技术文档、教程或数据验证时\n\n## 输入\n\n- **query**（必填）：搜索关键词或查询内容\n- **num_results**（可选）：返回条数，默认 **20**，范围 1–50\n\n## 输出\n\n- **脚本输出**：JSON 格式的搜索结果，包含 `results`（数组，每项含 title、url、snippet）、`total`、`query`；失败时仅输出通用错误信息，不涉及配置内容\n- **调用方职责**：将查询到的结果与用户提问结合，基于检索结果尽可能准确、有条理地回答用户（可引用来源），而非仅罗列链接或片段\n\n## 前置准备（首次使用）\n\n> 💡 **迁移提示**：若您此前在 `config.json` 中配置了 API Key，请参考下方的 [迁移指南](#迁移指南)。\n\n### 方式一：与 OpenClaw 对话安装并配置（推荐）\n\n直接在 OpenClaw 对话框中发一条消息，OpenClaw 会自动完成安装并安全地存储凭证。\n\n**对话示范：**\n```\n我：帮我在 ClawHub 安装 baidu-web-search 技能，我的百度千帆 API Key 是 bce-v3/xxxx/xxxx\n\nOpenClaw：好的，正在通过 ClawHub 安装 baidu-web-search 技能并写入配置……（完成）\n          已将 BAIDU_API_KEY 写入本地加密配置，直接问我「今日头条」即可搜索。\n```\n\n### 方式二：手动配置环境变量\n\n在您的 Shell 配置文件（如 `.bashrc` 或 `.zshrc`）或系统环境变量中设置：\n\n```bash\nexport BAIDU_API_KEY=\"你的百度千帆 API Key\"\n```\n\n或在 OpenClaw 的 `openclaw.json` 中配置该技能的 `env` 字段。\n\n> API Key 申请见 [百度千帆文档](https://cloud.baidu.com/doc/qianfan-api/s/Wmbq4z7e5)\n\n## 执行流程\n\n1. 解析用户提问，提取搜索意图与关键词\n2. **仅执行** `node scripts/search.js \"<query>\" [num_results]`，默认 num_results 为 20；由脚本内部读取 `BAIDU_API_KEY` 环境变量（调用方不得直接读取或输出凭证）\n3. 脚本内部调用百度千帆 API，返回结构化结果\n4. 根据脚本输出的结果，结合用户提问，给出准确、基于来源的回答\n\n## 执行命令\n\n```bash\ncd skills/baidu-web-search && node scripts/search.js \"<查询内容>\" [条数]\n```\n\n示例：\n\n```bash\n# 默认返回 20 条\nnode scripts/search.js \"今日科技新闻\"\n\n# 指定 10 条\nnode scripts/search.js \"TypeScript 最新版本\" 10\n```\n\n## 配置说明\n\n脚本从 `BAIDU_API_KEY` 环境变量读取凭证，AI 不参与任何配置读写：\n\n| 来源 | 适用场景 |\n|------|----------|\n| 环境变量 `BAIDU_API_KEY` | OpenClaw/ClawHub 平台注入；本地 Shell / `.zshrc` / `.bashrc` |\n\n### 迁移指南\n\n若您此前在 `config.json` 中配置了 API Key，请按以下步骤操作以确保安全：\n\n1. **迁移凭证**：将原 `config.json` 中的 `BAIDU_API_KEY` 值填入上述环境变量中（或在 OpenClaw 配置界面填入）。\n2. **删除旧文件**：手动删除 `skills/baidu-web-search/config.json` 文件，避免敏感凭证留在明文文件中。\n3. **验证配置**：运行一次搜索命令（如 `node scripts/search.js \"test\"`）确认环境变量已生效。\n\n## 常见问题（故障排除）\n\n- **搜索报错「未配置 BAIDU_API_KEY」**：请检查环境变量是否正确导出，或是否在 OpenClaw 配置界面正确填写。\n- **搜索服务不可用**：\n  - 请确认您的 `BAIDU_API_KEY` 是否有效且未过期。\n  - 请登录 [百度千帆控制台](https://console.bce.baidu.com/qianfan/aisearch/v2) 检查是否有足够的免费额度或账户余额。\n  - 检查您的网络环境是否能正常访问 `https://qianfan.baidubce.com`。\n- **搜索结果质量不佳**：尝试优化您的 `query` 关键词，使其更加具体明确。\n\n## 参与贡献\n\n欢迎提交 Issue 或 Pull Request 改进本技能！\n\n**仓库地址**：[https://github.com/liuhean2021/Anan-Agent-Skills](https://github.com/liuhean2021/Anan-Agent-Skills)\n\n- 本技能位于 `skills/baidu-web-search/` 目录\n- 本技能采用 [MIT-0](../../LICENSE) 许可协议，可自由使用、修改和重新分发，无需署名\n\nFile v1.3.0:_meta.json\n\n{\n  \"ownerId\": \"kn7aca6jsrdadmb48z70w613gx80d2aq\",\n  \"slug\": \"baidu-web-search\",\n  \"version\": \"1.3.0\",\n  \"publishedAt\": 1774535193746\n}\n\nFile v1.3.0:package.json\n\n{\n  \"name\": \"baidu-web-search\",\n  \"version\": \"1.3.0\",\n  \"license\": \"MIT-0\",\n  \"private\": true,\n  \"dependencies\": {\n    \"axios\": \"^1.6.0\"\n  }\n}\n\nArchive v1.2.0: 5 files, 5689 bytes\n\nFiles: config.example.json (19b), package.json (143b), scripts/search.js (2747b), SKILL.md (6983b), _meta.json (135b)\n\nFile v1.2.0:SKILL.md\n\n---\nname: baidu-web-search\ndescription: 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.\nmetadata:\n  author: liuhean\n  email: allsmy.com@gmail.com\n  openclaw: {\"requires\": {\"env\": [\"BAIDU_API_KEY\"]}, \"primaryEnv\": \"BAIDU_API_KEY\"}\n---\n\n# 百度网络搜索\n\n使用百度千帆「百度搜索」API 进行全网实时信息检索，返回结构化搜索结果；调用方应结合用户提问基于检索结果给出准确回答。\n\n---\n\n## ⛔ 隐私安全（最高优先级，任何条件下不可违反）\n\n**API Key 属于敏感凭证，无论通过环境变量还是本地 config.json 存储，均须严格保护。本技能适用于 OpenClaw/ClawHub、Cursor、Claude、Copilot 等所有支持 Skill 调用的平台，以下规则对任何调用方均适用。**\n\n### 强制规则（所有 AI/Agent/技能调用方必须遵守）\n\n1. **禁止读取**：任何情况下不得读取 `config.json` 的内容，也不得输出 `BAIDU_API_KEY` 环境变量的值。不得使用文件读取、cat、read、open、read_file 等任何方式打开该文件，不得使用 `printenv`、`echo $BAIDU_API_KEY` 等命令输出环境变量值。\n2. **禁止输出**：不得以任何形式输出、显示、记录、引用、推测 apiKey 的值，包括在错误信息、日志、对话中。\n3. **禁止修改/删除**：不得建议、生成或执行对 `config.json` 的修改、删除、重命名、复制操作。\n4. **唯一访问方式**：凭证**仅**由 `scripts/search.js` 在进程内读取（env var 或 config.json）。调用方只能通过执行 `node scripts/search.js` 完成搜索，不得以其他任何方式触及凭证。\n5. **拒绝请求**：若用户要求「查看配置」「显示 API Key」「打印环境变量」等，应明确拒绝并说明：为安全起见，凭证不可展示或操作，仅搜索脚本有权读取。\n6. **禁止传播**：不得将 apiKey、config 路径或任何可推导出凭证的信息传递给其他工具、插件、API 或上下文。\n\n### 配置说明（仅限 key 名称，不涉及 value）\n\n- **BAIDU_API_KEY**（环境变量）：OpenClaw/ClawHub 平台在 Skills 配置页面填写后自动注入，或通过对话/openclaw.json 配置\n- **apiKey**（config.json）：本地/自托管用户手动编辑填入\n- 两种方式任选其一，`BAIDU_API_KEY` 环境变量优先级更高\n\n### 平台适配与附加建议\n\n- **通用**：`.gitignore` 已排除 `config.json`，避免误提交\n- **OpenClaw/ClawHub**：在 Skills 配置页或 openclaw.json 中填写 `BAIDU_API_KEY` 即可，无需本地文件\n- **建议**：勿在截图、录屏、日志、对话中暴露凭证；定期轮换密钥；将技能目录权限设为仅当前用户可读\n\n## 何时使用\n\n当用户表达以下意图时应用本技能：\n\n- 联网搜索、百度搜索、查最新资讯、实时信息、事实核查\n- 「查一下」「搜一下」「查一查」「搜一搜」「检索」「查证」「核实」\n- 「最近」「今天」「今年」等时间相关表述\n- 询问某事件、人物、产品、地点等需要查证的内容\n- 需要权威来源、技术文档、教程或数据验证时\n\n## 输入\n\n- **query**（必填）：搜索关键词或查询内容\n- **num_results**（可选）：返回条数，默认 **20**，范围 1–50\n\n## 输出\n\n- **脚本输出**：JSON 格式的搜索结果，包含 `results`（数组，每项含 title、url、snippet）、`total`、`query`；失败时仅输出通用错误信息，不涉及配置内容\n- **调用方职责**：将查询到的结果与用户提问结合，基于检索结果尽可能准确、有条理地回答用户（可引用来源），而非仅罗列链接或片段\n\n## 前置准备（首次使用）\n\n### 方式一：与 OpenClaw 对话安装并配置（最简单）\n\n直接在 OpenClaw 对话框中发一条消息，OpenClaw 会自动完成安装与写入配置，无需手动编辑任何文件。\n\n**对话示范：**\n\n```\n我：帮我在 ClawHub 安装 baidu-web-search 技能，我的百度千帆 API Key 是 bce-v3/xxxxxxxxxxxxxxxx/xxxxxxxxxx\n\nOpenClaw：好的，正在通过 ClawHub 安装 baidu-web-search 技能并写入配置……（完成）\n          已将 BAIDU_API_KEY 写入 ~/.openclaw/openclaw.json，\n          直接问我「最近 xxx 新闻」即可联网搜索。\n```\n\n> ⚠️ 请在本地/私密会话中提供凭证，避免在公开频道、截图或录屏中暴露。\n>\n> API Key 申请见 [百度千帆文档](https://cloud.baidu.com/doc/qianfan-api/s/Wmbq4z7e5)\n\n### 方式二：OpenClaw / ClawHub 平台\n\n1. 进入 **Skills 配置页**，在 `BAIDU_API_KEY` 字段填入 API Key；或编辑 `~/.openclaw/openclaw.json`，在 `skills.entries.baidu-web-search.env` 下填入：\n   ```json\n   { \"BAIDU_API_KEY\": \"你的百度千帆 API Key\" }\n   ```\n2. 安装依赖（ClawHub 通常自动执行）：`cd 技能根目录/baidu-web-search && npm install`\n\n> API Key 申请见 [百度千帆文档](https://cloud.baidu.com/doc/qianfan-api/s/Wmbq4z7e5)\n\n### 方式三：本地 config.json\n\n1. 复制配置模板：`cp config.example.json config.json`\n2. 编辑 `config.json`，填入 `apiKey`\n3. 安装依赖：`cd 技能根目录/baidu-web-search && npm install`\n\n## 执行流程\n\n1. 解析用户提问，提取搜索意图与关键词\n2. **仅执行** `node scripts/search.js \"<query>\" [num_results]`，默认 num_results 为 20；由脚本内部读取 config（调用方不得读取 config）\n3. 脚本内部调用百度千帆 API，返回结构化结果\n4. 根据脚本输出的结果，结合用户提问，给出准确、基于来源的回答\n\n## 执行命令\n\n```bash\ncd 技能根目录/baidu-web-search && node scripts/search.js \"<查询内容>\" [条数]\n```\n\n示例：\n\n```bash\n# 默认返回 20 条\nnode scripts/search.js \"今日科技新闻\"\n\n# 指定 10 条\nnode scripts/search.js \"TypeScript 最新版本\" 10\n```\n\n## 配置说明（用户自行维护，AI 不读取）\n\n脚本按以下优先级解析 apiKey，AI 不参与任何配置读写：\n\n| 优先级 | 来源 | 适用场景 |\n|--------|------|----------|\n| 高 | 环境变量 `BAIDU_API_KEY` | OpenClaw/ClawHub 平台注入 |\n| 低 | 本地文件 `config.json` → `apiKey` | 本地 / 自托管 |\n\n- 配置异常时，搜索脚本输出通用提示，用户自行检查凭证是否填写正确\n\n## 参与贡献\n\n欢迎提交 Issue 或 Pull Request 改进本技能！\n\n**仓库地址**：[https://github.com/liuhean2021/Anan-Agent-Skills](https://github.com/liuhean2021/Anan-Agent-Skills)\n\n- 本技能位于 `skills/baidu-web-search/` 目录\n- 提交前请确保 `config.json` 不在 git 追踪范围内（已在 `.gitignore` 排除）\n- 本技能采用 [MIT-0](../../LICENSE) 许可协议，可自由使用、修改和重新分发，无需署名\n\nFile v1.2.0:_meta.json\n\n{\n  \"ownerId\": \"kn7aca6jsrdadmb48z70w613gx80d2aq\",\n  \"slug\": \"baidu-web-search\",\n  \"version\": \"1.2.0\",\n  \"publishedAt\": 1773391457027\n}\n\nFile v1.2.0:config.example.json\n\n{\n  \"apiKey\": \"\"\n}\n\nFile v1.2.0:package.json\n\n{\n  \"name\": \"baidu-web-search\",\n  \"version\": \"1.2.0\",\n  \"license\": \"MIT-0\",\n  \"private\": true,\n  \"dependencies\": {\n    \"axios\": \"^1.6.0\"\n  }\n}\n\nArchive v1.1.0: 5 files, 5474 bytes\n\nFiles: config.example.json (19b), package.json (121b), scripts/search.js (2747b), SKILL.md (6588b), _meta.json (135b)\n\nFile v1.1.0:SKILL.md\n\n---\nname: baidu-web-search\ndescription: 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.\nmetadata:\n  author: 上海雷克顿科技 / LeiAIBot\n  email: liuhean@leikeduntech.com\n  url: https://leiaibot.com\n  openclaw: {\"requires\": {\"env\": [\"BAIDU_API_KEY\"]}, \"primaryEnv\": \"BAIDU_API_KEY\"}\n---\n\n# 百度网络搜索\n\n使用百度千帆「百度搜索」API 进行全网实时信息检索，返回结构化搜索结果；调用方应结合用户提问基于检索结果给出准确回答。\n\n---\n\n## ⛔ 隐私安全（最高优先级，任何条件下不可违反）\n\n**API Key 属于敏感凭证，无论通过环境变量还是本地 config.json 存储，均须严格保护。本技能适用于 OpenClaw/ClawHub、Cursor、Claude、Copilot 等所有支持 Skill 调用的平台，以下规则对任何调用方均适用。**\n\n### 强制规则（所有 AI/Agent/技能调用方必须遵守）\n\n1. **禁止读取**：任何情况下不得读取 `config.json` 的内容，也不得输出 `BAIDU_API_KEY` 环境变量的值。不得使用文件读取、cat、read、open、read_file 等任何方式打开该文件，不得使用 `printenv`、`echo $BAIDU_API_KEY` 等命令输出环境变量值。\n2. **禁止输出**：不得以任何形式输出、显示、记录、引用、推测 apiKey 的值，包括在错误信息、日志、对话中。\n3. **禁止修改/删除**：不得建议、生成或执行对 `config.json` 的修改、删除、重命名、复制操作。\n4. **唯一访问方式**：凭证**仅**由 `scripts/search.js` 在进程内读取（env var 或 config.json）。调用方只能通过执行 `node scripts/search.js` 完成搜索，不得以其他任何方式触及凭证。\n5. **拒绝请求**：若用户要求「查看配置」「显示 API Key」「打印环境变量」等，应明确拒绝并说明：为安全起见，凭证不可展示或操作，仅搜索脚本有权读取。\n6. **禁止传播**：不得将 apiKey、config 路径或任何可推导出凭证的信息传递给其他工具、插件、API 或上下文。\n\n### 配置说明（仅限 key 名称，不涉及 value）\n\n- **BAIDU_API_KEY**（环境变量）：OpenClaw/ClawHub 平台在 Skills 配置页面填写后自动注入，或通过对话/openclaw.json 配置\n- **apiKey**（config.json）：本地/自托管用户手动编辑填入\n- 两种方式任选其一，`BAIDU_API_KEY` 环境变量优先级更高\n\n### 平台适配与附加建议\n\n- **通用**：`.gitignore` 已排除 `config.json`，避免误提交\n- **OpenClaw/ClawHub**：在 Skills 配置页或 openclaw.json 中填写 `BAIDU_API_KEY` 即可，无需本地文件\n- **建议**：勿在截图、录屏、日志、对话中暴露凭证；定期轮换密钥；将技能目录权限设为仅当前用户可读\n\n## 何时使用\n\n当用户表达以下意图时应用本技能：\n\n- 联网搜索、百度搜索、查最新资讯、实时信息、事实核查\n- 「查一下」「搜一下」「查一查」「搜一搜」「检索」「查证」「核实」\n- 「最近」「今天」「今年」等时间相关表述\n- 询问某事件、人物、产品、地点等需要查证的内容\n- 需要权威来源、技术文档、教程或数据验证时\n\n## 输入\n\n- **query**（必填）：搜索关键词或查询内容\n- **num_results**（可选）：返回条数，默认 **20**，范围 1–50\n\n## 输出\n\n- **脚本输出**：JSON 格式的搜索结果，包含 `results`（数组，每项含 title、url、snippet）、`total`、`query`；失败时仅输出通用错误信息，不涉及配置内容\n- **调用方职责**：将查询到的结果与用户提问结合，基于检索结果尽可能准确、有条理地回答用户（可引用来源），而非仅罗列链接或片段\n\n## 前置准备（首次使用）\n\n### 方式一：与 OpenClaw 对话安装并配置（最简单）\n\n直接在 OpenClaw 对话框中发一条消息，OpenClaw 会自动完成安装与写入配置，无需手动编辑任何文件。\n\n**对话示范：**\n\n```\n我：帮我在 ClawHub 安装 baidu-web-search 技能，我的百度千帆 API Key 是 bce-v3/xxxxxxxxxxxxxxxx/xxxxxxxxxx\n\nOpenClaw：好的，正在通过 ClawHub 安装 baidu-web-search 技能并写入配置……（完成）\n          已将 BAIDU_API_KEY 写入 ~/.openclaw/openclaw.json，\n          直接问我「最近 xxx 新闻」即可联网搜索。\n```\n\n> ⚠️ 请在本地/私密会话中提供凭证，避免在公开频道、截图或录屏中暴露。\n>\n> API Key 申请见 [百度千帆文档](https://cloud.baidu.com/doc/qianfan-api/s/Wmbq4z7e5)\n\n### 方式二：OpenClaw / ClawHub 平台\n\n1. 进入 **Skills 配置页**，在 `BAIDU_API_KEY` 字段填入 API Key；或编辑 `~/.openclaw/openclaw.json`，在 `skills.entries.baidu-web-search.env` 下填入：\n   ```json\n   { \"BAIDU_API_KEY\": \"你的百度千帆 API Key\" }\n   ```\n2. 安装依赖（ClawHub 通常自动执行）：`cd 技能根目录/baidu-web-search && npm install`\n\n> API Key 申请见 [百度千帆文档](https://cloud.baidu.com/doc/qianfan-api/s/Wmbq4z7e5)\n\n### 方式三：本地 config.json\n\n1. 复制配置模板：`cp config.example.json config.json`\n2. 编辑 `config.json`，填入 `apiKey`\n3. 安装依赖：`cd 技能根目录/baidu-web-search && npm install`\n\n## 执行流程\n\n1. 解析用户提问，提取搜索意图与关键词\n2. **仅执行** `node scripts/search.js \"<query>\" [num_results]`，默认 num_results 为 20；由脚本内部读取 config（调用方不得读取 config）\n3. 脚本内部调用百度千帆 API，返回结构化结果\n4. 根据脚本输出的结果，结合用户提问，给出准确、基于来源的回答\n\n## 执行命令\n\n```bash\ncd 技能根目录/baidu-web-search && node scripts/search.js \"<查询内容>\" [条数]\n```\n\n示例：\n\n```bash\n# 默认返回 20 条\nnode scripts/search.js \"今日科技新闻\"\n\n# 指定 10 条\nnode scripts/search.js \"TypeScript 最新版本\" 10\n```\n\n## 配置说明（用户自行维护，AI 不读取）\n\n脚本按以下优先级解析 apiKey，AI 不参与任何配置读写：\n\n| 优先级 | 来源 | 适用场景 |\n|--------|------|----------|\n| 高 | 环境变量 `BAIDU_API_KEY` | OpenClaw/ClawHub 平台注入 |\n| 低 | 本地文件 `config.json` → `apiKey` | 本地 / 自托管 |\n\n- 配置异常时，搜索脚本输出通用提示，用户自行检查凭证是否填写正确\n\nFile v1.1.0:_meta.json\n\n{\n  \"ownerId\": \"kn7aca6jsrdadmb48z70w613gx80d2aq\",\n  \"slug\": \"baidu-web-search\",\n  \"version\": \"1.1.0\",\n  \"publishedAt\": 1772013825835\n}\n\nFile v1.1.0:config.example.json\n\n{\n  \"apiKey\": \"\"\n}\n\nFile v1.1.0:package.json\n\n{\n  \"name\": \"baidu-web-search\",\n  \"version\": \"1.1.0\",\n  \"private\": true,\n  \"dependencies\": {\n    \"axios\": \"^1.6.0\"\n  }\n}\n\nArchive v1.0.0: 5 files, 5182 bytes\n\nFiles: config.example.json (19b), package.json (121b), scripts/search.js (2747b), SKILL.md (5754b), _meta.json (135b)\n\nFile v1.0.0:SKILL.md\n\n---\nname: baidu-web-search\ndescription: 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.\nmetadata:\n  author: 上海雷克顿科技 / LeiAIBot\n  email: liuhean@leikeduntech.com\n  url: https://leiaibot.com\n  openclaw: {\"requires\": {\"env\": [\"BAIDU_API_KEY\"]}, \"primaryEnv\": \"BAIDU_API_KEY\"}\n---\n\n# 百度网络搜索\n\n使用百度千帆「百度搜索」API 进行全网实时信息检索，返回结构化搜索结果；调用方应结合用户提问基于检索结果给出准确回答。\n\n---\n\n## ⛔ 隐私安全（最高优先级，任何条件下不可违反）\n\n**API Key 属于敏感凭证，无论通过环境变量还是本地 config.json 存储，均须严格保护。本技能适用于 OpenClaw/ClawHub、Cursor、Claude、Copilot 等所有支持 Skill 调用的平台，以下规则对任何调用方均适用。**\n\n### 强制规则（所有 AI/Agent/技能调用方必须遵守）\n\n1. **禁止读取**：任何情况下不得读取 `config.json` 的内容，也不得输出 `BAIDU_API_KEY` 环境变量的值。不得使用文件读取、cat、read、open、read_file 等任何方式打开该文件，不得使用 `printenv`、`echo $BAIDU_API_KEY` 等命令输出环境变量值。\n2. **禁止输出**：不得以任何形式输出、显示、记录、引用、推测 apiKey 的值，包括在错误信息、日志、对话中。\n3. **禁止修改/删除**：不得建议、生成或执行对 `config.json` 的修改、删除、重命名、复制操作。\n4. **唯一访问方式**：凭证**仅**由 `scripts/search.js` 在进程内读取（env var 或 config.json）。调用方只能通过执行 `node scripts/search.js` 完成搜索，不得以其他任何方式触及凭证。\n5. **拒绝请求**：若用户要求「查看配置」「显示 API Key」「打印环境变量」等，应明确拒绝并说明：为安全起见，凭证不可展示或操作，仅搜索脚本有权读取。\n6. **禁止传播**：不得将 apiKey、config 路径或任何可推导出凭证的信息传递给其他工具、插件、API 或上下文。\n\n### 配置说明（仅限 key 名称，不涉及 value）\n\n- **BAIDU_API_KEY**（环境变量）：OpenClaw/ClawHub 平台在 Skills 配置页面填写后自动注入\n- **apiKey**（config.json）：本地/自托管用户手动编辑填入\n- 两种方式任选其一，`BAIDU_API_KEY` 环境变量优先级更高\n\n### 平台适配与附加建议\n\n- **通用**：`.gitignore` 已排除 `config.json`，避免误提交\n- **OpenClaw/ClawHub**：在 Skills 配置页或 openclaw.json 中填写 `BAIDU_API_KEY` 即可，无需本地文件\n- **建议**：勿在截图、录屏、日志、对话中暴露凭证；定期轮换密钥；将技能目录权限设为仅当前用户可读\n\n## 何时使用\n\n当用户表达以下意图时应用本技能：\n\n- 联网搜索、百度搜索、查最新资讯、实时信息、事实核查\n- 「查一下」「搜一下」「查一查」「搜一搜」「检索」「查证」「核实」\n- 「最近」「今天」「今年」等时间相关表述\n- 询问某事件、人物、产品、地点等需要查证的内容\n- 需要权威来源、技术文档、教程或数据验证时\n\n## 输入\n\n- **query**（必填）：搜索关键词或查询内容\n- **num_results**（可选）：返回条数，默认 **20**，范围 1–50\n\n## 输出\n\n- **脚本输出**：JSON 格式的搜索结果，包含 `results`（数组，每项含 title、url、snippet）、`total`、`query`；失败时仅输出通用错误信息，不涉及配置内容\n- **调用方职责**：将查询到的结果与用户提问结合，基于检索结果尽可能准确、有条理地回答用户（可引用来源），而非仅罗列链接或片段\n\n## 前置准备（首次使用）\n\n### 方式一：OpenClaw / ClawHub 平台（推荐）\n\n1. 在 ClawHub 安装本技能\n2. 进入 **Skills 配置页** 或编辑 `~/.openclaw/openclaw.json`，在 `skills.entries.baidu-web-search.env` 下填入：\n   ```json\n   { \"BAIDU_API_KEY\": \"你的百度千帆 API Key\" }\n   ```\n3. 安装依赖（ClawHub 通常自动执行）：`cd 技能根目录/baidu-web-search && npm install`\n\n> API Key 申请见 [百度千帆文档](https://cloud.baidu.com/doc/qianfan-api/s/Wmbq4z7e5)\n\n### 方式二：本地 / 自托管\n\n1. 复制配置模板：`cp config.example.json config.json`\n2. 编辑 `config.json`，填入 `apiKey`\n3. 安装依赖：`cd 技能根目录/baidu-web-search && npm install`\n\n## 执行流程\n\n1. 解析用户提问，提取搜索意图与关键词\n2. **仅执行** `node scripts/search.js \"<query>\" [num_results]`，默认 num_results 为 20；由脚本内部读取 config（调用方不得读取 config）\n3. 脚本内部调用百度千帆 API，返回结构化结果\n4. 根据脚本输出的结果，结合用户提问，给出准确、基于来源的回答\n\n## 执行命令\n\n```bash\ncd 技能根目录/baidu-web-search && node scripts/search.js \"<查询内容>\" [条数]\n```\n\n示例：\n\n```bash\n# 默认返回 20 条\nnode scripts/search.js \"今日科技新闻\"\n\n# 指定 10 条\nnode scripts/search.js \"TypeScript 最新版本\" 10\n```\n\n## 配置说明（用户自行维护，AI 不读取）\n\n脚本按以下优先级解析 apiKey，AI 不参与任何配置读写：\n\n| 优先级 | 来源 | 适用场景 |\n|--------|------|----------|\n| 高 | 环境变量 `BAIDU_API_KEY` | OpenClaw/ClawHub 平台注入 |\n| 低 | 本地文件 `config.json` → `apiKey` | 本地 / 自托管 |\n\n- 配置异常时，搜索脚本输出通用提示，用户自行检查凭证是否填写正确\n\nFile v1.0.0:_meta.json\n\n{\n  \"ownerId\": \"kn7aca6jsrdadmb48z70w613gx80d2aq\",\n  \"slug\": \"baidu-web-search\",\n  \"version\": \"1.0.0\",\n  \"publishedAt\": 1771944604859\n}\n\nFile v1.0.0:config.example.json\n\n{\n  \"apiKey\": \"\"\n}\n\nFile v1.0.0:package.json\n\n{\n  \"name\": \"baidu-web-search\",\n  \"version\": \"1.0.0\",\n  \"private\": true,\n  \"dependencies\": {\n    \"axios\": \"^1.6.0\"\n  }\n}","readmeExcerpt":"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","codeSnippets":[],"executableExamples":[{"language":"text","snippet":"我：帮我在 ClawHub 安装 baidu-web-search 技能，我的百度千帆 API Key 是 bce-v3/xxxxxxxxxxxxxxxx/xxxxxxxxxx\n\nOpenClaw：好的，正在通过 ClawHub 安装 baidu-web-search 技能并写入配置……（完成）\n          已将 BAIDU_API_KEY 写入 ~/.openclaw/openclaw.json，\n          直接问我「最近 xxx 新闻」即可联网搜索。"},{"language":"json","snippet":"{ \"BAIDU_API_KEY\": \"你的百度千帆 API Key\" }"},{"language":"bash","snippet":"cd 技能根目录/baidu-web-search && node scripts/search.js \"<查询内容>\" [条数]"},{"language":"bash","snippet":"# 默认返回 20 条\nnode scripts/search.js \"今日科技新闻\"\n\n# 指定 10 条\nnode scripts/search.js \"TypeScript 最新版本\" 10"},{"language":"text","snippet":"我：帮我在 ClawHub 安装 baidu-web-search 技能，我的百度千帆 API Key 是 bce-v3/xxxx/xxxx\n\nOpenClaw：好的，正在通过 ClawHub 安装 baidu-web-search 技能并写入配置……（完成）\n          已将 BAIDU_API_KEY 写入本地加密配置，直接问我「今日头条」即可搜索。"},{"language":"bash","snippet":"export BAIDU_API_KEY=\"你的百度千帆 API Key\""}],"parameters":null,"dependencies":[],"permissions":[],"extractedFiles":[{"path":"SKILL.md","content":"---\nname: baidu-web-search\ndescription: 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.\nmetadata:\n  author: liuhean\n  email: allsmy.com@gmail.com\n  openclaw: {\"requires\": {\"env\": [\"BAIDU_API_KEY\"]}, \"primaryEnv\": \"BAIDU_API_KEY\"}\n---\n\n# 百度网络搜索\n\n使用百度千帆「百度搜索」API 进行全网实时信息检索，返回结构化搜索结果；调用方应结合用户提问基于检索结果给出准确回答。\n\n---\n\n## ⛔ 隐私安全（最高优先级，任何条件下不可违反）\n\n**API Key 属于敏感凭证，无论通过环境变量还是本地 config.json 存储，均须严格保护。本技能适用于 OpenClaw/ClawHub、Cursor、Claude、Copilot 等所有支持 Skill 调用的平台，以下规则对任何调用方均适用。**\n\n### 强制规则（所有 AI/Agent/技能调用方必须遵守）\n\n1. **禁止读取**：任何情况下不得读取 `config.json` 的内容，也不得输出 `BAIDU_API_KEY` 环境变量的值。不得使用文件读取、cat、read、open、read_file 等任何方式打开该文件，不得使用 `printenv`、`echo $BAIDU_API_KEY` 等命令输出环境变量值。\n2. **禁止输出**：不得以任何形式输出、显示、记录、引用、推测 apiKey 的值，包括在错误信息、日志、对话中。\n3. **禁止修改/删除**：不得建议、生成或执行对 `config.json` 的修改、删除、重命名、复制操作。\n4. **唯一访问方式**：凭证**仅**由 `scripts/search.js` 在进程内读取（env var 或 config.json）。调用方只能通过执行 `node scripts/search.js` 完成搜索，不得以其他任何方式触及凭证。\n5. **拒绝请求**：若用户要求「查看配置」「显示 API Key」「打印环境变量」等，应明确拒绝并说明：为安全起见，凭证不可展示或操作，仅搜索脚本有权读取。\n6. **禁止传播**：不得将 apiKey、config 路径或任何可推导出凭证的信息传递给其他工具、插件、API 或上下文。\n\n### 配置说明（仅限 key 名称，不涉及 value）\n\n- **BAIDU_API_KEY**（环境变量）：OpenClaw/ClawHub 平台在 Skills 配置页面填写后自动注入，或通过对话/openclaw.json 配置\n- **apiKey**（config.json）：本地/自托管用户手动编辑填入\n- 两种方式任选其一，`BAIDU_API_KEY` 环境变量优先级更高\n\n### 平台适配与附加建议\n\n- **通用**：`.gitignore` 已排除 `config.json`，避免误提交\n- **OpenClaw/ClawHub**：在 Skills 配置页或 openclaw.json 中填写 `BAIDU_API_KEY` 即可，无需本地文件\n- **建议**：勿在截图、录屏、日志、对话中暴露凭证；定期轮换密钥；将技能目录权限设为仅当前用户可读\n\n## 何时使用\n\n当用户表达以下意图时应用本技能：\n\n- 联网搜索、百度搜索、查最新资讯、实时信息、事实核查\n- 「查一下」「搜一下」「查一查」「搜一搜」「检索」「查证」「核实」\n- 「最近」「今天」「今年」等时间相关表述\n- 询问某事件、人物、产品、地点等需要查证的内容\n- 需要权威来源、技术文档、教程或数据验证时\n\n## 输入\n\n- **query**（必填）：搜索关键词或查询内容\n- **num_results**（可选）：返回条数，默认 **20**，范围 1–50\n\n## 输出\n\n- **脚本输出**：JSON 格式的搜索结果，包含 `results`（数组，每项含 title、url、snippet）、`total`、`query`；失败时仅输出通用错误信息，不涉及配置内容\n- **调用方职责**：将查询到的结果与用户提问结合，基于检索结果尽可能准确、有条理地回答用户（可引用来源），而非仅罗列链接或片段\n\n## 前置准备（首次使用）\n\n### 方式一：与 OpenClaw 对话安装并配置（最简单）\n\n直接在 OpenClaw 对话框中发一条消息，OpenClaw 会自动完成安装与写入配置，无需手动编辑任何文件。\n\n**对话示范：**\n\n```\n我：帮我在 ClawHub 安装 baidu-web-search 技能，我的百度千帆 API Key 是 bce-v3/xxxxxxxxxxxxxxxx/xxxxxxxxxx\n\nOpenClaw：好的，正在通过 ClawHub 安装 baidu-web-search 技能并写入配置……（完成）\n          已将 BAIDU_API_KEY 写入 ~/.openclaw/openclaw.json，\n          直接问我「最近 xxx 新闻」即可联网搜索。\n```\n\n> ⚠️ 请在本地/私密会话中提供凭证，避免在公开频道、截图或录屏中暴露。\n>\n> API Key 申请见 [百度千帆文档](https://cloud.baidu.com/doc/qianfan-api/s/Wmbq4z7e5)\n\n### 方式二：OpenClaw / ClawHub 平台\n\n1. 进入 **Skills 配置页**，在 `BAIDU_API_KEY` 字段填入 API Key；或编辑 `~/.openclaw/openclaw.json`，在 `skills.entries.baidu-web-search.env` 下填入：\n   ```json\n   { \"BAIDU_API_KEY\": \"你的百度千帆 API Key\" }\n   ```\n2. 安装依赖（ClawHub 通常自动执行）：`cd 技能根目录/baidu-web-search && npm install`\n\n> API Key 申请见 [百度千帆文档](https://cloud.baidu.com/doc/qianfan-api/s/Wmbq4z7e5)\n\n### 方式三：本地 config.json\n\n1. 复制配置模板：`cp config.example.json config.json`\n2. 编辑 `c"},{"path":"_meta.json","content":"{\n  \"ownerId\": \"kn7aca6jsrdadmb48z70w613gx80d2aq\",\n  \"slug\": \"baidu-web-search\",\n  \"version\": \"2.1.0\",\n  \"publishedAt\": 1774539780300\n}"},{"path":"skill-card.md","content":"## Description:\n\nUse Baidu Qianfan web search API for real-time web retrieval when the user needs current information, latest news, fact verification, or source-backed answers.\n\nThis skill is ready for commercial/non-commercial use.\n\n## Publisher:\n\n[liuhean2021](https://clawhub.ai/user/liuhean2021)\n\n### License/Terms of Use:\n\nMIT-0\n\n## Use Case:\n\nExternal 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.\n\n### Deployment Geography for Use:\n\nGlobal\n\n## Known Risks and Mitigations:\n\nRisk: The skill handles a Baidu API key and can also use a local config.json file.\n\nMitigation: Prefer platform-injected BAIDU_API_KEY, avoid exposing credential values in logs or messages, and verify local credential files are not shared or committed.\n\nRisk: Search queries are sent to Baidu and may include sensitive user-provided information.\n\nMitigation: Do not submit private, regulated, or confidential information as search queries unless the deployment has approved that data flow.\n\nRisk: The release depends on a Node.js package and security evidence recommends review before installation.\n\nMitigation: Review dependency lock or pinning practices and scan the installed package before deploying the skill.\n\n## Reference(s):\n\n- [Baidu Qianfan API documentation](https://cloud.baidu.com/doc/qianfan-api/s/Wmbq4z7e5)\n- [ClawHub skill page](https://clawhub.ai/liuhean2021/skills/baidu-web-search)\n- [ClawHub publisher profile](https://clawhub.ai/user/liuhean2021)\n\n## Skill Output:\n\n**Output Type(s):** [text, markdown, shell commands, configuration, guidance]\n\n**Output Format:** [JSON search results from the script, typically synthesized by the agent into Markdown or plain-text answers with source references.]\n\n**Output Parameters:** [1D]\n\n**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.]\n\n## Skill Version(s):\n\n2.1.0 (source: server release evidence)\n\n## Ethical Considerations:\n\nUsers 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."},{"path":"config.example.json","content":"{\n  \"apiKey\": \"\"\n}"},{"path":"package.json","content":"{\n  \"name\": \"baidu-web-search\",\n  \"license\": \"MIT-0\",\n  \"private\": true,\n  \"dependencies\": {\n    \"axios\": \"^1.6.0\"\n  }\n}"}],"languages":[],"docsSourceLabel":"CLAWHUB","editorialOverview":"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","editorialQuality":{"score":100,"threshold":65,"status":"ready","wordCount":1244,"uniquenessScore":47,"reasons":[]}},"media":{"evidence":{"source":"no-media","verified":false,"confidence":"low","updatedAt":"2026-10-09T02:37:11.703Z","emptyReason":"No screenshots, media assets, or demo links are available."},"primaryImageUrl":null,"mediaAssetCount":0,"assets":[],"demoUrl":null},"ownerResources":{"evidence":{"source":"unclaimed","verified":false,"confidence":"low","updatedAt":"2026-10-09T02:37:11.703Z","emptyReason":"This page has not been claimed by the agent owner."},"hasCustomPage":false,"customPageUpdatedAt":null,"customLinks":[],"structuredLinks":{"docsUrl":null,"demoUrl":null,"supportUrl":null,"pricingUrl":null,"statusUrl":null},"customPage":null},"relatedAgents":{"evidence":{"source":"protocol-neighbors","verified":false,"confidence":"medium","updatedAt":"2026-10-10T03:26:40.256Z","emptyReason":null},"items":[{"id":"8ebccd8e-3863-4187-8355-c3f14e1f9edf","entityType":"agent","canonicalPath":"/agent/iofficeai-aionui","slug":"iofficeai-aionui","name":"AionUi","description":"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!","url":"https://github.com/iOfficeAI/AionUi","homepage":"https://www.aionui.com","source":"GITHUB_REPOS","protocols":["MCP","OPENCLAW"],"capabilities":[],"safetyScore":100,"overallRank":70,"updatedAt":"2026-10-09T19:11:12.944Z","createdAt":"2026-02-25T03:38:16.584Z","downloads":null},{"id":"b917f68a-ebff-438e-84f8-3f4b2494c0bc","entityType":"agent","canonicalPath":"/agent/activepieces-activepieces","slug":"activepieces-activepieces","name":"activepieces","description":"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","url":"https://github.com/activepieces/activepieces","homepage":"https://www.activepieces.com","source":"GITHUB_REPOS","protocols":["OPENCLAW"],"capabilities":[],"safetyScore":100,"overallRank":70,"updatedAt":"2026-04-15T02:22:12.426Z","createdAt":"2026-02-25T03:38:12.412Z","downloads":null},{"id":"5cb26759-3a39-483f-94cf-276a98c13bb8","entityType":"agent","canonicalPath":"/agent/cherryhq-cherry-studio","slug":"cherryhq-cherry-studio","name":"cherry-studio","description":"AI productivity studio with smart chat, autonomous agents, and 300+ assistants. Unified access to frontier LLMs","url":"https://github.com/CherryHQ/cherry-studio","homepage":"https://cherry-ai.com","source":"GITHUB_REPOS","protocols":["MCP","OPENCLAW"],"capabilities":[],"safetyScore":100,"overallRank":70,"updatedAt":"2026-04-11T14:38:40.986Z","createdAt":"2026-02-25T03:38:19.379Z","downloads":null},{"id":"6f6582d0-5d76-4f0f-b81d-86520247950b","entityType":"agent","canonicalPath":"/agent/copilotkit-copilotkit","slug":"copilotkit-copilotkit","name":"CopilotKit","description":"The Frontend for Agents & Generative UI. React + Angular","url":"https://github.com/CopilotKit/CopilotKit","homepage":"https://docs.copilotkit.ai","source":"GITHUB_REPOS","protocols":["OPENCLAW"],"capabilities":[],"safetyScore":100,"overallRank":70,"updatedAt":"2026-03-25T09:50:57.846Z","createdAt":"2026-02-25T03:39:14.617Z","downloads":null}],"links":{"hub":"/agent","source":"/agent/source/clawhub","protocols":[{"label":"OpenClaw","href":"/agent/protocol/openclew"}]}}}