Baidu Smart Search
/install baidu-smart-search
Baidu Qianfan Search
Use this skill to query Baidu Qianfan's web search API and return structured search results without scraping websites directly.
Quick start
- Store the API key in an environment variable before running scripts:
export QIANFAN_APPBUILDER_API_KEY='...'
Or keep it in a local untracked file such as .env.local and source it manually:
set -a
source ./.env.local
set +a
- Run the bundled script:
python3 scripts/qianfan_search.py "北京有哪些旅游景区"
- For raw JSON debugging:
python3 scripts/qianfan_search.py "北京有哪些旅游景区" --raw
Common patterns
Basic web search
python3 scripts/qianfan_search.py "百度千帆平台"
Restrict to specific sites
python3 scripts/qianfan_search.py "天气预报" --site weather.com.cn --site www.weather.com.cn
Filter by recency
python3 scripts/qianfan_search.py "近期 AI 智能体新闻" --recency week
Request images or videos too
python3 scripts/qianfan_search.py "故宫博物院" --web-top-k 5 --image-top-k 5 --video-top-k 3 --raw
Output handling
- Default mode prints a normalized JSON object with
query,count,items, and discoveredraw_keys. --rawprints the full upstream JSON for troubleshooting or adapting to API changes.- If Baidu changes response fields, inspect raw output first, then patch
scripts/qianfan_search.py.
Security rules
- Never place the real API key in
SKILL.mdorreferences/. - Never publish
.env.localto ClawHub. - Before packaging or publishing, delete any local secret files from the skill folder or ensure the publisher excludes them.
References
- Read
references/api.mdfor the concise endpoint and parameter summary. - Use
scripts/qianfan_search.pyas the canonical wrapper for the API.
- Make sure OpenClaw is installed (local or Docker)
- Run the install command in chat:
/install baidu-smart-search - After installation, invoke the skill by name or use
/baidu-smart-search - Provide required inputs per the skill's parameter spec and get structured output
What is Baidu Smart Search?
Call Baidu Qianfan web search APIs to search the live web with AppBuilder credentials and return structured results. Use when a task specifically needs Baidu... It is an AI Agent Skill for Claude Code / OpenClaw, with 100 downloads so far.
How do I install Baidu Smart Search?
Run "/install baidu-smart-search" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.
Is Baidu Smart Search free?
Yes, Baidu Smart Search is completely free, licensed under MIT-0. You can download, install and use it at no cost.
Which platforms does Baidu Smart Search support?
Baidu Smart Search is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).
Who created Baidu Smart Search?
It is built and maintained by Winrunner_20 (@windrunner20); the current version is v0.1.1.