← Catalog

pi-keln-provider

Keln provider for pi: open models through Keln's OpenAI-compatible API, with the live model catalog.

ExtensionProvider

Install

Install with PiG

pig install npm:pi-keln-provider

Install with Pi

pi install npm:pi-keln-provider
Review before installing

Packages run code with your permissions and influence agent behavior. Catalog inclusion is not a security audit. Review the source before installing a third-party package.

Pi manifest JSON

The pi field of package.json.

{
  "extensions": [
    "./index.ts"
  ]
}

README

Written by the package's publisher, shown as published in version 1.0.0 (README.md). PiG does not review it.

Keln for pi

Use Keln models in pi through Keln's OpenAI-compatible API at https://api.keln.ai/v1.

Keln is an inference platform for open models. Keln maintains this package. It is not affiliated with pi or Earendil.

Install

pi install npm:pi-keln-provider

Configure

  1. Sign up at app.keln.ai. Open Keys → Create key and copy the key.
  2. Set KELN_API_KEY in your environment, or run /login in pi and choose Keln.
  3. Run /model and pick a Keln model, for example keln/zai-org/glm-5.3.

Models

The package reads Keln's live catalog from https://api.keln.ai/v1/models at startup and on model refresh, so the list, context windows, image input, prices and thinking levels always match Keln. Models that don't write text, such as decision, embedding and reranker models, are left out.

  • Thinking: /thinking offers the levels each model publishes. off is available on models that can turn reasoning off.
  • Output: pi asks for up to 32,768 output tokens by default. The limit covers reasoning and the answer together, and prompt plus output must fit the model's context window.

Prices are on Models & pricing.

Security and footprint

  • Network: pi sends your requests, including prompts, images and tool definitions, to https://api.keln.ai using your Keln key. See Privacy & zero data retention.
  • Code: one extension file that registers the keln provider and reads the public model catalog. It has no runtime dependencies and sends no telemetry.

Remove

pi remove npm:pi-keln-provider

License

MIT