@tejasa97/pi-cline-free-provider0.2.0
Pi provider for Cline's z-ai gateway models via the Cline CLI (GLM 5.3 Flash, GLM 5.2, and the full z-ai catalog — free tier today, may change)
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
@tejasa97/pi-cline-free-provider
⚠️ Superseded — this package has been renamed to
@tejasa97/pi-cline-provider(full Cline catalog, provider idcline). Install that instead.
Pi provider for Cline's z-ai/* gateway models — GLM 5.3 Flash, GLM 5.2, and the rest of the z-ai catalog that your Cline account can access — through the same Cline API the CLI uses.
Model availability and pricing follow your Cline plan: some models (currently GLM 5.3 Flash and friends) sit on Cline's free tier today, but that's Cline's call and can change at any time. This package doesn't hardcode "free" — it exposes whatever z-ai/* models Cline offers your account, discovered dynamically at runtime.
This complements pi-clinepass-provider, which exposes paid ClinePass cline-pass/* models.
Install
pi install npm:@tejasa97/pi-cline-free-provider
Or from git:
pi install git:github.com/tejasa97/pi-cline-free-provider
Local clone:
pi install /absolute/path/to/pi-cline-free-provider
After install, add your preferred model to enabledModels in ~/.pi/agent/settings.json if you use that whitelist:
"clinefree/z-ai/glm-5.3-flash"
Usage
- Sign in with the Cline CLI:
cline auth - In Pi:
/login→ Cline Free (optional if CLI auth is already present) - Pick a model:
/model clinefree/z-ai/glm-5.3-flash
One-liner:
pi --model clinefree/z-ai/glm-5.3-flash
Auth
The provider reuses credentials from, in order:
CLINE_API_KEYenv var- Cline CLI
~/.cline/data/settings/providers.json(fromcline auth) - Pi
~/.pi/agent/auth.json(clinefreeorclinepassOAuth)
If you already use pi-clinepass-provider, your existing Cline CLI login works here too.
Static fallback models
When /api/v1/models is unavailable, these are registered:
| Model ID | Name |
|---|---|
z-ai/glm-5.3-flash |
GLM 5.3 Flash |
z-ai/glm-5.2:free |
GLM 5.2 |
z-ai/glm-4.7-flash |
GLM 4.7 Flash |
When authenticated, the extension dynamically discovers all z-ai/* models from Cline's API (excluding batch and alias entries) — so the list tracks whatever Cline currently offers rather than what used to be free.
Testing
npm test
npm run test:e2e # requires pi + local install
Related
- Cline CLI
@tejasa97/pi-cline-provider— the renamed successor with the full Cline catalog- pi-clinepass-provider — paid ClinePass
cline-pass/*catalog