← Back to Skills Marketplace
bzmtxh

Baidu Search 1

by bzmtxh · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ⚠ suspicious
251
Downloads
0
Stars
2
Active Installs
1
Versions
Install in OpenClaw
/install baidu-search-1
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 be a straightforward wrapper around Baidu's qianfan web_search API, but exercise caution before installing: 1) Verify provenance — there is no homepage and the metadata owner/version in _meta.json doesn't match the registry metadata, which could indicate a repackaging or stale files. 2) Confirm dependencies — the script uses the Python 'requests' package but SKILL.md does not declare it; ensure your environment has requests installed. 3) Secrets handling — the reference suggests putting BAIDU_API_KEY into ~/.openclaw/openclaw.json; prefer storing API keys in a secure secrets store or agent-managed secret mechanism rather than plaintext config if possible. 4) Test in an isolated environment (or sandboxed agent) first and review the included scripts visually (you already have them) to confirm there are no hidden endpoints or unexpected network calls. If you cannot verify the author/source, treat the skill as higher risk and consider not installing or restricting its permissions.
Capability Analysis
Type: OpenClaw Skill Name: baidu-search-1 Version: 1.0.0 The skill is a legitimate implementation for performing web searches via the Baidu AI Search API. The Python script `scripts/search.py` correctly handles API authentication using environment variables and communicates only with the official Baidu endpoint (qianfan.baidubce.com). No evidence of data exfiltration, malicious execution, or prompt injection was found.
Capability Assessment
Purpose & Capability
The skill's name, description, and code align with a Baidu AI web-search helper and the only required credential (BAIDU_API_KEY) is appropriate. However, metadata inconsistencies are present: the top-level registry Owner ID differs from the _meta.json ownerId, and the declared version (1.0.0) differs from _meta.json version (1.1.3). The package has no homepage or published source URL, which reduces provenance trust.
Instruction Scope
SKILL.md and scripts/search.py stick to the advertised scope: they construct a request to Baidu's qianfan API and print results. The reference instructions ask you to store BAIDU_API_KEY in ~/.openclaw/openclaw.json and restart OpenClaw — this is consistent with configuring an agent but does instruct writing a secret into a config file. The runtime does not read unrelated files or other env vars.
Install Mechanism
This is an instruction-only skill with a small Python script and no install spec. No archive downloads or external installers are used, so install mechanism risk is low.
Credentials
Only BAIDU_API_KEY is required and is appropriate for calling Baidu's API. Minor concern: the README suggests placing the key into ~/.openclaw/openclaw.json (plaintext in a config file). The code itself reads the key from the BAIDU_API_KEY environment variable. No other credentials are requested.
Persistence & Privilege
The skill does not request always:true and does not modify other skills or system-wide settings. It runs only when invoked by the user or agent per normal defaults.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install baidu-search-1
  3. After installation, invoke the skill by name or use /baidu-search-1
  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 (v1.0.0) - Search the web using the Baidu AI Search API for live information, documentation, or research topics - Requires configuration of a BAIDU_API_KEY environment variable - Supports query, count (number of results), and freshness (date/time range) parameters - Includes detailed usage instructions and request/response examples - Fully functional and ready for use
Metadata
Slug baidu-search-1
Version 1.0.0
License MIT-0
All-time Installs 2
Active Installs 2
Total Versions 1
Frequently Asked Questions

What is Baidu Search 1?

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 251 downloads so far.

How do I install Baidu Search 1?

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

Is Baidu Search 1 free?

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

Which platforms does Baidu Search 1 support?

Baidu Search 1 is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

Who created Baidu Search 1?

It is built and maintained by bzmtxh (@bzmtxh); the current version is v1.0.0.

💬 Comments