← 返回
开发者工具 Key 中文

Kagi

Perform web searches and generate summarized answers with citations using the Kagi API and FastGPT for higher-quality results or rate-limit fallback.
使用 Kagi API 与 FastGPT 进行网页搜索并生成带引用的摘要答案,以获得更高质量结果或在限流时提供降级方案。
michaelasper
开发者工具 clawhub v0.1.0 1 版本 99614.1 Key: 需要
★ 0
Stars
📥 1,807
下载
💾 32
安装
1
版本
#latest

概述

Kagi (API)

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 "<query>" [--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 "<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.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

版本历史

共 1 个版本

  • v0.1.0 当前
    2026-03-28 21:23 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

developer-tools

CodeConductor.ai

larsonreever
AI驱动平台,提供快速全栈开发、智能体、工作流自动化及低代码AI集成的可扩展产品创建。
★ 66 📥 179,902
developer-tools

Gog

steipete
Google Workspace 命令行工具,支持 Gmail、日历、云端硬盘、通讯录、表格和文档。
★ 921 📥 185,748
developer-tools

Agent Browser

matrixy
专为AI智能体优化的无头浏览器自动化CLI,支持无障碍树快照和基于引用的元素选择。
★ 426 📥 118,057