Token导航 LogoToken导航TokenDH.com
研究检索敏感数据clawhub未标认证来源可访问clear审计提醒

bocha-skill博茶技巧

Agent Skill

bocha-skill 用于查找、检索和筛选相关信息,适合在 OpenClaw 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

75,123

周安装

3,194

GitHub Stars

1

下载量

26,319
OpenClaw

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

MIT-0

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:bocha-skill(博茶技巧)
来源仓库:https://github.com/ypw757/bocha-skill
安装命令:
openclaw skills install bocha-skill
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 OpenClaw 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

ClawHubOpenClaw
openclaw skills install bocha-skill

简介

使用博查AI搜索API(博查AI搜索)搜索网络 - 一个针对中文内容优化的中文搜索引擎。需要 BOCHA_API_KEY。支持具有高质量摘要的网页、图像和新闻。

SKILL.md

name
bocha-search
description
Search the web using Bocha AI Search API (博查AI搜索) - a Chinese search engine optimized for Chinese content. Requires BOCHA_API_KEY. Supports web pages, images, and news with high-quality summaries.
metadata
{"openclaw":{"emoji":"🔍","requires":{"bins":["node"]},"primaryEnv":"BOCHA_API_KEY"}}

Bocha Search Skill for OpenClaw

🔍 博查AI搜索 - 专为中文内容优化的智能搜索工具

Overview

This skill provides web search capabilities through the Bocha AI Search API (博查AI搜索). It's particularly effective for:

  • ✅ Chinese language searches (中文搜索)
  • ✅ Domestic Chinese content (国内内容)
  • ✅ News and current events (新闻资讯)
  • ✅ Encyclopedia and knowledge queries (百科知识)
  • ✅ High-quality AI-generated summaries (AI智能摘要)

Requirements

  • API Key: You need a Bocha API key from https://open.bocha.cn/
  • Node.js: Required to run the search script
  • Environment Variable: Set BOCHA_API_KEY or configure via OpenClaw settings

Configuration

Step 1: Get API Key

  1. Visit 博查AI开放平台
  2. Register an account (注册账号)
  3. Create an application and get your API KEY
  4. Recharge if needed (充值以获得搜索额度)

Step 2: Configure OpenClaw

Add to ~/.openclaw/openclaw.json:

{
  "skills": {
    "entries": {
      "bocha-search": {
        "enabled": true,
        "apiKey": "your-bocha-api-key-here",
        "env": {
          "BOCHA_API_KEY": "your-bocha-api-key-here"
        }
      }
    }
  }
}

Or set environment variable:

export BOCHA_API_KEY="your-bocha-api-key-here"

Usage

Once configured, you can use this skill by asking in Chinese or English:

"搜索北京今天的天气"
"用博查查找人工智能的最新进展"
"bocha search: 量子计算发展趋势"
"查找特朗普的最新新闻"

The skill will automatically route Chinese queries or explicit "bocha" / "博查" / "search" requests to this search provider.

Features

FeatureDescription
Chinese OptimizedBetter results for Chinese language queries
High-Quality SummariesAI-generated article summaries (when summary: true)
Multi-ModalReturns web pages, images, and related content
Time FilteringFilter results by time range (day/week/month/year)
Fast ResponseTypically returns results within 1-2 seconds
Rich MetadataIncludes publish date, site name, favicon, etc.

API Parameters

When calling the underlying tool directly:

ParameterTypeRequiredDefaultDescription
querystring✅ Yes-Search query (supports Chinese and English)
countnumberNo10Number of results (1-50)
freshnessstringNo"noLimit"Time filter: "oneDay", "oneWeek", "oneMonth", "oneYear", "noLimit"
summarybooleanNotrueWhether to include AI-generated summaries

Example Tool Call

// Search for recent AI news in Chinese
{
  "query": "人工智能最新进展",
  "count": 10,
  "freshness": "oneWeek",
  "summary": true
}

// Search for Trump news
{
  "query": "特朗普 Trump 最新新闻",
  "count": 5,
  "freshness": "oneDay"
}

Response Format

The API returns structured data including:

  • Web Pages: Title, URL, snippet, summary, site name, publish date
  • Images: Thumbnail URL, full image URL, dimensions
  • Total Matches: Estimated total number of matching results
  • Related Queries: Suggested related search terms

Sample Response Structure

{
  "_type": "SearchResponse",
  "queryContext": {
    "originalQuery": "search term"
  },
  "webPages": {
    "totalEstimatedMatches": 1908646,
    "value": [
      {
        "name": "Article Title",
        "url": "https://example.com/article",
        "snippet": "Short description...",
        "summary": "Full AI-generated summary...",
        "siteName": "Example Site",
        "datePublished": "2026-01-30T07:19:14+08:00"
      }
    ]
  },
  "images": {
    "value": [...]
  }
}

Error Handling

Common errors and solutions:

ErrorCauseSolution
BOCHA_API_KEY is requiredAPI key not configuredAdd API key to config or environment
Invalid API KEYWrong API keyCheck your API key at https://open.bocha.cn/
Insufficient balanceOut of creditsRecharge your account
Rate limit exceededToo many requestsWait before making more requests

Pricing

  • Visit https://open.bocha.cn/pricing for current pricing
  • New users typically get free credits to start
  • Pay-as-you-go based on search volume

Technical Details

API Endpoint

  • URL: https://api.bocha.cn/v1/web-search
  • Method: POST
  • Auth: Bearer token in Authorization header

Script Location

skills/bocha-search/
├── SKILL.md              # This file
├── README.md             # Full documentation
├── LICENSE               # MIT License
└── scripts/
    ├── package.json      # Node.js config
    ├── tool.json         # OpenClaw tool definition
    └── bocha_search.js   # Main search script ⬅️ Entry point

Comparison with Other Search Tools

FeatureBocha SearchBrave SearchPerplexity
Chinese Content⭐⭐⭐ Excellent⭐⭐ Good⭐⭐ Good
Speed⭐⭐⭐ Fast⭐⭐⭐ Fast⭐⭐ Moderate
Summaries⭐⭐⭐ AI-powered❌ No⭐⭐⭐ AI-powered
Images⭐⭐⭐ Included⭐⭐ Separate⭐ Limited
Pricing💰 Affordable🆓 Free tier💰 Moderate

Best Practices

  1. Use Chinese queries for better Chinese content results
  2. Enable summaries (summary: true) for better context
  3. Set appropriate freshness based on your needs:

- Breaking news: "oneDay" - Recent developments: "oneWeek" - General research: "noLimit"

  1. Start with count=10, increase if needed (max 50)
  2. Handle rate limits gracefully in production use

Troubleshooting

No results returned

  • Try different keywords or synonyms
  • Remove time restrictions (freshness: "noLimit")
  • Check if your query is too specific

Slow response

  • Reduce count parameter
  • Disable summaries if not needed (summary: false)
  • Check network connectivity to api.bocha.cn

API errors

  • Verify API key is correct and active
  • Check account balance at https://open.bocha.cn/
  • Ensure you're not exceeding rate limits

Links

License

MIT License - See LICENSE file for details


Note: This skill is specifically designed for OpenClaw and uses the official Bocha AI Search API. It is not affiliated with or endorsed by Bocha AI.

适合场景

01

OpenClaw 用户查找和安装 Skill 时

02

用户想查找某类 Agent Skill 时

03

需要根据任务场景推荐可安装能力包时

04

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

补充不同宿主或平台的使用分布数据

能力 5

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

OpenClaw

83.4%
按下载量换算21,950

安全审计

VirusTotal

通过

ClawScan

可疑

Static analysis

未展示

权限和风险

敏感数据

该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills