← 返回 Skills 市场
joelazar

Kagi Fastgpt

作者 Jozsef Lazar · GitHub ↗ · v1.0.0
cross-platform ⚠ suspicious
592
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install 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 n...
使用说明 (SKILL.md)

Kagi FastGPT

Get AI-generated answers with cited web sources using Kagi's FastGPT API. 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):
    export KAGI_API_KEY="your-api-key-here"
    
  6. Install the binary — see Installation below

Pricing

1.5¢ per query ($15 USD per 1000 queries). Cached responses are free.

Usage

{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 \x3Csec> 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)

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+)

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.

安全使用建议
This package is functionally what it claims: a Kagi FastGPT client. Before installing: 1) Know it requires your KAGI_API_KEY (the registry metadata omitted this) — the key will be sent to kagi.com for each query and may incur charges, so use a key with appropriate billing limits and rotate it if shared. 2) If you plan to use the pre-built binary, verify the GitHub release and the checksums.txt referenced in SKILL.md; prefer building from source if you trust the repository. 3) The wrapper prompts interactively before downloading; in non-interactive environments it may fail. 4) Inspect the repo (github.com/joelazar/kagi-skills) and release artifacts yourself if you have concerns about executing third-party binaries. If you want this skill to be used safely, request the publisher update registry metadata to declare KAGI_API_KEY explicitly and provide a reproducible release/checksum provenance.
功能分析
Type: OpenClaw Skill Name: kagi-fastgpt Version: 1.0.0 The skill bundle is classified as suspicious due to a supply chain vulnerability in `kagi-fastgpt.sh`. The script downloads a pre-built binary from GitHub releases (e.g., `https://github.com/joelazar/kagi-skills/releases/download/...`) without performing any checksum verification. While the `SKILL.md` documentation recommends checksum verification, the script itself does not implement it, leaving it vulnerable to potential tampering of the downloaded binary or MITM attacks. An interactive prompt (`read -r -p "Download? [Y/n] " reply`) partially mitigates silent exploitation by an agent, but the underlying vulnerability remains. The Go application (`main.go`) and `SKILL.md` otherwise appear benign, performing expected API calls to kagi.com and lacking other malicious indicators.
能力评估
Purpose & Capability
Name/description match the code: the Go binary calls Kagi's FastGPT API at https://kagi.com/api/v0/fastgpt. However, the registry metadata claims no required environment variables while both SKILL.md and main.go require KAGI_API_KEY — a clear inconsistency. Requesting a Kagi API key is proportionate to the stated purpose, but the metadata omission is misleading.
Instruction Scope
Runtime instructions and code stay within the skill's stated purpose: they read KAGI_API_KEY, POST the query to Kagi's FastGPT endpoint, and print results and references. The SKILL.md does not instruct the agent to read unrelated files or exfiltrate data to unexpected endpoints.
Install Mechanism
There is no formal registry install spec, but the included wrapper script will build locally or download a pre-built binary from GitHub releases (github.com/joelazar/kagi-skills). Downloading pre-built binaries from GitHub is reasonable, and the script recommends verifying checksums. Still, running downloaded binaries has inherent risk; the script prompts interactively before download and installs into a .bin directory under the skill base.
Credentials
The skill legitimately requires a single KAGI_API_KEY (used as 'Bot <key>' in Authorization), which is proportional to the purpose. But the skill's registry metadata did not declare this required environment variable — the omission could lead users to unknowingly provide an API key later. No other credentials or unrelated env vars are requested.
Persistence & Privilege
The skill is not force-included (always:false), does not request system-wide config or modify other skills, and does not require elevated privileges. It writes its binary to the skill's .bin directory and may build from source; these are normal for a CLI-style skill.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install kagi-fastgpt
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /kagi-fastgpt 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
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.
元数据
Slug kagi-fastgpt
版本 1.0.0
许可证
累计安装 0
当前安装数 0
历史版本数 1
常见问题

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 n... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 592 次。

如何安装 Kagi Fastgpt?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install kagi-fastgpt」即可一键安装,无需额外配置。

Kagi Fastgpt 是免费的吗?

是的,Kagi Fastgpt 完全免费(开源免费),可自由下载、安装和使用。

Kagi Fastgpt 支持哪些平台?

Kagi Fastgpt 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 Kagi Fastgpt?

由 Jozsef Lazar(@joelazar)开发并维护,当前版本 v1.0.0。

💬 留言讨论