Kimi Agent SDK
January 27, 2026 ยท View on GitHub
Kimi Agent SDK is a set of multi-language libraries that expose the Kimi Code (Kimi CLI) agent runtime in your applications. Use it to build products, automations, and custom tooling while keeping the CLI as the execution engine.
The SDKs are thin, language-native clients that reuse the same Kimi CLI configuration, tools, skills, and MCP servers. They stream responses in real time, surface approvals and tool calls, and let you orchestrate sessions programmatically.
Overview
Kimi Agent SDK provides a programmatic interface to interact with the Kimi CLI, enabling you to:
- Build custom applications - Integrate Kimi Agent into your own tools and workflows
- Automate tasks - Script complex multi-turn conversations
- Extend capabilities - Register custom tools that the model can call
- Handle approvals - Programmatically respond to permission requests
Available SDKs
| Language | Package | Status |
|---|---|---|
| Go | go/ | Available |
| Node.js | node/agent_sdk/ | Available |
| Python | python/ | Available |
Quick Start
Installation
# Go
go get github.com/MoonshotAI/kimi-agent-sdk/go
Go quick start: guides/go/quickstart.md
# Node.js
npm install @moonshot-ai/kimi-agent-sdk
Node.js quick start: node/agent_sdk/README.md#quick-start
# Python
pip install kimi-agent-sdk
Python quick start: guides/python/quickstart.md