← Back to Skills Marketplace
zfeng1982

baidu-search-CLI

by AIphaZhu · GitHub ↗ · v1.0.5 · MIT-0
cross-platform ✓ Security Clean
304
Downloads
0
Stars
0
Active Installs
4
Versions
Install in OpenClaw
/install baidu-search-cli
Description
Use Baidu AI Search Engine (BDSE) for web search. This version does not require Python installation
README (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"

Usage Guidance
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.
Capability Analysis
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.
Capability Assessment
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.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install baidu-search-cli
  3. After installation, invoke the skill by name or use /baidu-search-cli
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
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代码
Metadata
Slug baidu-search-cli
Version 1.0.5
License MIT-0
All-time Installs 0
Active Installs 0
Total Versions 4
Frequently Asked Questions

What is baidu-search-CLI?

Use Baidu AI Search Engine (BDSE) for web search. This version does not require Python installation. It is an AI Agent Skill for Claude Code / OpenClaw, with 304 downloads so far.

How do I install baidu-search-CLI?

Run "/install baidu-search-cli" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.

Is baidu-search-CLI free?

Yes, baidu-search-CLI is completely free, licensed under MIT-0. You can download, install and use it at no cost.

Which platforms does baidu-search-CLI support?

baidu-search-CLI is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

Who created baidu-search-CLI?

It is built and maintained by AIphaZhu (@zfeng1982); the current version is v1.0.5.

💬 Comments