← 返回 Skills 市场
joelazar

Kagi Summarizer

作者 Jozsef Lazar · GitHub ↗ · v1.0.0
cross-platform ⚠ suspicious
615
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install kagi-summarizer
功能描述
Summarize any URL or text using Kagi's Universal Summarizer API. Supports multiple engines (including the enterprise-grade Muriel model), bullet-point takeaw...
使用说明 (SKILL.md)

Kagi Universal Summarizer

Summarize any URL or block of text using Kagi's Universal Summarizer API. Handles articles, papers, PDFs, video transcripts, forum threads, and more. Supports multiple summarization engines and can translate output to 28 languages.

This skill uses a Go binary for fast startup and zero 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 all other kagi-* skills.

  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

Token-based, billed per 1,000 tokens processed. Cached requests are free.

Plan Price per 1k tokens
Standard (Cecil / Agnes) $0.030
Kagi Ultimate subscribers $0.025 (automatically applied)
Muriel (enterprise-grade) higher — check API pricing page

Usage

# Summarize a URL
{baseDir}/kagi-summarizer.sh https://example.com/article

# Summarize raw text
{baseDir}/kagi-summarizer.sh --text "Paste your article text here..."

# Pipe text from stdin
cat paper.txt | {baseDir}/kagi-summarizer
echo "Long text..." | {baseDir}/kagi-summarizer.sh --type takeaway

# Choose engine
{baseDir}/kagi-summarizer.sh https://arxiv.org/abs/1706.03762 --engine muriel

# Get bullet-point takeaways instead of prose
{baseDir}/kagi-summarizer.sh https://example.com/article --type takeaway

# Translate summary to another language
{baseDir}/kagi-summarizer.sh https://example.com/article --lang DE
{baseDir}/kagi-summarizer.sh https://example.com/article --lang JA

# JSON output
{baseDir}/kagi-summarizer.sh https://example.com/article --json

# Combined options
{baseDir}/kagi-summarizer.sh https://arxiv.org/abs/1706.03762 --engine muriel --type takeaway --lang EN --json

Options

Flag Description
--text \x3Ctext> Summarize raw text instead of a URL
--engine \x3Cname> Summarization engine (see below, default: cecil)
--type \x3Ctype> Output type: summary (prose) or takeaway (bullets)
--lang \x3Ccode> Translate output to a language code (e.g. EN, DE, FR, JA)
--json Emit JSON output
--no-cache Bypass cached responses
--timeout \x3Csec> HTTP timeout in seconds (default: 120)

Engines

Engine Description
cecil Friendly, descriptive, fast summary (default)
agnes Formal, technical, analytical summary
muriel Best-in-class, enterprise-grade model — highest quality, slower

Language Codes

Common codes: EN English · DE German · FR French · ES Spanish · IT Italian · PT Portuguese · JA Japanese · KO Korean · ZH Chinese (simplified) · ZH-HANT Chinese (traditional) · RU Russian · AR Arabic

Full list: BG CS DA DE EL EN ES ET FI FR HU ID IT JA KO LT LV NB NL PL PT RO RU SK SL SV TR UK ZH ZH-HANT

If no language is specified, the output language follows the document's own language.

Output

Default (text)

Prints the summary to stdout. Token usage and API balance are printed to stderr:

The paper "Attention Is All You Need" introduces the Transformer architecture,
a novel approach to sequence transduction tasks that relies entirely on
attention mechanisms, dispensing with recurrence and convolutions...

[API Balance: $9.9800 | tokens: 1243]

JSON (--json)

{
  "input": "https://arxiv.org/abs/1706.03762",
  "output": "The paper introduces the Transformer...",
  "tokens": 1243,
  "engine": "muriel",
  "type": "takeaway",
  "meta": {
    "id": "abc123",
    "node": "us-east",
    "ms": 4821,
    "api_balance": 9.98
  }
}

When to Use

  • Use kagi-summarizer when you have a URL or document and need a concise summary without reading it yourself
  • Use --type takeaway for structured bullet points — ideal for research papers, long articles, or meeting notes
  • Use --engine muriel when quality matters most (longer documents, academic papers, technical reports)
  • Use --lang when you need the summary in a language different from the source
  • Use kagi-fastgpt instead when you have a question that requires synthesizing information from multiple sources via live web search
  • Use kagi-search instead when you need raw search results to scan or compare

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-summarizer_${TAG}_${OS}_${ARCH}"

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

