Skip to main content
A Plugin is a reusable bundle of capabilities in Kimi Hosted Agents. Attaching a plugin to an agent gives it prepackaged tool connections and skills in one step, without configuring each item individually. Plugins include platform-maintained official plugins and project-owned custom plugins.
Official plugins are billed separately. For per-plugin pricing details, see Hosted Agents Pricing.
Plugins and MCP: When an MCP server bundled inside a plugin requires access credentials, inject them through a Vault; tool enablement and permission rules work the same way as for MCP servers declared directly on an agent. See MCP for details.

Official plugins vs. custom plugins

Official plugin catalog

The official plugin catalog displays published plugins only. Each plugin can contain: You can list published official plugins via the API. By default, the endpoint returns both official plugins and custom plugins in the current project; pass scope=official to return official plugins only. The examples below read your API key from the KIMI_API_KEY environment variable:
List responses are paginated: plugins are returned in items, and next_page_token is used to fetch the next page.

Create and manage custom plugins

You can create custom plugins via the kha CLI, console, or API. The examples below show both cURL and kha CLI commands for validating, creating, publishing versions, downloading, and archiving plugins; see kha CLI for CLI workflows and Console for console instructions.

Prepare the plugin package

The root directory of a plugin ZIP archive must contain a manifest file named kimi.plugin.json with the following top-level fields: interface must contain the following fields: When skills is used, you must also provide displayName and description for each skill keyed by skill directory name under interface.skillOverrides. When mcpServers is used, provide both fields keyed by MCP server key under interface.mcpOverrides. Text inside interface is written in defaultLocale, and you must also include a translation file for the other locale under locales/: zh-CN.json when defaultLocale is en-US, or en-US.json when defaultLocale is zh-CN. The localization file must translate both the main interface copy and all corresponding entries in skillOverrides and mcpOverrides. Plugin archives and projects are subject to the following limits:
  • ZIP archive size up to 64 MiB, uncompressed size up to 128 MiB, and up to 500 entries.
  • Up to 50 active custom plugins per project.
  • Retains the 20 most recent versions per plugin.

Validate and create a plugin

Call the validation endpoint first to check your plugin archive, then create the plugin and publish its initial version:
The validation endpoint returns a report without publishing the plugin. If validation fails, the HTTP status code is still 200, while report.ok in the response body is false—resolve each item in issues before creating the plugin.
The creation response contains plugin, version, and report. Save .plugin.id as PLUGIN_ID for subsequent commands. To list custom plugins in your current project, run:

Publish a new version

The version number is read directly from the version field in kimi.plugin.json rather than passed as a separate request parameter. After updating version and your archive contents, publish a new immutable version:
version must not have been published before; duplicate versions return 409 (conflict_error). The name in the new archive must match the existing plugin—renaming requires creating a new plugin. Each release produces an immutable version, and version lists are ordered by semantic version from newest to oldest. latest resolves to the highest published semantic version. Pre-release versions are excluded unless no stable release exists, in which case latest resolves to the highest pre-release version.

Download and archive

Download the archive for a specific plugin version:
Archive a custom plugin when it is no longer needed:
Once archived, the plugin disappears from list results, and endpoints for retrieving the plugin, its version list, or version content all return 404. Archived plugins cannot be used in new agent versions, and the plugin name becomes available for reuse.
Archived plugins are also filtered out at runtime, affecting existing agents even if they pinned an exact plugin version. Before archiving, review any agents that still need to run and confirm no active references remain.

Use plugins in an agent

Official agents: ready out of the box

Official agents provided by the platform (such as PPT Assistant) come preconfigured with the plugins they need—no setup is required. When you create a session directly with an official agent, the MCP servers and skills bundled in its plugins take effect automatically at runtime. Select an official agent and start a session in the Console to begin right away. For the PPT Assistant configuration, see Design a PPT Generation Agent.

Custom agents: reference by ID

Custom agents reference plugins by plugin_id in their plugins array. Official plugins must be currently published, and custom plugins must be created with at least one published version first. Referencing an official plugin requires only plugin_id; you cannot explicitly specify version. For custom plugins, version resolution works as follows:
  • Omit version: Pins the latest published version available when creating or updating the agent.
  • Specify an exact published version: Pins that version.
  • Pass latest: Leaves the version unpinned and re-resolves to the current latest version on each wakeup.
When you omit version or specify an exact version, the pinned version appears in the version field of the agent response; when you pass latest, "latest" is retained and re-resolved on every wakeup. You can select official plugins on the Agents form in the console, or include their plugin_id entries in plugins when creating or updating an agent via the API.
Some MCP servers bundled inside plugins require OAuth authorization or access credentials. Those credentials are not stored in the agent configuration—inject them at runtime via a Vault. See Vaults and MCP.

Version pinning for official plugins

Official plugin versions are maintained by the platform. Whenever a new agent version is created, the platform pins the official plugin version active at that time, so existing agents do not upgrade automatically; to adopt a newer official plugin version, update the agent and resubmit the plugin reference.

Use plugins in the console

In the console, you can browse official plugins, create custom plugins, and select plugins while creating or configuring an agent. For navigation paths and step-by-step instructions, see Console.

Next steps

Attach plugins to an agent

Create and update agents that reference plugins.

Manage plugin versions and archival

Publish, download, and archive custom plugins.

Manage plugin credentials

Store access credentials required by plugins and MCP servers.