All plugins

web-kagi-enriched

Kagi as the backend for Hermes' web_search and web_extract, using Kagi's paid v1 Search and Extract APIs (premium results, markdown page extraction), plus a kagi_enriched_search tool that returns the enrichment data the standard search contract drops — infoboxes, adjacent questions, direct answers, related searches, interesting finds, and categorized news/images/videos/podcasts. Disclosure — sends search queries and the URLs passed to web_extract to kagi.com with your KAGI_API_KEY, and Kagi bills each call to your account; reads KAGI_API_KEY through Hermes' profile-scoped get_provider_env, never a .env file or another credential store. Registers one web provider and one tool, with no hooks, middleware, background processes, file writes, shell commands, telemetry, or self-updater, and no Python dependencies beyond Hermes (uses its httpx). Independent community plugin, not affiliated with Kagi. Registers the web provider name kagi, which the listed web-kagi entry also registers: install one or the other.

fastfingeWebv1.2.0Updated 1 hour ago

About

Kagi as the backend for Hermes' web_search and web_extract, using Kagi's paid v1 Search and Extract APIs (premium results, markdown page extraction), plus a kagi_enriched_search tool that returns the enrichment data the standard search contract drops — infoboxes, adjacent questions, direct answers, related searches, interesting finds, and categorized news/images/videos/podcasts. Disclosure — sends search queries and the URLs passed to web_extract to kagi.com with your KAGI_API_KEY, and Kagi bills each call to your account; reads KAGI_API_KEY through Hermes' profile-scoped get_provider_env, never a .env file or another credential store. Registers one web provider and one tool, with no hooks, middleware, background processes, file writes, shell commands, telemetry, or self-updater, and no Python dependencies beyond Hermes (uses its httpx). Independent community plugin, not affiliated with Kagi. Registers the web provider name kagi, which the listed web-kagi entry also registers: install one or the other.

hermes-kagi-plugin

Kagi web search, content extraction, and enriched search for Hermes Agent.

Catalog name: web-kagi-enriched (install with hermes plugins install web-kagi-enriched).

What it does

Replaces the default web_search and web_extract backends with Kagi — the search engine that actually respects its users. Plus a bonus kagi_enriched_search tool that exposes Kagi's full enrichment data (infoboxes, adjacent questions, interesting finds, related searches, etc.).

  • Search: web_search routes through Kagi's v1 search API
  • Extract: URL content extraction via Kagi's v1 extract API (reads full page content as markdown)
  • Enriched Search: kagi_enriched_search returns the full Kagi response with all special categories
  • No crawl support — Kagi doesn't expose a crawl endpoint

Why not the official Kagi MCP server?

The kagimcp server targets Kagi's v0 API, which requires a separate API key scope. This plugin targets the v1 API — the same key you already use for /api/v1/extract.

Prerequisites

  • Hermes Agent 0.18.0 or newer (the manifest declares requires_hermes: ">=0.18.0")
  • A Kagi API key with v1 access
  • httpx (already pulled in by Hermes — this plugin declares no dependencies of its own)

Hermes needs the plugin at load time. An older Hermes skips the plugin when the
manifest's floor does not match.

Installation

Option 1: From the Hermes plugin catalog (recommended)

hermes plugins install web-kagi-enriched

Option 2: Drop-in from git

cd ~/.hermes/plugins
git clone https://github.com/fastfinge/hermes-kagi-plugin.git web-kagi-enriched

Then enable it:

# ~/.hermes/config.yaml
plugins:
  enabled:
    - web-kagi-enriched

web:
  backend: "kagi"

Option 3: As a copied plugin directory

Copy the files to ~/.hermes/plugins/web-kagi-enriched/:

web-kagi-enriched/
├── plugin.yaml      # manifest
├── __init__.py      # registers the provider + enriched search tool
├── provider.py      # Kagi v1 API implementation (search + extract)
└── tools.py         # kagi_enriched_search tool

Set your API key:

# ~/.hermes/.env
KAGI_API_KEY=your-key-here

Reload Hermes.

Configuration

web:
  # Use Kagi for both search and extract
  backend: "kagi"

  # Or split them:
  search_backend: "kagi"
  extract_backend: "kagi"

The provider registers itself as web provider kagi. The existing catalog
entry web-kagi (a different implementation) registers the same provider name,
so install one or the other — with both installed, web.search_backend: kagi
is ambiguous and whichever plugin loads last wins.

Tools

kagi_enriched_search

A dedicated tool that surfaces all the enrichment data Kagi returns — stuff the standard Hermes web_search contract strips out.

Parameters:

ParameterTypeDefaultDescription
querystring(required)Search query
workflowstring"search"Type of results: search, images, videos, news, podcasts
limitinteger10Max results (1–100)
include_enrichmentbooleantrueInclude infoboxes, adjacent questions, interesting finds, related searches, direct answers

Response structure:

{
  "success": true,
  "query": "best programming language 2025",
  "workflow": "search",
  "web_results": [...],
  "images": [...],
  "videos": [...],
  "news": [...],
  "infobox": [...],
  "adjacent_questions": [...],
  "direct_answers": [...],
  "related_searches": [...],
  "interesting_finds": [...],
  "interesting_news": [...],
  "listicles": [...],
  "code_results": [...],
  "package_tracking": [...],
  "weather": [...],
  "web_archive": [...]
}

