Overview
- Skill Key
- chrisbdz/kimi-search
- Author
- chrisbdz
- Source Repo
- openclaw/skills
- Version
- -
- Source Path
- skills/chrisbdz/kimi-search
- Latest Commit SHA
- c83908043ac3f99e4cff10ce9cb20fe0095ba08d
使用 Moonshot Kimi API 的 $web_search 内置工具进行联网搜索。当需要进行网络搜索获取实时信息时使用,支持中文和英文搜索查询。需要配置 MOONSHOT_API_KEY。
Stars
0
Installs
0
Status
ACTIVE
Visibility
PUBLIC
直接复制以下提示词,发送给你的 AI 助手即可完成安装。
请先检查是否已安装 SkillHub 商店,若未安装,请根据 https://skillhub-1388575217.cos.ap-guangzhou.myqcloud.com/install/skillhub.md 安装 SkillHub 商店,然后安装 kimi-search 技能。 若已安装,则直接安装 kimi-search 技能。
# Kimi Search
使用 Kimi 大模型的内置联网搜索工具 `$web_search` 进行联网搜索。
## 前置要求
1. **Moonshot API Key**:需要在 https://platform.moonshot.cn/console 注册并获取 API Key
2. **账户充值**:联网搜索每次额外收费约 ¥0.03,确保账户有余额
3. **Python 环境**:Python 3.8+ 和 `openai` Python 包
## 安装依赖
skill 需要 `openai` Python 包。安装方式:
```bash
pip3 install openai
```
或者使用虚拟环境(推荐):
```bash
python3 -m venv ~/.openclaw/skills/kimi-search/venv
source ~/.openclaw/skills/kimi-search/venv/bin/activate
pip install openai
```
## 配置 API Key
### 工作原理
本 skill 声明了 `primaryEnv: MOONSHOT_API_KEY`。OpenClaw 会自动将你配置的 `apiKey` 值注入到 `MOONSHOT_API_KEY` 环境变量中供脚本读取。
### 配置方式(推荐)
编辑 `~/.openclaw/openclaw.json`,添加:
```json
{
"skills": {
"entries": {
"kimi-search": {
"enabled": true,
"apiKey": "sk-你的APIKey"
}
}
}
}
```
> **安全提示**:`~/.openclaw/openclaw.json` 是用户主目录下的配置文件,权限通常设置为仅用户可读。如需更高安全性,建议使用环境变量方式。
### 使配置生效
```bash
openclaw gateway restart
```
### 替代方案:环境变量
如果你不想将 Key 存储在配置文件中,可以直接设置环境变量:
```bash
export MOONSHOT_API_KEY="sk-你的APIKey"
~/.openclaw/skills/kimi-search/scripts/kimi-search "搜索词"
```
环境变量方式不会在磁盘上留下 Key 记录,适合共享机器或高安全要求场景。
## 使用方法
### 作为 Agent 工具使用
配置完成后,可以直接问 Agent:
> "用 kimi-search 搜一下今天的新闻"
### 直接调用脚本
```bash
~/.openclaw/skills/kimi-search/scripts/kimi-search "搜索关键词"
```
### 示例
```bash
kimi-search "今天有什么新闻"
kimi-search "OpenClaw 是什么"
kimi-search "Python 最新版本特性"
```
## 输出格式
脚本返回 JSON 格式:
```json
{
"query": "搜索关键词",
"answer": "搜索结果的回答",
"usage": {
"prompt_tokens": 8059,
"completion_tokens": 1197,
"total_tokens": 9256
}
}
```
- `query`:原始搜索词
- `answer`:Kimi 根据搜索结果生成的回答
- `usage`:Token 消耗统...
youmind-openlab
AI skill for OpenClaw & Claude Code — recommend from 10000+ Nano Banana Pro (Gemini) image prompts. Smart search by use case, content remix, sample images.
23blocks-os
AI Agent Orchestrator with Skills System - Give AI Agents superpowers: memory search, code graph queries, agent-to-agent messaging. Manage Claude, Codex or any AI Agent from one dashboard. Move Agents between computers and locations
hashgraph-online
AI agent skills for the Universal Registry - search, chat, and register 72,000+ agents across 14+ protocols. Works with Claude, Codex, Cursor, OpenClaw, and any AI assistant.
rito-w
A cross-platform skills manager for AI IDEs. Search marketplace, download locally, and install to Claude, Cursor, Windsurf, and more with one click.
besoeasy
Battle-tested skill library for AI agents. Save 98% of API costs with ready-to-use code for crypto, PDFs, search, web scraping & more. No trial-and-error, no expensive APIs.
zeropointrepo
YouTube Transcript API skills for AI agents. Get transcripts, search videos, browse channels. Works with OpenClaw, ClawdBot, Claude Code, Cursor, Windsurf.