← 返回 Skills 市场
henryzhuhr

Kimi Websearch

作者 henryzhuhr · GitHub ↗ · v1.0.9 · MIT-0
cross-platform ⚠ suspicious
591
总下载
0
收藏
2
当前安装
9
版本数
在 OpenClaw 中安装
/install kimi-websearch
功能描述
联网搜索工具。Use When (1)用户需要通过联网获取信息; (2)如果你无法直接回答用户的问题,或者需要更多信息来回答用户的问题。
使用说明 (SKILL.md)

Kimi Web Search / Kimi 联网搜索工具

Requirements

通过设置环境变量 KIMI_API_KEYMOONSHOT_API_KEY 来提供 Kimi/Moonshot API 密钥。

如果没有设置,请登录 Moonshot API Keys 获取 API Key,并将其设置为环境变量。

执行流程

  1. 先把用户请求整理成适合搜索的单条问题,尽量具体,避免模糊描述。
  2. 按照 联网搜索脚本 的说明调用脚本进行联网搜索,获取最新的网络信息来回答用户的问题。
  3. 把结果按照输出要求进行整理后输出给用户。

脚本说明

⚠️ 注意: 如果当前环境使用 uv ,则优先使用 uv run xxx.py 来执行脚本;如果没有 uv ,则使用 python3 xxx.py 来执行脚本。

联网搜索脚本

# 通过 Kimi API 进行联网搜索,获取最新的网络信息来回答用户的问题。
python3 {baseDir}/scripts/web_search.py "\x3Cthe question you want to ask>"

# 当遇到错误的时候,可以获取帮助
python3 {baseDir}/scripts/web_search.py --help

