# 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

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

## Usage

Keep provider call starts at least five seconds apart:

```text
/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:

```text
/throttle 0
```

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