← 返回 Skills 市场
8784
总下载
2
收藏
0
当前安装
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...
安全使用建议
Review before installing. Use platform-injected BAIDU_API_KEY rather than a local config.json when possible, avoid sending private or regulated information as search queries, and check the package's dependency lock/pinning and gitignore handling before sharing or committing the skill directory.
功能分析
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.
能力评估
Credentials
Network access to Baidu and an API key are proportionate to web search, but users should understand that search terms are sent to Baidu/Qianfan.
Install Mechanism
Installation uses npm install with axios declared as a caret dependency and no lockfile in the artifact, so dependency resolution is not reproducible.
Instruction Scope
The activation guidance is broad and includes ordinary time-related phrases, which could trigger third-party search more often than users expect. The skill text also asserts unconditional priority over callers, which is overbroad even though it appears intended to protect credentials.
Persistence & Privilege
The skill supports persistent plaintext credential configuration via config.json or OpenClaw config. It claims config.json is excluded by .gitignore, but no .gitignore is present in the artifact, increasing accidental credential exposure risk.
Purpose & Capability
The stated purpose and code align: the skill runs a local Node script that calls Baidu Qianfan web search and returns structured results. External query transmission and BAIDU_API_KEY use are expected for this purpose.
如何使用
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install baidu-web-search - 安装完成后,直接呼叫该 Skill 的名称或使用
/baidu-web-search触发 - 根据 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.
元数据
常见问题
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 插件,目前累计下载 8784 次。
如何安装 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。
推荐 Skills