Only categories that actually have results are included. Empty categories are omitted.

Environment

VariableRequiredDescription
KAGI_API_KEYYesYour Kagi v1 API key

Both the provider and the tool resolve the key through
agent.web_search_provider.get_provider_env, which honours the active profile
under a multiplexing gateway — a profile without a Kagi key is refused, not
served another profile's. The plugin never reads .env files or any other
credential store directly.

Privacy and disclosures

  • Network: every web_search, web_extract and kagi_enriched_search call
    sends the query (or the URLs passed to web_extract) to https://kagi.com/api/v1
    with your KAGI_API_KEY as a bearer token, and Kagi bills the call to your
    account. Nothing else leaves the machine.
  • Credentials: KAGI_API_KEY only, resolved through Hermes' profile-scoped
    route (see Environment above). It is never logged, written or refreshed.
  • Not present: no files written, no shell commands, no background processes,
    no telemetry, no self-updater, no reads outside the plugin's own files, no extra
    tools or hooks beyond the two declared in plugin.yaml.
  • Not affiliated with Kagi.

Files

FilePurpose
provider.pyKagiWebSearchProvider — search + extract implementation
tools.pykagi_enriched_search tool with full enrichment data
__init__.pyPlugin entry point — registers provider + tool
plugin.yamlHermes plugin manifest (kind: backend)
CHANGELOG.mdVersion history

API coverage

EndpointHermes mappingStatus
POST /api/v1/searchweb_search✅ Working
POST /api/v1/searchkagi_enriched_search✅ Working
POST /api/v1/extractweb_extract✅ Working
POST /api/v0/summarize—❌ Not implemented (requires separate v0 key)

Known issues

  • Kagi's v1 search occasionally returns no results for broad queries; the plugin falls back through news → video → podcast → interesting finds → code categories when that happens.
  • Summarization is not supported because Kagi's Summarizer API is v0-only and requires a separate API key scope.
  • provider.py imports the private tools.interrupt.is_interrupted flag to bail
    out of a long extract. Hermes' bundled web providers do the same; there is no
    public plugin seam for it yet.

Credits

Written by Samuel Proulx, with help from Nous.

License

MIT — do whatever you want, just don't blame us if your API bill explodes.

README from the reviewed commit 0683974; it updates when the author re-pins.

More by fastfinge

3 plugins by fastfinge in the catalog.

fastfingehermes-xmpp-pluginXMPP/Jabber gateway platform: 1:1 DMs, MUC rooms, typing indicators, reactions, threaded replies, XEP-0004 data forms, ad-hoc commands, XEP-0363 file upload, voice notes and optional Jingle audio calls, with mandatory STARTTLS and OMEMO end-to-end encryption on by default. Disclosure — talks only to the XMPP server you configure (STARTTLS required; SRV or XMPP_HOST/XMPP_PORT), plus media downloads from upload hosts on that server's domain for voice notes (SSRF-guarded; XMPP_VOICE_TRUSTED_HOSTS widens or narrows the host list) and the STT/TTS providers Hermes is already configured with for voice notes and calls; sends message text, attachments and call audio. Calls are off by default: enabling them installs about 230 MB of packages once into $HERMES_HOME/environments/hermes-xmpp-calls and runs that environment's Python to locate its site-packages (the only subprocess the plugin spawns). Stores the OMEMO device key file (XMPP_OMEMO_STORAGE_PATH, default $HERMES_HOME/xmpp_omemo.json, mode 600, atomic writes behind a lock) and cached synthesized call audio under $HERMES_HOME/cache/xmpp-calls/. Messages sent by the running gateway are OMEMO-encrypted and fail closed: if encryption fails for an OMEMO contact the message is withheld and the failure reported (no silent plaintext downgrade) unless omemo.allow_plaintext_fallback is explicitly enabled; the one-shot sender behind hermes send and CLI cron delivery is TLS-only, because a second process advancing the double ratchets would break the live sessions. Only JIDs in XMPP_ALLOWED_USERS can DM the bot, and only XMPP_MUC_ALLOWED_USERS (default: the same list) can invoke it in rooms, with verified room identity required even when allow-all is on. The bot JID and password are read through Hermes's env/secret scope. No telemetry and no self-update.Communityplatform16fastfingehermes-session-reset-policyOpt-in idle/daily gateway conversation resets. Reads the existing session_reset block (mode idle | daily | both, idle_minutes, at_hour) and starts a fresh session on the first inbound message past the boundary. No timers, no background writes. Disclosure — on the first gateway message past the configured idle or daily boundary it starts a fresh session through the gateway's reset path; with session_reset.carry_over enabled (off by default), the first model call of the new session receives a short, redacted excerpt of the previous conversation in the same chat.Communityautomation11

Developer Mode

Explore built-in Hermes toolsets and actions.

HermesAgent

Developer?

Create a Hermes extension for Desktop or agent workflows.

Developer Section