pi-faster0.2.0
pi extension: /fast toggles provider fast mode (Anthropic speed, OpenAI priority, Gemini/Vertex priority)
Untested on omp
This is a pi package. No one has reported whether it works on omp yet. If you try it, add your result below.
Reports 0
No reports yet.
Readme

A pi extension that adds /fast: one toggle for provider fast mode (priority service tiers) on Anthropic, OpenAI, Gemini and Vertex AI. Roughly 2x faster output, at a higher price.
It only changes requests for models known to support fast mode. For any other model, /fast on does nothing.
Install
pi install npm:pi-faster
Why use it
- One command,
/fast, for fast mode across Anthropic, OpenAI, Gemini and Vertex AI. - Roughly 2x faster output, at a higher price.
- Only touches requests for models known to support fast mode; other models are left alone.
- Pauses itself for 10 minutes after a rate-limit or billing failure, so retries run at normal speed.
- Rules live in an editable
fast-config.json.
How to use
/fast toggle
/fast on
/fast off
/fast status
Off by default. The setting is saved in ~/.pi/agent/pi-faster.json (or $PI_CODING_AGENT_DIR).
If pi-faster is enabled in Subagent Manager's Enabled extensions, /fast on and /fast off in the main session also apply to the next eligible requests from already-running subagents in the same Pi process. Requests already sent aren't changed.
The footer shows ↯ fast when fast mode is on and the current model supports it, and fast: paused while it is paused after a failed request (see below). Otherwise it shows nothing.
What it sends
| Provider | Added to the request | Models |
|---|---|---|
| Anthropic | speed: "fast" (plus beta fast-mode-2026-02-01 on claude-opus-5) |
claude-opus-5, claude-opus-5-5, claude-fable-5-2, claude-mythos-5-2 |
| OpenAI, Azure, Codex | service_tier: "priority" |
GPT, o-series, codex |
| Gemini API | config.serviceTier: "priority" |
gemini-* |
| Vertex AI | header X-Vertex-AI-LLM-Shared-Request-Type: priority |
gemini-* |
Anything not listed (including Bedrock) is left alone. Values already set on a request are never overridden.
The exact rules live in fast-config.json, which ships with the extension. Each rule matches on API, provider and model regex, and lists what to inject. The first match wins. Edit it to add models.
Warnings
/fast onsays fast mode is on and costs more. On a model without fast mode it says so and suggests switching. Switching to a supported model while on repeats the cost note.- Toggling warns that the prompt cache will be missed once, if context is above 10k tokens (
cacheWarnTokensin the config). - If a fast request fails with 402, 403, 429 or 529, fast mode pauses for 10 minutes so retries run at normal speed.
/fastclears the pause.
Caveats
- Fast mode costs more (about 2x on OpenAI and Gemini, premium rates on Anthropic). pi's cost display may still show the standard rate.
- Not implemented on purpose: OpenAI "ultrafast", Anthropic's legacy Priority Tier, Bedrock.
Development
npm install
npm run check
npm run build # emits dist/
npm test
License
MIT
Check out my other Pi extensions
— Dedicated tmux background job monitoring.
— Real-time prompt cache hit rates and token metrics.
— Session task checklist with dependencies and a TUI renderer.
— Selects relevant skills and optionally filters tools for each task.
— Prunes verbose tool outputs from context while preserving history.
— Dot-grid visualization of context window token usage.
— Toggle provider fast mode (priority tier) with
/fast.— Live tokens/sec and TTFT in the status bar.
— Delegate work to parallel subagents and monitor their progress.