This connects Claude to Baidu's AI search platform with four search modes: standard web search, Baidu Baike encyclopedia entries, Miaodong Baike video explanations, and AI-generated answers. You get 100 free queries per day, and it automatically includes the current date as context, which helps with time-sensitive searches. The command-line interface lets you filter by site, recency (last week/month/year), and limit results. Requires an API key from Baidu Qianfan. Useful if you need Chinese-language search results or want to tap into Baidu's knowledge graph and video content rather than just scraping web pages. The AI chat mode is interesting for getting synthesized answers instead of link lists.

skills.sh installs
1.8K
GitHub stars
784
last updated
Aug 21, 2026

Install

$ npx -y skills add countbot-ai/countbot --skill baidu-search --agent claude-code

Installs into .claude/skills of the current project.

Files

百度 AI 搜索

基于百度千帆平台的 AI 搜索服务,支持多种搜索模式。

配置

编辑 skills/baidu-search/scripts/config.json,填写 API Key:

{
  "api_key": "bce-v3/YOUR_API_KEY_HERE"
}

API Key 从 百度千帆平台 获取。

命令行调用

# 网页搜索(默认)
python3 skills/baidu-search/scripts/search.py "搜索关键词"

# JSON 输出(推荐 AI 使用)
python3 skills/baidu-search/scripts/search.py "人工智能最新进展" --json

# 限制结果数
python3 skills/baidu-search/scripts/search.py "Python教程" --limit 5

# 站点过滤
python3 skills/baidu-search/scripts/search.py "天气预报" --sites weather.com.cn

# 时间过滤(week/month/semiyear/year)
python3 skills/baidu-search/scripts/search.py "AI新闻" --recency week

# 百度百科
python3 skills/baidu-search/scripts/search.py "人工智能" --api-type baike

# 秒懂百科(视频)
python3 skills/baidu-search/scripts/search.py "深度学习" --api-type miaodong_baike

# AI 智能生成
python3 skills/baidu-search/scripts/search.py "什么是人工智能" --api-type ai_chat

API 类型

类型说明
web_search网页搜索(默认)
baike百度百科
miaodong_baike秒懂百科(视频)
ai_chatAI 智能搜索生成

注意事项

  • 免费额度:100 次/天
  • 网页搜索查询最长 72 字符

Sponsors

Details

Repository
github.com/countbot-ai/countbot

More from countbot-ai/countbot

All 14

Recommended

1juliusbrussee avatarcavemanjuliusbrussee/cavemanUltra-compressed communication mode. Cuts output tokens 65% (measured) by speaking like caveman while keeping full technical accuracy. Supports intensity levels618.3Kskills.sh installs
2mattpocock avatargrill-memattpocock/skillsA relentless interview to sharpen a plan or design.1.5Mskills.sh installs
3shadcn avatarimproveshadcn/improveSurvey any codebase as a senior advisor and produce prioritized, self-contained implementation plans for OTHER models/agents to execute. Strictly read-only on s40Kskills.sh installs
4obra avatarsystematic-debuggingobra/superpowersUse when encountering any bug, test failure, or unexpected behavior, before proposing fixes326.7Kskills.sh installs
5forrestchang avatarkarpathy-guidelinesforrestchang/andrej-karpathy-skillsBehavioral guidelines to reduce common LLM coding mistakes through explicit assumptions, simplicity, and verifiable success criteria.17.9Kskills.sh installs
6vercel-labs avatarfind-skillsvercel-labs/skillsHelps users discover and install agent skills when they ask questions like "how do I do X", "find a skill for X", "is there a skill that can...", or express int4.3Mskills.sh installs