Kagi API Research for Openclaw

A premium web research and summarization skill that integrates the Kagi API and FastGPT into Openclaw Skills for high-quality, cited data retrieval.

michaelasper
v0.1.0
Feb 8, 2026
0
2.3k
0

Install & Download

1. ClawHub CLI

The fastest way to install a skill directly from the registry.

npx clawhub@latest install kagi

2. Manual Installation

Copy the skill folder to one of these locations

Global
~/.openclaw/skills/
Workspace
<project>/skills/

Priority: Workspace > Local > Bundled

3. Prompt Installation

Copy this prompt to OpenClaw to install it automatically.

Help me install kagi using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).

Prefer to download?

Get the raw skill files in a ZIP archive.

What is Kagi API Research?

The Kagi skill provides a robust interface for AI agents to interact with the Kagi Search and FastGPT APIs. As part of the Openclaw Skills library, it offers a superior alternative to standard search engines by focusing on high-signal results and privacy-centric data retrieval. This skill allows agents to go beyond simple indexing by utilizing FastGPT to synthesize information directly from the web with embedded citations.

By incorporating this skill, developers can ensure their agents have access to high-quality data even when other services are rate-limited. The integration is designed to be lightweight, using Python scripts that output either human-readable digests or machine-friendly JSON, making it a versatile tool for any developer-centric environment where technical accuracy is paramount.

Kagi API Research Use Cases

  • Executing programmatic web searches to gather specific metadata like URLs, titles, and snippets.
  • Generating grounded, AI-summarized answers for complex questions using Kagi FastGPT.
  • Serving as a high-quality fallback research tool for Openclaw Skills when other search providers encounter rate limits.
  • Automating the collection of latest technical mentions or news for automated report generation.

How Kagi API Research Works

  1. The AI agent triggers the search command based on user intent or research requirements.
  2. The system invokes the kagi_search.py or kagi_fastgpt.py scripts using the local Python environment.
  3. The scripts authenticate via a pre-configured KAGI_API_TOKEN to fetch data from Kagi's secure endpoints.
  4. Search results are filtered or summarized based on provided flags such as result limits or JSON formatting.
  5. The finalized output is fed back into the agent's context for subsequent reasoning or direct user response.

Kagi API Research Setup

To begin using this tool within Openclaw Skills, follow these steps:

  1. Create an API token at https://kagi.com/settings/api.
  2. Export the token to your environment variables:
export KAGI_API_TOKEN='your_api_token_here'
  1. Verify the installation by running a test search query:
python3 scripts/kagi_search.py "Openclaw Skills" --limit 5 --json

Kagi API Research Data Schema & Taxonomy

File/Script Description
scripts/kagi_client.py Core client library handling API authentication and HTTP requests.
scripts/kagi_search.py CLI tool for fetching ranked web search results (URLs, titles, snippets).
scripts/kagi_fastgpt.py CLI tool for AI-generated summaries with citations and cache control.
references/kagi-api.md Local API documentation and reference snippets for customization.

Kagi API Research Advanced Features

  • Native JSON output mode for programmatic parsing and chaining with other Openclaw Skills.
  • FastGPT cache control to optimize response speed and reduce unnecessary API token usage.
  • Customizable result limits to balance between data depth and processing efficiency.
  • Integrated citation support to ensure all AI-generated research is transparent and verifiable.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Github Stars: 0
forks: 0

Featured*