kagi-search

kagi-search is a skill for Claude Code, Codex from joelazar/kagi-skills. It costs 28 tokens per session (1,231 once invoked), scanned A, original, MIT.

A command-line search tool that uses the Kagi Search service to find and extract web content. Kagi is a paid web search provider that requires an API account and key.

In plain words
What is it for?
Use it for web searches and content extraction from the command line after configuring a Kagi API key.
Why use it?
It provides a way to fetch search results and page content from scripts without building a search integration from scratch.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it for web searches and content extraction from the command line after configuring a Kagi API key.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/joelazar/kagi-skills/kagi-search
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add joelazar/kagi-skills --skill kagi-search
Clone the repo
git clone --depth 1 https://github.com/joelazar/kagi-skills

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for kagi-search

README.md
[![agentmods](https://agentmods.dev/badge/skills/joelazar/kagi-skills/kagi-search/github.svg)](https://agentmods.dev/skills/joelazar/kagi-skills/kagi-search)
Your own site
<a href="https://agentmods.dev/skills/joelazar/kagi-skills/kagi-search"><img src="https://agentmods.dev/badge/skills/joelazar/kagi-skills/kagi-search/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for kagi-search

Your own site · 80×15
<a href="https://agentmods.dev/skills/joelazar/kagi-skills/kagi-search"><img src="https://agentmods.dev/badge/skills/joelazar/kagi-skills/kagi-search.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 28 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,231 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00028 $0.01231
Opus 5 $0.00014 $0.00616
Sonnet 5 $0.00006 $0.00246
Haiku 4.5 $0.00003 $0.00123

Measured 12d ago against content hash 27acb8d7cb11, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade A, and why

kagi-search scanned grade A with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 12d ago.

The scan reads SKILL.md. This mod also ships 1 executable file (kagi-search.sh), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

TAG=$(curl -fsSL "https://api.github.com/repos/joelazar/kagi-skills/releases/latest" | grep '"tag_name"' | cut -d'"' -f4)
kagi-search/SKILL.md · 145 lines

How it starts

The opening of the file, as written. The whole thing — 145 lines — stays where its author put it; the contents beside it link to each section on GitHub.

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):
    export KAGI_API_KEY="your-api-key-here"
    
  6. Install the binary — see 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).

{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

Read the full file on GitHub · 145 lines

Files

What ships with it

5 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 12d ago First seen · 145 lines · 28 tokens per session scan A 27acb8d7cb11

Subscribe to this mod's changes

kagi-search is a skill published in the GitHub repository joelazar/kagi-skills (18 stars, last pushed 5mo ago), licensed MIT. It adds 28 tokens to every session and 1,231 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

skill-creator

Create new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, update or optimize an existing skill, run evals to test a skill, benchmark skill performance with variance analysis, or optimize a skill's description for better triggering accuracy.

osloer-industries/vakt · 63 tokens

credential-best-practices

Interactive wizard for setting up secure local credential management. Use this skill when the user needs to: Learn how to store credentials securely on their machine Set up macOS Keychain, pass, or environment variable credential stores Establish credential rotation policies and naming conventions Understand how to…

osloer-industries/vakt · 132 tokens

audit-credentials

Audits local credential setup for security compliance and produces a report. Use this skill when the user needs to: Check whether their credentials are properly stored and not leaking Validate credential rotation age against their policy Scan shell history, dotfiles, and git repos for exposed credentials Check file…

osloer-industries/vakt · 142 tokens

export-credentials

Securely export credentials from local credential stores without exposing them to the AI. Use this skill when the user needs to: Add credentials to GitHub Secrets or other repository secrets Deploy credentials to cloud development environments Manage credentials across multiple repositories or services Create secure…

osloer-industries/vakt · 130 tokens

supericons-icon-search

Use Supericons MCP when the user needs to find, preview, compare, retrieve, or recommend SVG icons for software UI.

curlymolelabs/supericons · 30 tokens

find-skills

Helps users discover and install agent skills when they ask questions like "how do I do X", "find a skill for X", "is there a skill that can...", or express interest in extending capabilities. This skill should be used when the user is looking for functionality that might exist as an installable skill.

osloer-industries/vakt · 67 tokens