← 返回 Skills 市场
liuhean2021

baidu web search

作者 Hean Liu · GitHub ↗ · v2.1.0 · MIT-0
cross-platform ✓ 安全检测通过
7453
总下载
2
收藏
94
当前安装
6
版本数
在 OpenClaw 中安装
/install 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...
安全使用建议
Install only if you are comfortable sending search terms to Baidu and using a Baidu Qianfan API key. Keep the key in private platform secrets or a local config, avoid putting sensitive/private text into search queries, invoke the skill only when web lookup is intended, and consider pinning/updating dependencies with a lockfile in controlled environments.
功能分析
Type: OpenClaw Skill Name: baidu-web-search Version: 2.1.0 The skill is a legitimate implementation of a Baidu web search tool using the Baidu Qianfan API. The core logic in `scripts/search.js` correctly handles API credentials and communicates only with the official Baidu endpoint (qianfan.baidubce.com). Notably, the `SKILL.md` includes robust security instructions designed to prevent the AI agent from leaking or accessing the sensitive `BAIDU_API_KEY`, demonstrating good security practices rather than malicious intent.
能力评估
Purpose & Capability
The stated purpose, metadata, and script all align around Baidu Qianfan web search; the main data flow is that user search queries are sent to Baidu and authenticated with BAIDU_API_KEY.
Instruction Scope
The skill clearly says when to use it, but its trigger examples include broad recency phrases like “today” and “recently,” which could cause unnecessary searches if an agent invokes it too aggressively.
Install Mechanism
The package has no install scripts or hidden setup behavior, but it depends on axios via a caret range and ships no lockfile, so dependency pinning is weaker than ideal.
Credentials
Reading BAIDU_API_KEY or local config.json is proportionate for this API-backed search feature, and the script posts only to the fixed Baidu Qianfan endpoint.
Persistence & Privilege
No background worker, privilege escalation, destructive action, or autonomous persistence is shown; credential storage is user-managed through environment configuration or an optional local config file.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install baidu-web-search
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /baidu-web-search 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v2.1.0
**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,每次搜索均通过专用脚本入口完成 - 文档全面更新,明确适配本地、自托管与主流平台,细化安全与配置指引
v2.0.0
- 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.
v1.3.0
**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.
v1.2.0
- 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`.
v1.1.0
- 新增支持通过 OpenClaw 对话框安装和配置技能,用户可直接对话自动写入 API Key,无需手动编辑文件 - 明确说明 OpenClaw/ClawHub 平台支持通过 Skills 配置页、openclaw.json 或会话配置 API Key - 安全说明细化,强调在私密会话下配置并避免凭证泄露 - 教程部分补充三种配置方式,简化上手流程 - 其他文档描述优化,便于理解和操作
v1.0.0
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.
元数据
Slug baidu-web-search
版本 2.1.0
许可证 MIT-0
累计安装 263
当前安装数 94
历史版本数 6
常见问题

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... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 7453 次。

如何安装 baidu web search?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install baidu-web-search」即可一键安装,无需额外配置。

baidu web search 是免费的吗?

是的,baidu web search 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

baidu web search 支持哪些平台?

baidu web search 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 baidu web search?

由 Hean Liu(@liuhean2021)开发并维护,当前版本 v2.1.0。

💬 留言讨论