AgentStack
SKILL verified MIT Self-run

Kagi Search

skill-wawa1154-kagi-skills-kagi-search · by wawa1154

Fast web search and content extraction via Kagi Search API. Uses a Go backend for quick startup and supports JSON output.

No reviews yet
0 installs
4 views
0.0% view→install

Install

$ agentstack add skill-wawa1154-kagi-skills-kagi-search

✓ scanned · ✓ verified — works with Claude Code, Cursor, and more.

Security review

✓ Passed

No issues found. Passed automated security review. · v0.1.0 How review works →

  • Prompt-injection patterns
  • Secret / credential exfiltration
  • Dangerous shell & filesystem operations
  • Untrusted network calls
  • Known-malicious package signatures

What it can access

  • Network access Used
  • Filesystem access No
  • Shell / process execution No
  • Environment & secrets No
  • Dynamic code execution No

From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.

View the full security report →

Verified badge

Passed review? Show it. Paste this badge into your README — it links to the public security report.

AgentStack Verified badge Links to your public security report.
[![AgentStack Verified](https://agentstack.voostack.com/badges/verified.svg)](https://agentstack.voostack.com/security/report/skill-wawa1154-kagi-skills-kagi-search)

Reliability & compatibility

Security review passed
0 installs to date
no reviews yet
6d ago

Declared compatibility

Claude CodeClaude Desktop

Compatibility is declared by the source manifest. End-to-end runtime verification is coming — see below.

Preview Execution monitoring

We're building live execution health for every listing: tool-call success rate, median latency, uptime, and last-checked timestamps — measured, not self-reported. It isn't live yet, so we don't show numbers we can't stand behind.

How agent discovery & health will work →
Are you the author of Kagi Search? Claim this listing to set pricing, connect Stripe payouts, and keep 70% of every sale.
Sign up to claim

About

Kagi Search

Fast web search and content extraction using the official Kagi Search API.

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.

  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 to your API balance at: https://kagi.com/settings/billing_api
  5. Add to your shell profile (~/.profile or ~/.zprofile for zsh):

``bash export KAGI_API_KEY="your-api-key-here" ``

  1. Install the binary — see [Installation](#installation) below

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

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

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

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

Pricing

The Kagi Search API is priced at $25 for 1000 queries (2.5 cents per search).

Search

{baseDir}/kagi-search.sh search "query"                              # Basic search (10 results)
{baseDir}/kagi-search.sh search "query" -n 20                        # More results (max 100)
{baseDir}/kagi-search.sh search "query" --content                    # Include extracted page content
{baseDir}/kagi-search.sh search "query" --json                       # JSON output
{baseDir}/kagi-search.sh search "query" --show-balance               # Show API balance for this call
{baseDir}/kagi-search.sh search "query" -n 5 --content --json        # Combined options

Search options

  • -n - Number of results (default: 10, max: 100)
  • --content - Fetch and include page content for each result
  • --json - Emit JSON output
  • --show-balance - Print API balance to stderr for this call
  • --timeout - HTTP timeout in seconds (default: 15)
  • --max-content-chars - Max chars per fetched result content (default: 5000)

Extract Page Content

{baseDir}/kagi-search.sh content https://example.com/article
{baseDir}/kagi-search.sh content https://example.com/article --json

Content options

  • --json - Emit JSON output
  • --timeout - HTTP timeout in seconds (default: 20)
  • --max-chars - Max chars to output (default: 20000)

API Balance

Balance is not printed by default. You can either:

  • add --show-balance to search
  • run the dedicated command:
{baseDir}/kagi-search.sh balance
{baseDir}/kagi-search.sh balance --json

Output

Default (text)

kagi-search search prints readable text blocks, and kagi-search content prints extracted content.

JSON (--json)

kagi-search search --json returns:

  • query
  • meta (includes API metadata like ms, api_balance when provided)
  • results[] with title, link, snippet, optional published, optional content
  • related_searches[]

kagi-search content --json returns:

  • url
  • title
  • content
  • error (only when extraction fails)

When to Use

  • Searching for documentation or API references
  • Looking up facts or current information
  • Fetching content from specific URLs
  • Any task requiring web search without interactive browsing

Notes

  • Search results inherit your Kagi account settings (personalized results, blocked/promoted sites)
  • Results may include related search suggestions (t:1 objects)
  • Content extraction uses codeberg.org/readeck/go-readability/v2 (Readability v2)
  • The binary lives at {baseDir}/.bin/kagi-search; the wrapper rebuilds it automatically when source changes (requires Go)

Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

Install and usage instructions live in the source repository linked above.

Reviews

No reviews yet — be the first.

Versions

  • v0.1.0 Imported from the upstream source.