Kagi search

From sundial-org/awesome-openclaw-skills · View interactive version

Kagi search is an AI agent skill from the GitHub repository sundial-org/awesome-openclaw-skills. Web search using Kagi Search API. Use when you need to search the web for current information, facts, or references. Requires KAGI_API_KEY in the environment.

How to use this skill

Skill file

Note: The Kagi Search API is currently in beta. To request API access, email support@kagi.com. You must be a Kagi subscriber to use the API.


Kagi Search CLI

Web search using the Kagi Search API with a clean, readable output format.

Quick Start

export KAGI_API_KEY="your_api_key"
kagi-search "your search query"
# or run directly:
python3 scripts/kagi-search.py "your search query"

Features

Options

| Flag | Description |

|------|-------------|

| query | Search terms (required) |

| -n, --limit | Number of results (default: 10) |

| -s, --offset | Offset for pagination (default: 0) |

| --json | Output raw JSON |

| --no-related | Hide related searches |

| -h, --help | Show help |

Examples

# Basic search
kagi-search "python async await tutorial"

# Limit results
kagi-search "AI news" --limit 5

# Pagination
kagi-search "recipes" --offset 10 --limit 5

# JSON for scripting
kagi-search "github stars" --json | jq '.data[].url'

# Hide related searches
kagi-search "rust programming" --no-related

Setup

Environment:

export KAGI_API_KEY="your_api_key"
# Add to ~/.bashrc or ~/.zshrc for persistence

PATH access:

# Make executable and add to PATH
chmod +x scripts/kagi-search.py
cp scripts/kagi-search.py ~/.local/bin/kagi-search

Requirements

Output Format

[Query: search terms]
[Results: 5]
[API Balance: $0.123]
[Time: 45ms]
----------------------------------------
=== Result Title ===
https://example.com
Snippet text here...
[2024-01-15]
---
Related: related query 1, related query 2
Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.