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-multi-pass

v1.2.0

Published

Multi-subscription extension for pi -- use multiple OAuth accounts per provider (Anthropic, Codex, Copilot, Gemini, Antigravity)

Downloads

277

Readme

pi-multi-pass

Multi-subscription extension for pi -- use multiple OAuth accounts per provider with automatic rate-limit rotation and project-level affinity.

Install

pi install npm:pi-multi-pass

Or via git:

pi install git:github.com/hjanuschka/pi-multi-pass

Features

  • Multiple subscriptions: Add extra OAuth accounts for any provider
  • Rotation pools: Group subscriptions and auto-rotate on rate limits
  • Project affinity: Restrict which subs/pools are used per project
  • TUI management: /subs and /pool commands -- no config files needed
  • Labels: Tag subscriptions (e.g. "work", "personal")

Quick start

/subs add              Pick a provider, add a subscription
/login                 Authenticate the new subscription
/pool create           Group subs into a rotation pool

When one account hits a rate limit, multi-pass automatically switches to the next and retries.

Commands

/subs -- Subscription management

/subs              Open menu
/subs add          Add a new subscription
/subs remove       Remove a subscription
/subs login        Login to a subscription
/subs logout       Logout from a subscription
/subs list         List all subscriptions with auth status
/subs status       Detailed status (token expiry, pool membership)

/pool -- Rotation pool management

/pool              Open menu
/pool create       Create a pool (pick provider, select members)
/pool list         Show all pools
/pool toggle       Enable/disable a pool
/pool remove       Delete a pool (keeps subscriptions)
/pool status       Member health (logged in, rate limited, cooling down)
/pool project      Project-level config (restrict subs, override pools)

Project-level configuration

Use /pool project to configure per-project subscription affinity. This creates .pi/multi-pass.json in your project directory.

Use case: separate work and personal accounts

# Global: you have 3 Codex accounts
/subs add   -> openai-codex-2 (label: work)
/subs add   -> openai-codex-3 (label: personal)

# Corp project: restrict to team accounts only
cd ~/work/corp-project
/pool project -> restrict -> select openai-codex-2 only

# Side project: allow everything (no restriction)
cd ~/side-project
# No .pi/multi-pass.json needed -- uses all global subs

What project config can do

| Feature | Description | |---|---| | Restrict subs | Only allow specific subscriptions in this project | | Override pools | Use different pools than global (or disable some) | | Clear | Remove project config, fall back to global | | Info | Show effective config (which pools/subs are active) |

Project config file

.pi/multi-pass.json:

{
  "allowedSubs": ["openai-codex-2", "anthropic-2"],
  "pools": [
    {
      "name": "work-codex",
      "baseProvider": "openai-codex",
      "members": ["openai-codex-2"],
      "enabled": true
    }
  ]
}
  • allowedSubs: whitelist of provider names. If set, only these (plus originals) are available. Omit to allow all.
  • pools: if set, replaces global pools for this project. Omit to inherit global pools.

How pools work

  1. You're using openai-codex and hit a rate limit
  2. Multi-pass detects the error, marks openai-codex as exhausted
  3. Switches to openai-codex-2 (same model ID, different account)
  4. Retries your last prompt automatically
  5. After a 5-minute cooldown, openai-codex becomes available again

Supported providers

| Provider key | Service | |---|---| | anthropic | Claude Pro/Max | | openai-codex | ChatGPT Plus/Pro (Codex) | | github-copilot | GitHub Copilot | | google-gemini-cli | Google Cloud Code Assist | | google-antigravity | Antigravity |

Environment variable (optional)

export MULTI_SUB="openai-codex:2,anthropic:1"

Env entries merge with saved config.

Config files

| File | Scope | Contains | |---|---|---| | ~/.pi/agent/multi-pass.json | Global | Subscriptions + default pools | | .pi/multi-pass.json | Project | Pool overrides + sub restrictions |

License

MIT