@d3ara1n/pi-provider-zhipu-coding-plan
Zhipu AI Coding Plan provider for pi — auto-discovers models, reports usage quota
Package details
Install @d3ara1n/pi-provider-zhipu-coding-plan from npm and Pi will load the resources declared by the package manifest.
$ pi install npm:@d3ara1n/pi-provider-zhipu-coding-plan- Package
@d3ara1n/pi-provider-zhipu-coding-plan- Version
1.4.0- Published
- Jul 10, 2026
- Downloads
- 674/mo · 33/wk
- Author
- d3ara1n
- License
- MIT
- Types
- extension
- Size
- 8.6 KB
- Dependencies
- 1 dependency · 1 peer
Pi manifest JSON
{
"extensions": [
"./src/index.ts"
]
}Security note
Pi packages can execute code and influence agent behavior. Review the source before installing third-party packages.
README
@d3ara1n/pi-provider-zhipu-coding-plan
Zhipu AI Coding Plan provider for Pi Coding Agent — ships a static GLM model list and reports usage quota.
Features
- Usage quota reporting — displays token usage percentage and reset countdown in the status bar
- No manual config — reads API key from
~/.pi/agent/auth.json(set via/login)
Dependencies
None.
Installation
pi install npm:@d3ara1n/pi-provider-zhipu-coding-plan
Or add to ~/.pi/agent/settings.json:
{
"extensions": [
"/absolute/path/to/pi-extensions/packages/pi-provider-zhipu-coding-plan"
]
}
Also install the status bar display if you want quota visibility:
pi install npm:@d3ara1n/pi-usage-block
Setup
Use /login in Pi and select the zhipu-coding provider to store your API key.
Or manually add to ~/.pi/agent/auth.json:
{ "zhipu-coding": { "apiKey": "your-key-here" } }
Models
Supported models span the GLM-4.5 through GLM-5.2 series (text only). Model metadata (context window, max tokens, compatibility flags) is maintained statically in KNOWN_MODELS.
Usage Display
When paired with @d3ara1n/pi-usage-block, the status bar shows:
Zhipu Coding 🟢53% ↺3h34m
- 53% — token quota consumed (from the TOKENS_LIMIT API)
- 3h34m — time until quota resets
- 🟢/🟡/🔴 — green/yellow/red based on 70%/90% thresholds
Lite plan shows one window (5h). Pro plan may show two (5h + weekly).