pi-kilocode
v0.1.1
Published
Kilo Code provider extension for pi
Maintainers
Readme
pi-kilocode
Kilo Code provider extension for pi.
Use Kilo Code's gateway directly from pi through Kilo's OpenAI-compatible API and device-auth login flow. pi-kilocode is a thin provider wrapper around pi's built-in openai-completions stack:
- Uses Kilo Gateway's OpenAI-compatible endpoint
- Fetches the Kilo model catalog from
https://api.kilo.ai/api/gateway/models - Caches the raw model response on disk
- Registers free text-capable models only
- Supports anonymous usage for free models and browser-based Kilo login
Installation
pi install npm:pi-kilocodeAuthentication
Anonymous usage
No login is required for Kilo's free models.
Browser login
- Open pi and enter
/login. - Select Kilo Code from the provider list.
- A browser window will open to Kilo's verification page.
- Enter the device code shown by pi and complete login.
- If your account has organizations, pi will let you choose one.
When an organization is selected, pi-kilocode sends it as X-KiloCode-OrganizationId on Kilo model requests.
Anonymous access and limits
According to Kilo's public gateway documentation and behavior:
- Anonymous access is available for free models
- Anonymous usage is limited to free models only
- Anonymous usage is rate-limited to about 200 requests/hour per IP
Current limitations
- Only free models are currently registered in pi
- Paid models are not currently exposed in the
/modellist - Image-output-only models are intentionally hidden
Requirements
pi >= 0.49.0- A Kilo Code account if you want to use
/login - Network access to
https://api.kilo.ai
License
MIT
