@bramgeron/pi-kagi

Pi extension for Kagi web search and URL extraction

Packages

Package details

extension

Install @bramgeron/pi-kagi from npm and Pi will load the resources declared by the package manifest.

$ pi install npm:@bramgeron/pi-kagi
Package
@bramgeron/pi-kagi
Version
0.1.0
Published
May 25, 2026
Downloads
163/mo · 6/wk
Author
bramgeron
License
MIT OR Apache-2.0
Types
extension
Size
21.5 KB
Dependencies
0 dependencies · 3 peers
Pi manifest JSON
{
  "extensions": [
    "./index.ts"
  ]
}

Security note

Pi packages can execute code and influence agent behavior. Review the source before installing third-party packages.

README

@bramgeron/pi-kagi

Install from npm after release:

pi install npm:@bramgeron/pi-kagi

Tools to query the Kagi search engine:

  • kagi_search — search the web with Kagi.
  • kagi_extract — extract readable markdown from URLs with Kagi.

By default, the extension keeps the API key only in memory and asks once per Pi instance. You can run /kagi-load-key to enter it up front, or /kagi-persist-key to persist a loaded key globally.

Commands:

  • /kagi-load-key — prompt for a Kagi API key and load it in memory for this Pi process.
  • /kagi-key-status — show whether a Kagi API key is loaded in memory or persisted in Pi settings.
  • /kagi-persist-key — persist the currently loaded in-memory key to Pi's global settings.
  • /kagi-clear-key — forget the in-memory key and remove any persisted key from Pi settings.

Run pi with the development version from the subdirectory:

pi -e ./pi-kagi

Useful links: