首页龙虾技能列表 › Kagi — 技能工具

Kagi — 技能工具

v0.1.0

[自动翻译] Perform web searches and generate summarized answers with citations using the Kagi API and FastGPT for higher-quality results or rate-limit fallback.

0· 1,369·3 当前·3 累计
by @michaelasper·MIT-0
下载技能包
License
MIT-0
最后更新
2026/3/1
安全扫描
VirusTotal
无害
查看报告
OpenClaw
可疑
high confidence
The skill implements a straightforward Kagi API client, but the package metadata omits the required API token and primary credential — this mismatch is incoherent and worth attention before installing.
评估建议
This skill appears to be a legitimate Kagi API client, but the package metadata fails to declare the required API token. Before installing: 1) Treat the KAGI_API_TOKEN as a secret — the scripts will send it to https://kagi.com/api/v0, which is expected for this skill. 2) Prefer the author update the skill metadata to list KAGI_API_TOKEN (and mark it as the primary credential) so automated permission checks are accurate. 3) Review the included scripts yourself (they are short and readable) to con...
详细分析 ▾
用途与能力
The included Python scripts and SKILL.md clearly implement a Kagi Search + FastGPT client (calling https://kagi.com/api/v0). That matches the implied purpose, but the skill metadata declares no required environment variables or primary credential even though the code requires a KAGI_API_TOKEN (and also accepts KAGI_API_KEY as a fallback). The missing declaration is an incoherence between purpose and declared requirements.
指令范围
SKILL.md instructs the user to export KAGI_API_TOKEN and run the provided scripts; the runtime instructions stay within the advertised scope (making HTTP calls to the Kagi API and printing/summarizing results). There is no instruction to read unrelated files or contact endpoints other than kagi.com. Note: the instructions assume an API token even though metadata doesn't list it.
安装机制
This is an instruction-only skill with small local Python scripts and no install spec or external downloads. No archive extraction or remote installers are used, which minimizes install risk.
凭证需求
Although the only secret the code needs is the KAGI_API_TOKEN (reasonable for this purpose), the skill metadata lists zero required env vars and no primary credential. The code also accepts an alternate env name (KAGI_API_KEY). The omission in metadata is a discrepancy that could confuse users and permissioning systems; otherwise the requested credential is proportional to the skill's functionality and is only sent to Kagi's API.
持久化与权限
Skill flags are normal (not always:true). The skill does not request persistent system privileges, modify other skills, or write installers; it simply contains local scripts invoked at runtime.
安全有层次,运行前请审查代码。

License

MIT-0

可自由使用、修改和再分发,无需署名。

运行时依赖

无特殊依赖

版本

latestv0.1.02026/2/8

Kagi skill v0.1.0 - Initial release: Integrates Kagi Search API and FastGPT for enhanced web research. - Provides Python scripts for both ranked search results and LLM-powered web answers with citations. - Supports programmatic web search and summarization via command-line interface. - Includes setup instructions for API token usage and example commands. - Suggested as an alternative when Brave Search is rate-limited or higher-quality results are needed.

● 无害

安装命令 点击复制

官方npx clawhub@latest install kagi
镜像加速npx clawhub@latest install kagi --registry https://cn.clawhub-mirror.com

技能文档

Use the bundled Python scripts to call Kagi’s API from the OpenClaw host.

Quick start

1) Create a token in https://kagi.com/settings/api 2) Export it for your shell/session:

export KAGI_API_TOKEN='…'

3) Run a search:

python3 scripts/kagi_search.py "haaps glass" --limit 10 --json

4) Or ask FastGPT (LLM + web search):

python3 scripts/kagi_fastgpt.py "Summarize the latest Haaps glass mentions" --json

Tasks

1) Web search (Kagi Search API)

Use when you need a normal ranked list of results (URLs/titles/snippets).

Command:

python3 scripts/kagi_search.py "" [--limit N] [--json]

Notes:

  • Defaults to printing a readable digest; use --json for raw API output.
  • The script automatically sets Authorization: Bot .

2) Answer/summarize with citations (FastGPT)

Use when you want a short answer grounded in web results, including reference URLs.

Command:

python3 scripts/kagi_fastgpt.py "" [--cache true|false] [--json]

3) Using Kagi as a drop-in for web_search

If Brave Search is rate-limited (429) or you want better results:

  • Use scripts/kagi_search.py to fetch results
  • Then use the main agent model to synthesize / summarize based on the returned URLs/snippets

Files

  • API reference snippets: references/kagi-api.md
  • Python client + CLIs: scripts/kagi_client.py, scripts/kagi_search.py, scripts/kagi_fastgpt.py
数据来源:ClawHub ↗ · 中文优化:龙虾技能库
OpenClaw 技能定制 / 插件定制 / 私有工作流定制

免费技能或插件可能存在安全风险,如需更匹配、更安全的方案,建议联系付费定制

了解定制服务