← Back to Skills Marketplace
7453
Downloads
2
Stars
94
Active Installs
6
Versions
Install in OpenClaw
/install 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 l...
Usage Guidance
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.
Capability Analysis
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.
Capability Assessment
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.
How to Use
- Make sure OpenClaw is installed (local or Docker)
- Run the install command in chat:
/install baidu-web-search - After installation, invoke the skill by name or use
/baidu-web-search - Provide required inputs per the skill's parameter spec and get structured output
Version History
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.
Metadata
Frequently Asked Questions
What is 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... It is an AI Agent Skill for Claude Code / OpenClaw, with 7453 downloads so far.
How do I install baidu web search?
Run "/install baidu-web-search" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.
Is baidu web search free?
Yes, baidu web search is completely free, licensed under MIT-0. You can download, install and use it at no cost.
Which platforms does baidu web search support?
baidu web search is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).
Who created baidu web search?
It is built and maintained by Hean Liu (@liuhean2021); the current version is v2.1.0.
More Skills