返回顶部
k

kagi-fastgpt

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
安全检测
已通过
507
下载量
0
收藏
概述
安装方式
版本历史

kagi-fastgpt

# Kagi FastGPT Get AI-generated answers with cited web sources using [Kagi's FastGPT API](https://help.kagi.com/kagi/api/fastgpt.html). FastGPT runs a full web search under the hood and synthesizes results into a concise answer — ideal for factual questions, API lookups, and current-events queries. This skill uses a Go binary for fast startup and no runtime dependencies. The binary can be downloaded pre-built or compiled from source. ## Setup Requires a Kagi account with API access enabled. Uses the same `KAGI_API_KEY` as the `kagi-search` skill. 1. Create an account at https://kagi.com/signup 2. Navigate to Settings → Advanced → API portal: https://kagi.com/settings/api 3. Generate an API Token 4. Add funds at: https://kagi.com/settings/billing_api 5. Add to your shell profile (`~/.profile` or `~/.zprofile`): ```bash export KAGI_API_KEY="your-api-key-here" ``` 6. Install the binary — see [Installation](#installation) below ## Pricing 1.5¢ per query ($15 USD per 1000 queries). Cached responses are free. ## Usage ```bash {baseDir}/kagi-fastgpt.sh "query" # Ask a question (default) {baseDir}/kagi-fastgpt.sh "query" --json # JSON output {baseDir}/kagi-fastgpt.sh "query" --no-refs # Answer only, no references {baseDir}/kagi-fastgpt.sh "query" --no-cache # Bypass response cache {baseDir}/kagi-fastgpt.sh "query" --timeout 60 # Custom timeout (default: 30s) ``` ### Options | Flag | Description | |------|-------------| | `--json` | Emit JSON output (see below) | | `--no-refs` | Suppress references in text output | | `--no-cache` | Bypass cached responses (use for time-sensitive queries) | | `--timeout <sec>` | HTTP timeout in seconds (default: 30) | ## Output ### Default (text) Prints the synthesized answer, followed by a numbered reference list: ``` Python 3.11 was released on October 24, 2022 and introduced several improvements... --- References --- [1] What's New In Python 3.11 — Python 3.11.3 documentation https://docs.python.org/3/whatsnew/3.11.html The headline changes in Python 3.11 include significant performance improvements... [2] ... ``` Token usage and API balance are printed to stderr. ### JSON (`--json`) Returns a JSON object with: - `query` — the original query - `output` — the synthesized answer - `tokens` — tokens consumed - `references[]` — array of `{ title, url, snippet }` objects - `meta` — API metadata (`id`, `node`, `ms`) ## When to Use - **Use kagi-fastgpt** when you need a direct answer synthesized from web sources (e.g. "What version of X was released last month?", "How do I configure Y?") - **Use kagi-search** when you need raw search results to scan, compare, or extract data from yourself - **Use web-browser** when you need to interact with a page or the content is behind JavaScript ## Installation ### Option A — Download pre-built binary (no Go required) ```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 # Verify checksum (recommended) curl -fsSL "https://github.com/joelazar/kagi-skills/releases/download/${TAG}/checksums.txt" | \ grep "${BINARY}" | sha256sum --check ``` Pre-built binaries are available for Linux and macOS (amd64 + arm64) and Windows (amd64). ### Option B — Build from source (requires Go 1.26+) ```bash cd {baseDir} && go build -o .bin/kagi-fastgpt . ``` Alternatively, just run `{baseDir}/kagi-fastgpt.sh` directly — the wrapper auto-builds on first run if Go is available. The binary has no external dependencies — only the Go standard library.

标签

skill ai

通过对话安装

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

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

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

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

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

通过命令行安装

skillhub install kagi-fastgpt-1776420061

下载 Zip 包

⬇ 下载 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
返回顶部