Cline has usually a bunch of free models available that stay usable for some time.
pi-cline-free-models enables you to make use of those models. It acts as a provider extension for Pi, giving you instant access to models like Kimi K2.5, MiniMax and others as long as they stay available. The extension automatically fetches the latest model list on startup. Means if models are not supported anymore, you will notice. OAuth handshake with Cline is handled securely and seamlessly via SSO, just use your desired way of logging in with their platform (Google, Github, Microsoft).
Install directly via pi:
pi install npm:pi-cline-free-modelsIf you already have this extension installed, update and reload Pi:
pi install npm:pi-cline-free-modelsThen run /reload (or restart Pi).
Most users do not need to re-authenticate after updating. If you still get 403 access forbidden, run /logout for Cline and then /login again.
Once installed, the models might not right away appear in your Pi model selector under the Cline provider.
If so, authenticate first. Every other time the models will be found via /scoped-models.
- Use
/loginand pick "Cline" as provider - You will be redirected to the website of Cline
- Log in with your desired SSO method
- Close the tab after authentication
- Pi is now authorized to generate text
If you're running Pi on a remote server (e.g., VPS via SSH), the local callback won't work automatically. Follow these steps:
- Copy the auth URL shown in Pi and open it in a browser on your local machine
- Complete the login with your desired SSO method
- The browser will fail to connect to
localhost(this is expected - the callback only works on the same machine) - Copy the callback URL from the URL bar:
http://127.0.0.1:31234/auth?code=XXX&provider=... - Paste the full callback URL into Pi when prompted (preferred).
- Pasting only
XXXstill works in most cases.
- Pasting only
- Pi is now authorized to generate text
The extension checks for new models every time Pi starts a new session. If Cline adds a new free model to their list, it will automatically appear in your selector the next time you start Pi or use /reload.
- Update extension and run
/reload - Ensure a Cline model is selected
- If it still fails, run
/logout(Cline) and/loginagain - For remote/SSH auth, paste the full callback URL (including
provider=...) when prompted
No VS Code extension run is required for normal usage.
- Clone this repository.
- Install dependencies:
npm install
- Install locally for development:
pi install .
MIT
