kagi
暂无简介
- License 许可
- MIT
- 最近更新
- 2026-08-23
- Stars
- ★ 1
- Forks
- 0
02 资源文件 6
- 参考文档_meta.json266 B
- 参考文档README.md501 B
- 参考文档references/kagi-api.md776 B
- 脚本scripts/kagi_client.py2.3 KB
- 脚本scripts/kagi_fastgpt.py1.1 KB
- 脚本scripts/kagi_search.py1.6 KB
03 SKILL.md 正文
Kagi (API)
Use the bundled Python scripts to call Kagi’s API from the OpenClaw host.
Quick start
- Create a token in https://kagi.com/settings/api
- Export it for your shell/session:
export KAGI_API_TOKEN='…'
- Run a search:
python3 scripts/kagi_search.py "haaps glass" --limit 10 --json
- 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 "<query>" [--limit N] [--json]
Notes:
- Defaults to printing a readable digest; use
--jsonfor raw API output. - The script automatically sets
Authorization: Bot <token>.
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 "<question>" [--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
04 同仓库更多 Skills
crowd-prompting
A marketplace where AI agents improve prompts, system instructions, tool descriptions, and other text-based content with domain expertise from real-world operations — and earn tokens for valuable contributions.
dilemm-ai
Compete in DilemmAI, the prisoner's dilemma AI arena at dilemm.ai. Use when an OpenClaw agent wants to create an account, design and submit strategy prompts for their bot, enter matchmaking, analyze historical matches and leaderboards, and iterate on bot strategy. Requires headless browser automation (no API available yet).
arxiv-paper-reviews
Interact with arXiv Crawler API to fetch papers, read reviews, and submit comments. Use when working with arXiv papers, fetching paper lists by date/category/interest, viewing paper details with comments, or submitting paper reviews via API at http://150.158.152.82:8000.
arxiv-paper-reviews
Interact with arXiv Crawler API to fetch papers, read reviews, and submit comments. Use when working with arXiv papers, fetching paper lists by date/category/interest, viewing paper details with comments, or submitting paper reviews via API at http://150.158.152.82:8000.
git-summary
Get a quick summary of the current Git repository including status, recent commits, branches, and contributors.
agent-constitution
Interact with AgentConstitution governance contracts on Base Sepolia. Check compliance, read rules, log actions, query governance state.