@rbwsam/pi-exa

Pi extension integrating the Exa API for web search and content retrieval

Package details

extension

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

$ pi install npm:@rbwsam/pi-exa
Package
@rbwsam/pi-exa
Version
1.0.0
Published
Apr 3, 2026
Downloads
83/mo · 11/wk
Author
rbwsam
License
MIT
Types
extension
Size
12.7 KB
Dependencies
2 dependencies · 2 peers
Pi manifest JSON
{
  "extensions": [
    "./src/index.ts"
  ]
}

Security note

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

README

pi-exa

A minimal Pi extension integrating the Exa API for web search and content retrieval.

Features

  • Web search with optional content extraction
  • Retrieve text from specific URLs
  • Find similar pages based on a URL
  • Secure API key management

Installation

From npm (recommended)

pi install npm:@rbwsam/pi-exa

Or try without installing:

pi -e npm:@rbwsam/pi-exa

From source

git clone https://github.com/rbwsam/pi-exa ~/.pi/agent/extensions/exa
cd ~/.pi/agent/extensions/exa
npm install

Configure API key

Once installed, run the configuration command:

/exa-config

Enter your Exa API key when prompted. Your API key will be saved to ~/.pi/config/exa-api-key with restricted file permissions (mode 0600).

Usage

Once configured, Pi can search the web and access current information. Just ask naturally:

  • "Search for recent AI developments"
  • "What's the latest news on quantum computing?"
  • "Get the full text from this URL"
  • "Find similar pages to this GitHub repository"

Pi automatically uses the following tools when appropriate:

No commands needed—just ask naturally.

Development

npm run check  # Type check TypeScript

Dependencies:

  • exa-js - Exa API client
  • @sinclair/typebox - Type validation
  • @mariozechner/pi-tui - Pi TUI components

Dev Dependencies:

  • typescript - Type checking
  • @types/node - Node.js type definitions

Troubleshooting

API key not configured: Run /exa-config to set your API key.

Search failed: Verify your API key is valid and has quota remaining at exa.ai.

License

MIT

References