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.
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
| Language | Package | Status |
|---|---|---|
| Go | go/ | Available |
| Node.js | node/agent_sdk/ | Available |
| Python | python/ | Available |
# Go
go get github.com/MoonshotAI/kimi-agent-sdk/goGo quick start: guides/go/quickstart.md
# Node.js
npm install @moonshot-ai/kimi-agent-sdkNode.js quick start: node/agent_sdk/README.md#quick-start
# Python
pip install kimi-agent-sdkPython quick start: guides/python/quickstart.md
- Go: examples/go/ralph-loop, examples/go/rumor-buster
- Python: examples/python/customized-tools, examples/python/kaos (KAOS sandbox backends: run the same agent tools in BoxLite, E2B, or Sprites)