npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

pi-exa-rotate

v1.0.0

Published

Exa API key rotation and usage tracking for Pi coding agent

Downloads

35

Readme

pi-exa-rotate

Exa API key rotation and usage tracking for Pi coding agent.

Automatically rotates between multiple Exa API keys when quotas are exhausted. Tracks usage per key and provides commands to manage keys.

Features

  • Automatic rotation — switches keys when one exhausts (1,000/month limit)
  • Usage tracking — monitors requests per key, resets monthly
  • Status display — shows usage in footer status bar
  • Key management — commands to list, add, remove keys
  • Fallback support — works alongside Gemini Web fallback

Install

pi install npm:pi-exa-rotate

Setup

1. Create keys file

Create ~/.pi/exa-keys.json:

{
  "keys": [
    "exa-YOUR_FIRST_KEY",
    "exa-YOUR_SECOND_KEY",
    "exa-YOUR_THIRD_KEY"
  ],
  "currentIndex": 0
}

2. Get Exa API keys

  1. Go to exa.ai
  2. Create account (get $10 free credits + 1,000 requests/month)
  3. Get API key at exa.ai/settings/api-keys
  4. Repeat for additional accounts

3. Reload Pi

/reload

Commands

| Command | Description | |---------|-------------| | /exa-keys list | List all configured keys | | /exa-keys add <key> | Add a new key | | /exa-keys remove <index> | Remove a key by index | | /exa-keys current | Show active key and usage | | /exa-status | Show detailed usage status |

How It Works

  1. Tracks usage in ~/.pi/exa-usage.json
  2. When count reaches 1,000 (monthly limit), rotates to next key
  3. Resets counter for new key
  4. Shows status in footer: Exa: 45/1000 (955 left)

Quota Math

| Accounts | Free Tier | Credits | Total/Month | |----------|-----------|---------|-------------| | 1 | 1,000 | $10 (~1,400) | ~2,400 | | 2 | 2,000 | $20 (~2,800) | ~4,800 | | 3 | 3,000 | $30 (~4,200) | ~7,200 |

Config

Your ~/.pi/web-search.json should have:

{
  "provider": "exa",
  "exaApiKey": "exa-CURRENT_KEY"
}

The extension automatically updates exaApiKey when rotating.

License

MIT