pi-throttle

Enforce a configurable interval between Pi provider calls to reduce request bursts and avoid rate limits.

Packages

Package details

extension

Install pi-throttle from npm and Pi will load the resources declared by the package manifest.

$ pi install npm:pi-throttle
Package
pi-throttle
Version
0.1.3
Published
Aug 12, 2026
Downloads
162/mo · 11/wk
Author
israrwz
License
MIT
Types
extension
Size
8 KB
Dependencies
0 dependencies · 2 peers
Pi manifest JSON
{
  "extensions": [
    "./extensions/pi-throttle.ts"
  ]
}

Security note

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

README

pi-throttle

A small Pi extension that enforces a minimum interval between outbound LLM provider calls. Use it to reduce request bursts and help avoid provider rate limits.

Install

pi install git:github.com/israrwz/pi-throttle

Usage

Keep provider call starts at least five seconds apart:

/throttle 5

Elapsed time counts toward the interval. With /throttle 10, if a tool takes three seconds, the next call waits seven seconds. If ten seconds have already elapsed, it starts immediately.

While throttled, Pi shows ...Waiting; it returns to Working... when the provider call starts. When enabled, the throttle interval appears at the top right of Pi's working-directory footer row.

Decimals are supported, such as /throttle 1.5. Disable throttling with:

/throttle 0

The setting applies to the current Pi runtime. It does not track provider quotas or Retry-After headers.