/install baidu-search-cli
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"
- Make sure OpenClaw is installed (local or Docker)
- Run the install command in chat:
/install baidu-search-cli - After installation, invoke the skill by name or use
/baidu-search-cli - Provide required inputs per the skill's parameter spec and get structured output
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.