Install
Install with PiG
pig install npm:@firespoon/pi-tierInstall with Pi
pi install npm:@firespoon/pi-tierPackages run code with your permissions and influence agent behavior. Catalog inclusion is not a security audit. Review the source before installing a third-party package.
Pi manifest JSON
The pi field of package.json.
{
"extensions": [
"./extensions/tier.ts"
]
}README
Written by the package's publisher, shown as published in version 0.1.1 (README.md). PiG does not review it.
Pi Tier
Set a service tier for the current Pi session and check which tier the current model's upstream endpoint reports. Requires Pi 1.6 or later.
pi install npm:@firespoon/pi-tier
| Command | Effect |
|---|---|
/tier | Show the selection, current model, and latest upstream result for that route. |
/tier standard | Request default. |
/tier fast | Request priority. |
/tier ultrafast | Request ultrafast. |
The extension starts in inherited mode. Once you select a tier, it applies to subsequent requests in the session on allowed providers using openai-responses or openai-codex-responses. A new session or extension reload clears the selection.
Provider allowlist
The default provider IDs are openai and openai-codex. To configure the full allowlist, add pi-tier.json to your Pi agent directory (~/.pi/agent by default), then run /reload.
{
"providers": ["openai", "openai-codex", "my-proxy"]
}
Use the provider ID shown before / in the model name. The file replaces the default list, and an empty list disables tier injection. An invalid file disables tier injection and shows a configuration message in /tier. A proxy configured under the openai ID is already covered by the default list.
Run /tier again after a normal model response to check the result. The extension uses the server's service_tier from the final response event to confirm a tier or report a different one. A completed response without that field leaves the tier unconfirmed. A tier-specific error is shown as a rejection. Checking the status itself sends no model request.
Fast and Ultrafast can affect API prices or subscription usage. The upstream endpoint, provider, and account determine which tiers are available.
Pi applies request changes in extension load order. If you use another extension that sets service_tier, put Pi Tier after it in your Pi package order so an explicit /tier choice takes precedence.