Kimi AI and Kimi Code Integration for Openclaw

Connect Moonshot AI and Kimi Code models to Clawdbot for high-context AI assistance and specialized code generation.

evgyur
v1.0.0
Jan 28, 2026
5
4.5k
0

Install & Download

1. ClawHub CLI

The fastest way to install a skill directly from the registry.

npx clawhub@latest install kimi-integration

2. Manual Installation

Copy the skill folder to one of these locations

Global
~/.openclaw/skills/
Workspace
<project>/skills/

Priority: Workspace > Local > Bundled

3. Prompt Installation

Copy this prompt to OpenClaw to install it automatically.

Help me install kimi-integration using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).

Prefer to download?

Get the raw skill files in a ZIP archive.

What is Kimi AI and Kimi Code Integration?

The Kimi Integration skill allows developers to seamlessly incorporate Moonshot AI and Kimi Code models into their local AI agent ecosystem. By leveraging this integration, users can access powerful LLMs known for their massive 200,000-token context windows and specialized performance in programming tasks. This Openclaw Skills setup ensures that your coding agent can handle large-scale file analysis and complex refactoring with ease by bridging the gap between Moonshot's infrastructure and your local workspace.

Kimi AI and Kimi Code Integration Use Cases

  • Analyzing massive codebases that require a 200K token context window.
  • Utilizing the specialized Kimi Code model for high-precision code generation and debugging.
  • Consolidating multiple LLM providers under a single Openclaw Skills managed interface.
  • Switching between general-purpose reasoning (Kimi K2.5) and specialized coding models via simple aliases.

How Kimi AI and Kimi Code Integration Works

  1. Retrieve API keys from the Moonshot AI platform and the dedicated Kimi Code portal.
  2. Configure your local environment variables to securely store the authentication credentials.
  3. Define the provider settings in your configuration file, specifying the base URLs and model IDs.
  4. Restart the agent gateway to initialize the connection to Moonshot's OpenAI-compatible endpoints.
  5. Verify the model availability and set up aliases for rapid switching during active development sessions.

Kimi AI and Kimi Code Integration Setup

First, export your API keys as environment variables:

export MOONSHOT_API_KEY="sk-your-moonshot-key"
export KIMICODE_API_KEY="sk-your-kimicode-key"

Update your clawdbot.json configuration to include the Kimi providers:

{
  "models": {
    "providers": {
      "moonshot": {
        "baseUrl": "https://api.moonshot.cn/v1",
        "apiKey": "${MOONSHOT_API_KEY}",
        "api": "openai-completions",
        "models": [{ "id": "kimi-k2.5", "name": "Kimi K2.5", "contextWindow": 200000 }]
      }
    }
  }
}

Finally, restart the gateway to apply changes within the Openclaw Skills framework:

clawdbot gateway restart
clawdbot models list

Kimi AI and Kimi Code Integration Data Schema & Taxonomy

Element Attribute Description
Provider baseUrl The specific API endpoint (Moonshot or Kimi Code)
Model id The unique identifier for the model version (e.g., kimi-k2.5)
Model contextWindow The token limit supported by the model (up to 200,000)
Agent alias A short name for easy model switching (e.g., 'kimi')

Kimi AI and Kimi Code Integration Advanced Features

  • Support for multi-provider orchestration, allowing simultaneous use of Kimi general and coding models.
  • Custom aliasing for quick model selection via CLI commands like /model k25.
  • Seamless integration with OpenAI-compatible completion APIs for maximum tool compatibility.
  • Robust troubleshooting workflows for verifying API connectivity and configuration syntax within the Openclaw Skills ecosystem.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Github Stars: 0
forks: 0

Featured*