详细分析 ▾
运行时依赖
版本
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.
安装命令 点击复制
技能文档
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
--jsonfor 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.pyto 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
免费技能或插件可能存在安全风险,如需更匹配、更安全的方案,建议联系付费定制