A zot extension that gives the AI agent two LLM-callable tools backed by the Kagi API:
| Tool | What it does |
|---|---|
kagi_search |
Web search — returns ranked results with titles, URLs, and snippets |
kagi_extract |
Content extraction — fetches full markdown content from up to 10 URLs |
- Python 3.10+
uv— used to run the extension (manages its own virtualenv automatically)- A Kagi API key — get one at https://kagi.com/api
zotinstalled and on$PATH
Add this to your shell profile (~/.zshrc, ~/.bashrc, etc.):
export KAGI_API_KEY=your_api_key_herezot ext install https://github.com/rgasper/zot-kagi-extensionThis clones the repo into $ZOT_HOME/extensions/ so zot update can keep it current alongside your other extensions.
For a single zot session (no install, great for development):
zot --ext /path/to/zot-kagi-extensionSearch the web and get back ranked results.
| Parameter | Type | Required | Description |
|---|---|---|---|
query |
string | ✅ | The search query |
limit |
integer | Max results (default 10, max 20) |
Extract full markdown content from one or more URLs.
| Parameter | Type | Required | Description |
|---|---|---|---|
urls |
string[] | ✅ | List of HTTPS URLs to extract (max 10) |
zot ext logs kagi # print the extension's stderr log
zot ext logs kagi -f # tail it liveEdit main.py, then reload without restarting zot:
/reload-ext