Skip to main content

Kimi Code

Libre WebUI includes a bundled Kimi Code provider plugin for Moonshot AI's OpenAI-compatible coding API.

Configure the Provider

Create an API key in the Kimi Code Console, then save it for your user in Settings > Plugins > Kimi Code (Moonshot AI) or provide it as a deployment-wide environment variable:

KIMI_API_KEY=...

Activate the plugin after saving the credential. Its models then appear in the model selector.

Available Models

Model IDModelAvailability
k3Kimi K3Moderato and above; context depends on membership tier
kimi-for-codingKimi K2.7 CodeAll Kimi Code members
kimi-for-coding-highspeedKimi K2.7 Code HighSpeedAllegretto and above; higher speed and greater quota use

Kimi documents K3 as supporting up to a one-million-token context window for eligible membership tiers. Libre WebUI leaves K3's reasoning effort unset so the Kimi API applies its documented default, currently max.

API Endpoint

The bundled plugin uses Kimi Code's OpenAI-compatible endpoint:

https://api.kimi.com/coding/v1/chat/completions

The endpoint can be overridden in the plugin variables for compatible gateways or proxies. Remote overrides must use HTTPS.

Privacy and Usage

Kimi Code is a remote provider. Prompts, conversation context, and attached content sent through this plugin are processed by Kimi under its terms and privacy policy. Use per-user credentials on shared deployments so each person controls their own account, quota, and billing.

Kimi asks third-party clients to preserve their real client identity. Do not configure a proxy to impersonate another product or alter client identification to obtain different access.

Troubleshooting

Unauthorized or HTTP 401

  • Confirm the API key is from the Kimi Code Console.
  • Confirm the selected model is included in your membership tier.
  • K3 requires Moderato or above, and HighSpeed requires Allegretto or above.

K3 context is smaller than expected

  • K3 context limits depend on membership.
  • Moderato supports a smaller K3 context than Allegretto and higher tiers.
  • Start a new chat after switching model families to avoid reusing an incompatible context cache.

The model does not appear

  • Activate the Kimi Code plugin.
  • Confirm the API key is saved for the current user or available as KIMI_API_KEY.
  • Reload the model list after changing plugin settings.