输出要求

  • 必须提供给用户消息来源的url,确保信息的准确性,例如

    1. 新闻内容xxxx
       消息来源:[xxx](https://www.example.com)
    
  • 如果没有明确的搜索主题,例如“今天的新闻”,可以参考以下分类整理后输出给用户:

📰 今日要闻
🇨🇳 国内
🌍 国际焦点
📈 财经资讯
💻 科技动态
  • 优先输出整理后的结论,不要把整段原始脚本输出原封不动贴给用户。
  • 如果搜索结果明显不完整、存在时效风险,直接说明不足。
  • 如果用户要求继续追问同一主题,直接换一个搜索参数重新运行。
安全使用建议
This skill uses your Moonshot/Kimi API key and sends your prompts/conversation to https://api.moonshot.cn to obtain search results — if you install it, be aware your queries and context will go to that service (and may incur usage/costs). The included Python script itself does not crawl the web locally; it relies on Moonshot's model/tooling ($web_search) to return results and URLs. If you need private/offline searching or do not trust the Moonshot endpoint, do not provide your API key. Otherwise, the requested env vars and the code appear proportionate to the described websearch purpose. Verify you trust the Moonshot provider and that the API key you supply has appropriate scope/permissions and billing limits.
功能分析
Type: OpenClaw Skill Name: kimi-websearch Version: 1.0.9 The skill provides a legitimate interface for Kimi/Moonshot web search but is classified as suspicious due to a potential shell injection vulnerability. In SKILL.md, the agent is instructed to execute `web_search.py` by passing the user's query directly into a shell command within double quotes, which could lead to arbitrary command execution if the input is not properly sanitized by the calling agent. The Python script itself (scripts/web_search.py) appears benign, correctly handling API keys via environment variables and communicating with the official Moonshot API (api.moonshot.cn) to perform its stated function.
能力评估
Purpose & Capability
Name/description ask for a websearch capability and the skill requests Moonshot/Kimi API keys (KIMI_API_KEY or MOONSHOT_API_KEY). The script calls the Moonshot (api.moonshot.cn) chat/completions API and uses a Kimi model name, so requested credentials and endpoints are coherent with the stated purpose.
Instruction Scope
SKILL.md instructs running scripts/web_search.py which in turn calls the Moonshot API. The script does not perform local crawling itself; it relies on the remote model/tooling ($web_search) provided by Moonshot to obtain search results and URLs. This delegation is reasonable for a hosted websearch integration, but you should understand that user queries and the conversation context are transmitted to the Moonshot endpoint.
Install Mechanism
There is no install spec that downloads arbitrary code; the skill is instruction-only with a single included Python script. SKILL.md lists a pip dependency on openai which matches the script's imports. No high-risk external download URLs or extract steps are present.
Credentials
Only KIMI_API_KEY and MOONSHOT_API_KEY are required (primary is MOONSHOT_API_KEY). Those are expected for a Moonshot/Kimi integration and there are no unrelated secrets requested.
Persistence & Privilege
The skill is not forced-always, and does not request elevated persistence or modify other skills or system configs. Autonomous invocation is enabled (default) but not combined with additional concerning privileges.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install kimi-websearch
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /kimi-websearch 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.9
- Added new script: scripts/web_search.py; removed obsolete files for cleaner structure. - Updated documentation with clearer API key setup, enhanced script usage instructions, and output requirements. - Added metadata for integration (emoji, dependencies, required environment variables). - Output must now include source URLs for transparency and reliability. - Improved organization of news categories and formatting guidance for responses.
v1.0.8
- Replaced the main search script with a new file: scripts/kimi-web_search.py. - Updated documentation to reflect the new script and simplified usage instructions. - Removed details about deprecated script (scripts/web_search.py). - Clarified environment variable requirements and cleaned up dependencies section. - Streamlined output and process instructions for clarity.
v1.0.7
- Updated primary script: replaced scripts/kimi-web_search.py with scripts/web_search.py. - Updated usage instructions: reflect the new script filename and clarified how to run the script. - Added guidance for running with or without uv environment. - Enhanced output requirements: now mandates providing source URLs and suggests example formatting for news-type inquiries. - General documentation improvements for clarity and user experience.
v1.0.6
- Added embedded metadata for better environment and dependency management. - Now documents primary API key as MOONSHOT_API_KEY and openai>=1.0.0 as a dependency. - Updated usage paths to use `{baseDir}` for improved clarity. - Removed obsolete file `_meta.json`.
v1.0.5
- Made minor documentation updates in SKILL.md for clarity and structure. - Added a new _meta.json metadata file. - Cleaned up metadata and requirements section for easier reading.
v1.0.4
- Added explicit pip dependency specification for the openai package (version >=1.0.0) in the skill metadata. - Replaced previous install instructions under metadata with a standard dependencies list. - No changes to instructions or script usage.
v1.0.3
- Added a new metadata section specifying emoji, required environment variables, and installation instructions. - Declared MOONSHOT_API_KEY as the primary environment variable. - Detailed the required Python package and installation method under metadata. - No functional changes to the skill logic or code.
v1.0.2
- Added required environment variable documentation (`KIMI_API_KEY`, `MOONSHOT_API_KEY`) to SKILL.md. - Listed `openai` as a dependency in SKILL.md. - Updated script paths in usage instructions to support `{baseDir}`. - Improved clarity in requirements and instructions for using API keys.
v1.0.0
- Initial release of kimi-websearch, a web search tool for retrieving information online. - Supports queries via command-line using `kimi-web_search.py`. - Requires setting either `KIMI_API_KEY` or `MOONSHOT_API_KEY` as an environment variable. - Outputs concise, summarized answers based on search results, and not raw script output. - Guidance provided for refining questions and handling incomplete or time-sensitive results.
元数据
Slug kimi-websearch
版本 1.0.9
许可证 MIT-0
累计安装 2
当前安装数 2
历史版本数 9
常见问题

Kimi Websearch 是什么?

联网搜索工具。Use When (1)用户需要通过联网获取信息; (2)如果你无法直接回答用户的问题,或者需要更多信息来回答用户的问题。 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 591 次。

如何安装 Kimi Websearch?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install kimi-websearch」即可一键安装,无需额外配置。

Kimi Websearch 是免费的吗?

是的,Kimi Websearch 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

Kimi Websearch 支持哪些平台?

Kimi Websearch 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 Kimi Websearch?

由 henryzhuhr(@henryzhuhr)开发并维护,当前版本 v1.0.9。

💬 留言讨论