@tejasa97/pi-cline-provider
Pi provider for Cline's model gateway — z-ai models (GLM 5.3 Flash, GLM 5.2, and more) by default, full catalog via CLINE_MODELS=all. Free-tier availability follows your Cline plan and may change.
Package details
Install @tejasa97/pi-cline-provider from npm and Pi will load the resources declared by the package manifest.
$ pi install npm:@tejasa97/pi-cline-provider- Package
@tejasa97/pi-cline-provider- Version
0.2.1- Published
- Sep 2, 2026
- Downloads
- 242/mo · 180/wk
- Author
- tejasa97
- License
- MIT
- Types
- extension
- Size
- 41.3 KB
- Dependencies
- 0 dependencies · 2 peers
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
@tejasa97/pi-cline-provider
Pi provider for Cline's model gateway — the z-ai/* models your Cline account can access (including GLM 5.3 Flash) by default, with the full Cline catalog (OpenAI, Anthropic, Google, Qwen, DeepSeek, and more) available via CLINE_MODELS=all.
Cline's API exposes one catalog to everyone; entitlements decide what actually runs. This extension defaults to the models that work on a standard Cline account today — currently Cline's free-tier lineup, which Cline can change at any time — and gracefully surfaces a "requires ClinePass" message for models gated behind the $9.99/mo subscription.
Install
pi install npm:@tejasa97/pi-cline-provider
Or from git:
pi install git:github.com/tejasa97/pi-cline-provider
Local clone:
pi install /absolute/path/to/pi-cline-provider
After install, add your preferred model to enabledModels in ~/.pi/agent/settings.json if you use that whitelist:
"cline/z-ai/glm-5.3-flash"
Usage
- Sign in with the Cline CLI:
cline auth - In Pi:
/login→ Cline (optional if CLI auth is already present) - Pick a model:
/model cline/z-ai/glm-5.3-flash
One-liner:
pi --model cline/z-ai/glm-5.3-flash
Model catalog
Default: only z-ai/* models are registered — the set that currently works without a subscription:
| 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 |
Full catalog: set CLINE_MODELS=all (env var or in ~/.pi/agent/settings.json under env) to register Cline's entire gateway catalog (~400 models: openai, anthropic, google, qwen, deepseek, minimax, …). Models your account isn't entitled to return a friendly ClinePass notice instead of a raw 403.
When authenticated, the catalog is refreshed dynamically from Cline's API; the table above is the offline fallback.
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(cline/clinefree/clinepassentries)
If you already use pi-clinepass-provider, your existing Cline CLI login works here too — no separate /login needed.
Testing
npm test
npm run test:e2e # requires pi + local install
Related
- Cline CLI —
clineprovider id matches this extension - pi-clinepass-provider — paid ClinePass
cline-pass/*catalog - @tejasa97/pi-agentrouter-provider — AgentRouter GLM/GPT/Opus models
- @tejasa97/pi-nous-portal-provider — Nous Research Portal
History
Published as @tejasa97/pi-cline-free-provider (≤0.1.1) when it exposed only free models; renamed in 0.2.0 to reflect the full-gateway scope. Provider id changed clinefree → cline; stored clinefree credentials are still honored.