← Back to Skills Marketplace
feng-aragron

baidu search

by Feng-Aragron · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ✓ Security Clean
109
Downloads
0
Stars
0
Active Installs
1
Versions
Install in OpenClaw
/install baidufeng
Description
Search the web using Baidu AI Search Engine (BDSE). Use for live information, documentation, or research topics.
README (SKILL.md)

Baidu Search

Search the web via Baidu AI Search API.

Prerequisites

API Key Configuration

This skill requires a BAIDU_API_KEY to be configured in OpenClaw.

If you don't have an API key yet, please visit: https://console.bce.baidu.com/ai-search/qianfan/ais/console/apiKey

For detailed setup instructions, see: references/apikey-fetch.md

Usage

python3 skills/baidu-search/scripts/search.py '\x3CJSON>'

Request Parameters

Param Type Required Default Description
query str yes - Search query
count int no 10 Number of results to return, range 1-50
freshness str no Null Time range, two formats: format one is ”YYYY-MM-DDtoYYYY-MM-DD“, and format two includes pd, pw, pm, and py, representing the past 24 hours, past 7 days, past 31 days, and past 365 days respectively

Examples

# Basic search
python3 scripts/search.py '{"query":"人工智能"}'

# Freshness first format "YYYY-MM-DDtoYYYY-MM-DD" example
python3 scripts/search.py '{
  "query":"最新新闻",
  "freshness":"2025-09-01to2025-09-08"
}'

# Freshness second format pd、pw、pm、py example
python3 scripts/search.py '{
  "query":"最新新闻",
  "freshness":"pd"
}'

# set count, the number of results to return
python3 scripts/search.py '{
  "query":"旅游景点",
  "count": 20,
}'

Current Status

Fully functional.

Usage Guidance
This skill appears to do what it says: run a local Python script that calls Baidu's AI search API using BAIDU_API_KEY. Before installing, do the following: - Review the bundled scripts (scripts/search.py) yourself — it is short and readable and only posts to qianfan.baidubce.com. - Ensure the 'requests' Python package is installed in the runtime environment (pip install requests) or add an install step; otherwise the script will fail. - Store BAIDU_API_KEY securely. The references suggest adding it to ~/.openclaw/openclaw.json (plain JSON), which may leave the key on disk in cleartext; prefer an encrypted/secret store or OS environment variable if possible. - Confirm you trust the skill source (source/homepage are unknown) and the owner. There is a minor metadata mismatch in _meta.json ownerId vs. registry metadata — this is not necessarily malicious but worth checking if provenance matters. - Consider running the script in an isolated environment (container) the first time to validate behavior and network egress to Baidu's endpoint. If these points are acceptable, the skill is coherent and proportional to its stated purpose.
Capability Analysis
Type: OpenClaw Skill Name: baidufeng Version: 1.0.0 The skill is a legitimate implementation of a Baidu AI Search integration. It uses the official Baidu Qianfan API endpoint (qianfan.baidubce.com), handles API keys securely via environment variables, and contains no evidence of malicious behavior, data exfiltration, or prompt injection in scripts/search.py or SKILL.md.
Capability Assessment
Purpose & Capability
Name/description, SKILL.md usage, and the included scripts consistently implement a Baidu AI web search that requires BAIDU_API_KEY and python3. The script calls the expected Baidu endpoint (qianfan.baidubce.com) and constructs search requests. Requiring BAIDU_API_KEY is proportionate to the stated purpose.
Instruction Scope
SKILL.md directs the agent/user to run the included Python script with a JSON argument. The script reads only the declared BAIDU_API_KEY environment variable and does not attempt to read unrelated system files. The references doc suggests adding the key to ~/.openclaw/openclaw.json (a user config file) — this is an operational suggestion, not hidden behavior in the runtime instructions.
Install Mechanism
There is no install spec (instruction-only plus a bundled script), which is low risk. However, the Python script uses the third-party 'requests' library but the skill does not declare that dependency or provide an install step; that can cause runtime failures or unexpected behavior if requests is absent or an incompatible version is installed.
Credentials
The skill requests a single credential (BAIDU_API_KEY) which matches its purpose. One caveat: the references doc recommends storing the key in ~/.openclaw/openclaw.json (plain JSON); users should be aware this stores the key on disk and may be less secure than platform secret storage.
Persistence & Privilege
always is false and the skill does not request elevated or system-wide privileges. It does not modify other skills' configs. The only config edit suggested is to add the API key to the agent's config, which is a user-administered action.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install baidufeng
  3. After installation, invoke the skill by name or use /baidufeng
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
v1.0.0
- Initial release of "baidu-search" skill for live web search via Baidu AI Search API. - Requires BAIDU_API_KEY environment variable for authentication. - Provides query, count, and freshness parameters to customize search requests. - Includes clear setup and usage instructions. - Old multi-surface, region-aware Baidu routing documentation removed for a focused search skill.
Metadata
Slug baidufeng
Version 1.0.0
License MIT-0
All-time Installs 0
Active Installs 0
Total Versions 1
Frequently Asked Questions

What is baidu search?

Search the web using Baidu AI Search Engine (BDSE). Use for live information, documentation, or research topics. It is an AI Agent Skill for Claude Code / OpenClaw, with 109 downloads so far.

How do I install baidu search?

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

Is baidu search free?

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

Which platforms does baidu search support?

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

Who created baidu search?

It is built and maintained by Feng-Aragron (@feng-aragron); the current version is v1.0.0.

💬 Comments