# 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-summarizer .

Alternatively, just run {baseDir}/kagi-summarizer.sh directly — the wrapper auto-builds on first run if Go is available.

The binary has no external dependencies — only the Go standard library.

安全使用建议
Do not install blindly. The included code and SKILL.md require your KAGI_API_KEY even though the registry metadata omits that — confirm you are willing to provide that API key. If you proceed: 1) Prefer building from source with a trusted Go toolchain rather than running a downloaded binary; 2) If using the pre-built binary, verify the release tag and the checksum (checksums.txt + sha256sum) come from the official GitHub repo and match; 3) Be aware the wrapper may prompt interactively for download and will place the binary under {baseDir}/.bin; 4) Review network behavior — the binary will POST your text/URL and Authorization header to https://kagi.com/api/v0/summarize; only use it if you trust Kagi and the repository owner; 5) Ask the publisher/registry to fix the metadata to declare KAGI_API_KEY as a required credential so the requirement is visible before installation.
功能分析
Type: OpenClaw Skill Name: kagi-summarizer Version: 1.0.0 The skill is classified as suspicious due to a significant supply chain vulnerability in the `kagi-summarizer.sh` script. This script automatically downloads and executes a pre-built Go binary from `github.com/joelazar/kagi-skills` without performing any checksum verification. Although the `SKILL.md` documentation recommends manual checksum verification, the automated script does not implement it, creating a critical integrity risk where a compromised GitHub repository could lead to the execution of malicious code. The core Go application (`main.go`) appears benign, performing only legitimate interactions with the Kagi API.
能力评估
Purpose & Capability
The skill's name, SKILL.md, and main.go consistently implement a Kagi Universal Summarizer that calls https://kagi.com/api/v0/summarize — that matches the stated purpose. However, the registry metadata lists no required environment variables or primary credential, while both SKILL.md and main.go require KAGI_API_KEY. The omission in metadata is an incoherence that could mislead users about what secrets the skill needs.
Instruction Scope
SKILL.md and the shell wrapper and Go binary keep scope limited to summarization via the Kagi API. The wrapper will build from source with Go or download a GitHub release and writes a binary to {baseDir}/.bin; it also prompts the user interactively before downloading. The code does not read other system files or extra environment variables. The interactive prompt (read from /dev/tty) and the fallback download behavior could be surprising in automated contexts and should be noted.
Install Mechanism
The install script uses GitHub Releases (https://github.com/joelazar/kagi-skills/releases) for pre-built binaries and attempts to verify checksums via checksums.txt and sha256sum (recommended). Using GitHub releases is reasonable, but downloading and executing a remote binary is higher risk than a purely source build — users should verify the checksum and trust the release author. The script also attempts to build from local Go if available.
Credentials
At runtime the program requires a single KAGI_API_KEY environment variable (proportionate to calling Kagi's API). The problem is the registry metadata does not declare this required credential; SKILL.md does. The discrepancy between declared requirements and actual runtime requirements is a meaningful red flag: the skill WILL need your Kagi API key even though the registry metadata says none.
Persistence & Privilege
The skill is not always-enabled, does not request elevated privileges, and only writes a binary into its own baseDir/.bin. It does not modify other skills or system-wide settings. Autonomous invocation is allowed by platform default but is not combined with other high-risk features here.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install kagi-summarizer
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /kagi-summarizer 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
- Summarize any URL or text using Kagi's Universal Summarizer API, supporting articles, papers, PDFs, video transcripts, and more. - Choose between multiple summarization engines (friendly, formal, or enterprise-grade quality). - Output options include prose summary, bullet-point takeaways, and translation to 28 languages. - Supports JSON output, caching, HTTP timeout configuration, and easy installation via pre-built binaries or from source.
元数据
Slug kagi-summarizer
版本 1.0.0
许可证
累计安装 0
当前安装数 0
历史版本数 1
常见问题

Kagi Summarizer 是什么?

Summarize any URL or text using Kagi's Universal Summarizer API. Supports multiple engines (including the enterprise-grade Muriel model), bullet-point takeaw... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 615 次。

如何安装 Kagi Summarizer?

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

Kagi Summarizer 是免费的吗?

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

Kagi Summarizer 支持哪些平台?

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

谁开发了 Kagi Summarizer?

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

💬 留言讨论