pi-kilocode
Kilo Code provider extension for pi
Package details
Install pi-kilocode from npm and Pi will load the resources declared by the package manifest.
$ pi install npm:pi-kilocode- Package
pi-kilocode- Version
0.1.2- Published
- Apr 12, 2026
- Downloads
- 284/mo · 32/wk
- Author
- sudosubin
- License
- MIT
- Types
- extension
- Size
- 17.1 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
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 all text-capable models from the Kilo catalog
- Supports anonymous usage for free models and browser-based Kilo login
Installation
pi install npm:pi-kilocode
Authentication
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
- 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