kagi-search
Skill18 starsChanged 10 months agoMITView on GitHub
Fast web search and content extraction via Kagi Search API. Uses a Go backend for quick startup and supports JSON output.
- Reads credentials
2 other projects use a version of this.
Adopted by
Most recently taken up by
- kalaverin/skillstheir own version, first seen Nov 22, 2026
- hffmnnj/kagi-skilltheir own version, first seen Dec 22, 2025
Other versions2 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 2
- hffmnnj/kagi-skill★ 6same name
- kalaverin/skills★ 1same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository4 other files it gives its agents.
- AGENTS.mdAGENTS.md
- kagi-enrichSkill
- kagi-fastgptSkill
- kagi-summarizerSkill
The file
We split this skill into the rules it gives an agent
6 rules. About 0 are common, 4 are distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈4
Distinctive · estimate
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 16
Create an account at https://kagi.com/signup
- Distinctive: line 19
Add funds to your API balance at: https://kagi.com/settings/billing_api
- Very specific: line 20
Add to your shell profile (~/.profile or ~/.zprofile for zsh):
- Very specific: line 102
add --show-balance to search
- Distinctive: line 103
run the dedicated command:
- Distinctive: line 141
Search results inherit your Kagi account settings (personalized results, blocked/promoted sites)
≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
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.
- Create an account at https://kagi.com/signup
- Navigate to Settings -> Advanced -> API portal: https://kagi.com/settings/api
- Generate an API Token
- Add funds to your API balance at: https://kagi.com/settings/billing_api
- Add to your shell profile (
~/.profileor~/.zprofilefor zsh):export KAGI_API_KEY="your-api-key-here" - 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 --checkPre-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 optionsSearch options
-n <num>- 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 <sec>- HTTP timeout in seconds (default: 15)--max-content-chars <num>- 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 --jsonContent options
--json- Emit JSON output--timeout <sec>- HTTP timeout in seconds (default: 20)--max-chars <num>- Max chars to output (default: 20000)
API Balance
Balance is not printed by default. You can either:
- add
--show-balancetosearch - run the dedicated command:
{baseDir}/kagi-search.sh balance
{baseDir}/kagi-search.sh balance --jsonOutput
Default (text)
kagi-search search prints readable text blocks, and kagi-search content prints extracted content.
JSON (--json)
kagi-search search --json returns:
querymeta(includes API metadata likems,api_balancewhen provided)results[]withtitle,link,snippet, optionalpublished, optionalcontentrelated_searches[]
kagi-search content --json returns:
urltitlecontenterror(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:1objects) - 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)
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

