baidu-search
Search the web using Baidu AI Search Engine (BDSE). Use for live information, documentation, or research topics.
- License 许可
- Apache-2.0
- 最近更新
- 2026-11-10
- Stars
- ★ 41
- Forks
- 9
01 前言 Front Matter
- name
- baidu-search
- metadata
- { "openclaw": { "emoji": "🔍︎", "requires": { "env": [ "BAIDU_API_KEY" ], "bins": [ "python3" ] }, "primaryEnv": "BAIDU_API_KEY" } }
- description
- Search the web using Baidu AI Search Engine (BDSE). Use for live information, documentation, or research topics.
02 资源文件 12
- 参考文档_meta.json131 B
- 参考文档agent_eval/README.md736 B
- 参考文档agent_eval/task_baidu_search_external_state.md1.6 KB
- 参考文档agent_eval/task_baidu_search_usability.md6.7 KB
- 脚本env_audit/check_environment.sh1.6 KB
- 脚本env_audit/fix_environment.sh1.3 KB
- 参考文档mock_assets/api_handlers/api_qianfan_baidubce_com.json2.0 KB
- 其他mock_assets/bin/baidu-search-state1.9 KB
- 脚本mock_assets/skill_hooks/00_provision_baidu_key.sh1.1 KB
- 参考文档MOCK_SKILL_USAGE.md2.2 KB
- 参考文档references/apikey-fetch.md1.3 KB
- 脚本scripts/search.py6.4 KB
03 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 '<JSON>'
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":"artificial intelligence"}'
# Freshness first format "YYYY-MM-DDtoYYYY-MM-DD" example
python3 scripts/search.py '{
"query":"latest news",
"freshness":"2025-09-01to2025-09-08"
}'
# Freshness second format pd, pw, pm, py example
python3 scripts/search.py '{
"query":"latest news",
"freshness":"pd"
}'
# set count, the number of results to return
python3 scripts/search.py '{
"query":"tourist attractions",
"count": 20,
}'
Current Status
Fully functional.
04 同仓库更多 Skills
secureclaw
Security skill for OpenClaw agents (7-framework aligned). 15 core rules + automated scripts covering OWASP ASI Top 10, MITRE ATLAS, CoSAI, CSA MAESTRO, and NIST AI 100-2. Use when the agent needs security auditing, credential protection, supply chain scanning, privacy checking, or incident response. By Adversa AI (https://adversa.ai). v2.2.0.
secureclaw
Security hardening toolkit for OpenClaw. Run audits, apply fixes, scan skills, monitor costs and memory integrity.
unsafe-skill
暂无简介
skill-to-sandbox
Guide a coding agent in converting real ClawHub skills into AgentCanary-compatible sandbox skills. Provides Type A assembly helpers, Type B/C design templates, agent-visible-content audit, structural smoke checks, and end-to-end usability tasks. Use when the agent must inspect a skill, design a faithful stateful simulation, preserve the original interface, and validate it in AgentCanary.
ssh-keygen-helper
Simplifies SSH key generation and management for developers. Automatically configures SSH keys for GitHub, GitLab, and Bitbucket. Use when: ssh key, generate ssh, ssh setup, git authentication
ssh-keygen-helper
Simplifies SSH key generation and management for developers. Automatically configures SSH keys for GitHub, GitLab, and Bitbucket. Use when: ssh key, generate ssh, ssh setup, git authentication