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

cpa-provider

v0.2.3

Published

CLIProxyAPI provider extension for pi with automatic model discovery

Readme

cpa-provider

CLIProxyAPI provider extension for pi.

The extension reads the OpenAI-compatible /v1/models endpoint, registers the returned models in pi, and enriches known model IDs with context limits, reasoning support, image input, and output limits from pi's bundled model catalog.

Install

pi install npm:cpa-provider

Git installs are also supported:

pi install https://github.com/gcoder1991/cpa-provider

Restart pi, then configure the provider:

/login cpa

Enter the API key configured in CLIProxyAPI. Use /model to select a discovered model.

Configuration

The default CLIProxyAPI endpoint is:

http://127.0.0.1:8317

Override it before starting pi:

CPA_BASE_URL=http://127.0.0.1:8317 pi

For non-interactive authentication:

CPA_API_KEY=your-api-key pi

Both variables can be used together:

CPA_BASE_URL=https://cpa.example.com CPA_API_KEY=your-api-key pi

Fast mode

Toggle OpenAI Fast mode for CPA requests:

/cpa-fast on
/cpa-fast off
/cpa-fast status
/cpa-info

To enable it at startup:

CPA_FAST_MODE=1 pi

Fast mode sends service_tier: "priority", the backward-compatible name for OpenAI Fast mode. OpenAI/Codex text models use /v1/responses; other discovered models keep /v1/chat/completions.

Model metadata

/v1/models normally returns model IDs but not capability metadata. Known IDs are matched against the model catalog bundled with pi, without additional network requests, for:

  • context window
  • maximum output tokens
  • reasoning support
  • image input support
  • pricing metadata

Unknown IDs remain available with conservative defaults: 128K context, 16K maximum output, text-only input, and reasoning disabled.

Update

pi update --extensions

Remove

pi remove npm:cpa-provider