Skip to content
Back to skills

Kagi

ASecurity

"Use the Kagi API (Search API + FastGPT) for web research when you

  • 21 stars
  • 0 votes
  • 0 copies
  • 5 views
  • Added September 7, 2026
toolspythongoshellbashapi

Works with

  • cli
  • api

Security analysis

A100/100

Pro scans all 6 files and shows the line behind each finding

Scanned September 7, 2026

npx -y skills add modbender/skill-library-mcp --skill kagi --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Kagi?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Kagi
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/modbender-kagi/badge)](https://www.skillsdirectory.com/skills/modbender-kagi)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: kagi
description: "Use the Kagi API (Search API + FastGPT) for web research when you
  want higher-quality results than Brave/Google, or when Brave Search is
  rate-limited. Triggers: “search with Kagi”, “Kagi search”, “use FastGPT”,
  “Kagi FastGPT”, “Kagi summarize”, or when you want programmatic web search via
  Kagi’s API token."
---


# Kagi (API)

Use the bundled Python scripts to call Kagi’s API from the OpenClaw host.

## Quick start

1) Create a token in https://kagi.com/settings/api
2) Export it for your shell/session:

```bash
export KAGI_API_TOKEN='…'
```

3) Run a search:

```bash
python3 scripts/kagi_search.py "haaps glass" --limit 10 --json
```

4) Or ask FastGPT (LLM + web search):

```bash
python3 scripts/kagi_fastgpt.py "Summarize the latest Haaps glass mentions" --json
```

## Tasks

### 1) Web search (Kagi Search API)

Use when you need a normal ranked list of results (URLs/titles/snippets).

Command:

```bash
python3 scripts/kagi_search.py "<query>" [--limit N] [--json]
```

Notes:
- Defaults to printing a readable digest; use `--json` for raw API output.
- The script automatically sets `Authorization: Bot <token>`.

### 2) Answer/summarize with citations (FastGPT)

Use when you want a short answer grounded in web results, including reference URLs.

Command:

```bash
python3 scripts/kagi_fastgpt.py "<question>" [--cache true|false] [--json]
```

### 3) Using Kagi as a drop-in for web_search

If Brave Search is rate-limited (429) or you want better results:
- Use `scripts/kagi_search.py` to fetch results
- Then use the main agent model to synthesize / summarize based on the returned URLs/snippets

## Files

- API reference snippets: `references/kagi-api.md`
- Python client + CLIs: `scripts/kagi_client.py`, `scripts/kagi_search.py`, `scripts/kagi_fastgpt.py`

Files in this skill

  • README.md527 B
  • SKILL.md1.9 KB
  • references/kagi-api.md821 B
  • scripts/kagi_client.py2.3 KB
  • scripts/kagi_fastgpt.py1.2 KB
  • scripts/kagi_search.py1.7 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in tools →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.