返回顶部
k

kagi-fastgptKagi快速问答

Ask questions and get AI-synthesized answers backed by live web search, via Kagi's FastGPT API. Returns a direct answer with cited references. Use when you need a quick, authoritative answer rather than raw search results.

作者: admin | 来源: ClawHub
源自
ClawHub
版本
V 1.0.0
安全检测
已通过
570
下载量
免费
免费
0
收藏
概述
安装方式
版本历史

kagi-fastgpt

Kagi FastGPT

使用Kagi的FastGPT API获取带有引用网络来源的AI生成答案。FastGPT在底层执行完整的网络搜索,并将结果综合成简洁的答案——非常适合事实性问题、API查询和时事类问题。

此技能使用Go二进制文件实现快速启动,无运行时依赖。二进制文件可以下载预编译版本或从源代码编译。

设置

需要启用API访问权限的Kagi账户。使用与kagi-search技能相同的KAGIAPIKEY。

  1. 1. 在 https://kagi.com/signup 创建账户
  2. 导航至设置 → 高级 → API门户:https://kagi.com/settings/api
  3. 生成API令牌
  4. 在 https://kagi.com/settings/billing_api 添加资金
  5. 添加到您的shell配置文件(~/.profile或~/.zprofile):
bash export KAGIAPIKEY=your-api-key-here
  1. 6. 安装二进制文件——参见下方的安装部分

定价

每次查询1.5美分(每1000次查询15美元)。缓存响应免费。

用法

bash
{baseDir}/kagi-fastgpt.sh 查询内容 # 提问(默认)
{baseDir}/kagi-fastgpt.sh 查询内容 --json # JSON输出
{baseDir}/kagi-fastgpt.sh 查询内容 --no-refs # 仅答案,无引用
{baseDir}/kagi-fastgpt.sh 查询内容 --no-cache # 绕过响应缓存
{baseDir}/kagi-fastgpt.sh 查询内容 --timeout 60 # 自定义超时(默认:30秒)

选项

标志描述
--json输出JSON格式(见下方)
--no-refs
在文本输出中隐藏引用 | | --no-cache | 绕过缓存响应(用于时间敏感查询) | | --timeout <秒> | HTTP超时时间(秒)(默认:30) |

输出

默认(文本)

打印综合答案,后跟编号引用列表:

Python 3.11于2022年10月24日发布,引入了若干改进...

--- 引用 ---
[1] Python 3.11新特性 — Python 3.11.3文档
https://docs.python.org/3/whatsnew/3.11.html
Python 3.11的主要变化包括显著的性能改进...
[2] ...

令牌使用量和API余额将打印到stderr。

JSON(--json)

返回包含以下内容的JSON对象:

  • - query — 原始查询
  • output — 综合答案
  • tokens — 消耗的令牌数
  • references[] — { title, url, snippet }对象数组
  • meta — API元数据(id、node、ms)

使用时机

  • - 使用kagi-fastgpt:当您需要从网络来源综合的直接答案时(例如上个月发布了X的哪个版本?、如何配置Y?)
  • 使用kagi-search:当您需要原始搜索结果自行浏览、比较或提取数据时
  • 使用web-browser:当您需要与页面交互或内容在JavaScript后面时

安装

选项A — 下载预编译二进制文件(无需Go)

bash
OS=$(uname -s | tr [:upper:] [:lower:])
ARCH=$(uname -m)
case $ARCH in
x86_64) ARCH=amd64 ;;
aarch64|arm64) ARCH=arm64 ;;
esac

TAG=$(curl -fsSL https://api.github.com/repos/joelazar/kagi-skills/releases/latest | grep tag_name | cut -d -f4)
BINARY=kagi-fastgpt${TAG}${OS}_${ARCH}

mkdir -p {baseDir}/.bin
curl -fsSL https://github.com/joelazar/kagi-skills/releases/download/${TAG}/${BINARY} \
-o {baseDir}/.bin/kagi-fastgpt
chmod +x {baseDir}/.bin/kagi-fastgpt

验证校验和(推荐)

curl -fsSL https://github.com/joelazar/kagi-skills/releases/download/${TAG}/checksums.txt | \ grep ${BINARY} | sha256sum --check

预编译二进制文件适用于Linux和macOS(amd64 + arm64)以及Windows(amd64)。

选项B — 从源代码构建(需要Go 1.26+)

bash
cd {baseDir} && go build -o .bin/kagi-fastgpt .

或者,直接运行{baseDir}/kagi-fastgpt.sh——如果Go可用,包装器会在首次运行时自动构建。

该二进制文件没有外部依赖——仅使用Go标准库。

标签

skill ai

通过对话安装

该技能支持在以下平台通过对话安装:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 kagi-fastgpt-1776420061 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 kagi-fastgpt-1776420061 技能

通过命令行安装

skillhub install kagi-fastgpt-1776420061

下载

⬇ 下载 kagi-fastgpt v1.0.0(免费)

文件大小: 6.06 KB | 发布时间: 2026-4-17 19:09

v1.0.0 最新 2026-4-17 19:09
Instantly get AI-synthesized answers with cited web references using the Kagi FastGPT API.

- Provides direct, authoritative answers based on live web searches.
- Cited sources are included with each answer for transparency.
- Requires a Kagi API key and account with billing setup.
- Multiple output modes: plain text (with citation list) and structured JSON.
- Simple setup instructions for both binary download and source compilation.
- Flexible command-line options to manage references, cache, and output format.

Archiver·手机版·闲社网·闲社论坛·羊毛社区· 多链控股集团有限公司 · 苏ICP备2025199260号-1

Powered by Discuz! X5.0   © 2024-2025 闲社网·线报更新论坛·羊毛分享社区·http://xianshe.com

p2p_official_large
返回顶部