← 返回 Skills 市场
zfeng1982

baidu-search-CLI

作者 AIphaZhu · GitHub ↗ · v1.0.5 · MIT-0
cross-platform ✓ 安全检测通过
304
总下载
0
收藏
0
当前安装
4
版本数
在 OpenClaw 中安装
/install baidu-search-cli
功能描述
Use Baidu AI Search Engine (BDSE) for web search. This version does not require Python installation
使用说明 (SKILL.md)

Baidu Search

通过百度AI搜索API搜索网络,但不需要安装python,直接改用CLI

Usage

1.curl命令,发送的post json请参考当前目录下的search_request.json文件
2.用户的系统如果是windows请用cmd执行curl命令,不要用PowerShell
3.如果环境变量BAIDU_API_KEY不存在,返回信息:没有获取到环境变量BAIDU_API_KEY,请搜索如何获取BAIDU_API_KEY
4.如果环境变量BAIDU_API_KEY存在但curl返回身份验证错误,返回信息:APIKEY验证失败,请检查你的环境APIKEY是否设置正确


curl -X POST -H "Authorization: Bearer apikey" -H "X-Appbuilder-From: openclaw" -H "Content-Type: application/json" -d "@search_request.json" "https://qianfan.baidubce.com/v2/ai_search/web_search"

Request Param

apikey desc:从环境变量BAIDU_API_KEY中获取apikey
下面几个参数是search_request.json的字段说明
content:string desc:Search query
top_k:int desc:返回的数据条数,默认为10条,最多50条
gte:string desc:消息的开始时间,格式为"YYYY-MM-DD"
lt:string desc:消息的结束时间,格式为"YYYY-MM-DD"

安全使用建议
This skill appears to do what it says: run a curl POST to Baidu's AI search endpoint using BAIDU_API_KEY. Before installing: (1) note the package has no known homepage or author info — decide if you trust the unvetted source; (2) update the example curl to use your key (Authorization: Bearer $BAIDU_API_KEY) rather than the literal 'apikey' shown, and avoid pasting your real key into public examples; (3) review search_request.json to ensure queries don't contain sensitive data you wouldn't want sent to the search provider; (4) confirm the endpoint (https://qianfan.baidubce.com) is the expected Baidu service for your region. If you need higher assurance, ask the publisher for source or a verified homepage before use.
功能分析
Type: OpenClaw Skill Name: baidu-search-cli Version: 1.0.5 The skill provides a straightforward implementation for performing web searches using the Baidu Qianfan AI Search API via a shell-based curl command. It utilizes a local JSON file (search_request.json) for the request payload and correctly references the official Baidu API endpoint (qianfan.baidubce.com). No evidence of data exfiltration, malicious execution, or prompt injection was found.
能力评估
Purpose & Capability
Name, description, required binary (shell) and the single required env var (BAIDU_API_KEY) match the stated purpose of performing web searches against Baidu's AI search API via curl; no unrelated credentials or binaries are requested.
Instruction Scope
SKILL.md confines actions to performing a curl POST to the Baidu endpoint using the provided search_request.json. However the example curl uses a literal header 'Authorization: Bearer apikey' instead of demonstrating substitution of the BAIDU_API_KEY environment variable, which is an inconsistency that could lead to misconfiguration or accidental disclosure when users copy-paste. The instructions do not ask to read unrelated files or exfiltrate other data.
Install Mechanism
Instruction-only skill with no install spec and no code files — low install risk because nothing is written to disk by the skill bundle itself.
Credentials
Only BAIDU_API_KEY is required, which is proportionate to the declared purpose. No other secrets or config paths are requested.
Persistence & Privilege
Skill is not always-on and does not request persistent/privileged agent presence or modify other skills; normal invocation model applies.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install baidu-search-cli
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /baidu-search-cli 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.5
No functional changes in this version. - No file changes detected. - Documentation wording slightly revised for clarity (minor grammatical edit in usage instructions). - Overall functionality and usage remain unchanged.
v1.0.4
- Improved usage instructions with numbered steps for greater clarity. - Added explicit guidance and error messages for missing or incorrect BAIDU_API_KEY environment variable. - Minor updates to parameter descriptions for consistency.
v1.0.3
增加不同操作系统的兼容性,并新增json文件用于解决字符串的问题
v1.0.2
去掉大多数python代码
元数据
Slug baidu-search-cli
版本 1.0.5
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 4
常见问题

baidu-search-CLI 是什么?

Use Baidu AI Search Engine (BDSE) for web search. This version does not require Python installation. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 304 次。

如何安装 baidu-search-CLI?

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

baidu-search-CLI 是免费的吗?

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

baidu-search-CLI 支持哪些平台?

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

谁开发了 baidu-search-CLI?

由 AIphaZhu(@zfeng1982)开发并维护,当前版本 v1.0.5。

💬 留言讨论