kimi-code 1.50.0__tar.gz → 1.52.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- kimi_code-1.52.0/PKG-INFO +39 -0
- kimi_code-1.52.0/README.md +28 -0
- kimi_code-1.52.0/pyproject.toml +23 -0
- kimi_code-1.52.0/src/kimi_code/__init__.py +29 -0
- kimi_code-1.50.0/PKG-INFO +0 -185
- kimi_code-1.50.0/README.md +0 -177
- kimi_code-1.50.0/pyproject.toml +0 -17
- kimi_code-1.50.0/src/kimi_code/__init__.py +0 -7
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
Metadata-Version: 2.3
|
|
2
|
+
Name: kimi-code
|
|
3
|
+
Version: 1.52.0
|
|
4
|
+
Summary: [Archived] Legacy PyPI package, NOT the new Kimi Code CLI. Install Kimi Code CLI from https://github.com/MoonshotAI/kimi-code
|
|
5
|
+
Classifier: Development Status :: 7 - Inactive
|
|
6
|
+
Requires-Python: >=3.12
|
|
7
|
+
Project-URL: Kimi Code CLI, https://github.com/MoonshotAI/kimi-code
|
|
8
|
+
Project-URL: Migration Guide, https://moonshotai.github.io/kimi-code/en/guides/migration
|
|
9
|
+
Project-URL: Source, https://github.com/MoonshotAI/kimi-cli
|
|
10
|
+
Description-Content-Type: text/markdown
|
|
11
|
+
|
|
12
|
+
# kimi-code (PyPI): legacy package, archived
|
|
13
|
+
|
|
14
|
+
> [!CAUTION]
|
|
15
|
+
> **This PyPI package is NOT the new Kimi Code CLI.** It is a legacy alias of the archived Python [Kimi CLI](https://github.com/MoonshotAI/kimi-cli) and is no longer maintained.
|
|
16
|
+
>
|
|
17
|
+
> PyPI 上的 `kimi-code` 是已归档的旧版 Python Kimi CLI 的别名包,**不是**新版 Kimi Code CLI。
|
|
18
|
+
|
|
19
|
+
## Install the new Kimi Code CLI
|
|
20
|
+
|
|
21
|
+
```sh
|
|
22
|
+
# macOS / Linux
|
|
23
|
+
curl -fsSL https://code.kimi.com/kimi-code/install.sh | bash
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
```powershell
|
|
27
|
+
# Windows (PowerShell)
|
|
28
|
+
irm https://code.kimi.com/kimi-code/install.ps1 | iex
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
Also available via Homebrew (`brew install kimi-code`) and npm (`npm install -g @moonshot-ai/kimi-code`).
|
|
32
|
+
|
|
33
|
+
Then uninstall this package: `uv tool uninstall kimi-code` (or `pip uninstall kimi-code kimi-cli`, since pip does not remove the legacy `kimi-cli` dependency automatically).
|
|
34
|
+
|
|
35
|
+
Migration guide: [English](https://moonshotai.github.io/kimi-code/en/guides/migration) | [中文](https://moonshotai.github.io/kimi-code/zh/guides/migration)
|
|
36
|
+
|
|
37
|
+
## Note for existing users
|
|
38
|
+
|
|
39
|
+
Starting from 1.51.0, running `kimi-code` from this package only prints the instructions above. The legacy CLI it used to install is no longer supported and will stop working, so please migrate to Kimi Code CLI.
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
# kimi-code (PyPI): legacy package, archived
|
|
2
|
+
|
|
3
|
+
> [!CAUTION]
|
|
4
|
+
> **This PyPI package is NOT the new Kimi Code CLI.** It is a legacy alias of the archived Python [Kimi CLI](https://github.com/MoonshotAI/kimi-cli) and is no longer maintained.
|
|
5
|
+
>
|
|
6
|
+
> PyPI 上的 `kimi-code` 是已归档的旧版 Python Kimi CLI 的别名包,**不是**新版 Kimi Code CLI。
|
|
7
|
+
|
|
8
|
+
## Install the new Kimi Code CLI
|
|
9
|
+
|
|
10
|
+
```sh
|
|
11
|
+
# macOS / Linux
|
|
12
|
+
curl -fsSL https://code.kimi.com/kimi-code/install.sh | bash
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
```powershell
|
|
16
|
+
# Windows (PowerShell)
|
|
17
|
+
irm https://code.kimi.com/kimi-code/install.ps1 | iex
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
Also available via Homebrew (`brew install kimi-code`) and npm (`npm install -g @moonshot-ai/kimi-code`).
|
|
21
|
+
|
|
22
|
+
Then uninstall this package: `uv tool uninstall kimi-code` (or `pip uninstall kimi-code kimi-cli`, since pip does not remove the legacy `kimi-cli` dependency automatically).
|
|
23
|
+
|
|
24
|
+
Migration guide: [English](https://moonshotai.github.io/kimi-code/en/guides/migration) | [中文](https://moonshotai.github.io/kimi-code/zh/guides/migration)
|
|
25
|
+
|
|
26
|
+
## Note for existing users
|
|
27
|
+
|
|
28
|
+
Starting from 1.51.0, running `kimi-code` from this package only prints the instructions above. The legacy CLI it used to install is no longer supported and will stop working, so please migrate to Kimi Code CLI.
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
[project]
|
|
2
|
+
name = "kimi-code"
|
|
3
|
+
version = "1.52.0"
|
|
4
|
+
description = "[Archived] Legacy PyPI package, NOT the new Kimi Code CLI. Install Kimi Code CLI from https://github.com/MoonshotAI/kimi-code"
|
|
5
|
+
readme = "README.md"
|
|
6
|
+
requires-python = ">=3.12"
|
|
7
|
+
classifiers = ["Development Status :: 7 - Inactive"]
|
|
8
|
+
dependencies = []
|
|
9
|
+
|
|
10
|
+
[project.urls]
|
|
11
|
+
"Kimi Code CLI" = "https://github.com/MoonshotAI/kimi-code"
|
|
12
|
+
"Migration Guide" = "https://moonshotai.github.io/kimi-code/en/guides/migration"
|
|
13
|
+
Source = "https://github.com/MoonshotAI/kimi-cli"
|
|
14
|
+
|
|
15
|
+
[project.scripts]
|
|
16
|
+
kimi-code = "kimi_code:main"
|
|
17
|
+
|
|
18
|
+
[build-system]
|
|
19
|
+
requires = ["uv_build>=0.8.5,<0.10.0"]
|
|
20
|
+
build-backend = "uv_build"
|
|
21
|
+
|
|
22
|
+
[tool.uv.build-backend]
|
|
23
|
+
module-name = ["kimi_code"]
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
"""Legacy `kimi-code` package on PyPI.
|
|
2
|
+
|
|
3
|
+
This package used to be an alias of the Python Kimi CLI, which has been archived.
|
|
4
|
+
It is NOT the new Kimi Code CLI; running it only prints how to install the new one.
|
|
5
|
+
"""
|
|
6
|
+
|
|
7
|
+
from __future__ import annotations
|
|
8
|
+
|
|
9
|
+
import sys
|
|
10
|
+
|
|
11
|
+
MESSAGE = """\
|
|
12
|
+
kimi-code on PyPI is a legacy package and is no longer maintained.
|
|
13
|
+
It is NOT the new Kimi Code CLI.
|
|
14
|
+
|
|
15
|
+
Install Kimi Code CLI:
|
|
16
|
+
macOS / Linux: curl -fsSL https://code.kimi.com/kimi-code/install.sh | bash
|
|
17
|
+
Windows: irm https://code.kimi.com/kimi-code/install.ps1 | iex
|
|
18
|
+
|
|
19
|
+
Then uninstall this package: uv tool uninstall kimi-code (or: pip uninstall kimi-code kimi-cli)
|
|
20
|
+
Migration guide: https://moonshotai.github.io/kimi-code/en/guides/migration
|
|
21
|
+
|
|
22
|
+
PyPI 上的 kimi-code 是已停止维护的旧版包,并不是新版 Kimi Code CLI。
|
|
23
|
+
请使用上面的命令安装新版。迁移指南:https://moonshotai.github.io/kimi-code/zh/guides/migration
|
|
24
|
+
"""
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
def main() -> int:
|
|
28
|
+
print(MESSAGE, file=sys.stderr)
|
|
29
|
+
return 1
|
kimi_code-1.50.0/PKG-INFO
DELETED
|
@@ -1,185 +0,0 @@
|
|
|
1
|
-
Metadata-Version: 2.3
|
|
2
|
-
Name: kimi-code
|
|
3
|
-
Version: 1.50.0
|
|
4
|
-
Summary: Kimi Code is a CLI agent that lives in your terminal.
|
|
5
|
-
Requires-Dist: kimi-cli==1.50.0
|
|
6
|
-
Requires-Python: >=3.12
|
|
7
|
-
Description-Content-Type: text/markdown
|
|
8
|
-
|
|
9
|
-
# Kimi CLI
|
|
10
|
-
|
|
11
|
-
[](https://github.com/MoonshotAI/kimi-cli/graphs/commit-activity)
|
|
12
|
-
[](https://github.com/MoonshotAI/kimi-cli/actions)
|
|
13
|
-
[](https://pypi.org/project/kimi-cli/)
|
|
14
|
-
[](https://pypistats.org/packages/kimi-cli)
|
|
15
|
-
[](https://deepwiki.com/MoonshotAI/kimi-cli)
|
|
16
|
-
|
|
17
|
-
[Kimi Code](https://www.kimi.com/code/) | [Documentation](https://moonshotai.github.io/kimi-cli/en/) | [文档](https://moonshotai.github.io/kimi-cli/zh/)
|
|
18
|
-
|
|
19
|
-
> [!IMPORTANT]
|
|
20
|
-
> **Kimi CLI is evolving into [Kimi Code CLI](https://github.com/MoonshotAI/kimi-code)** — the next-generation terminal AI agent from the same team. Installing Kimi Code CLI automatically migrates your configuration and sessions. This project will be gradually wound down; the docs and existing installations remain available.
|
|
21
|
-
|
|
22
|
-
Kimi CLI is an AI agent that runs in the terminal, helping you complete software development tasks and terminal operations. It can read and edit code, execute shell commands, search and fetch web pages, and autonomously plan and adjust actions during execution.
|
|
23
|
-
|
|
24
|
-
## Getting Started
|
|
25
|
-
|
|
26
|
-
See [Getting Started](https://moonshotai.github.io/kimi-cli/en/guides/getting-started.html) for how to install and start using Kimi CLI.
|
|
27
|
-
|
|
28
|
-
## Key Features
|
|
29
|
-
|
|
30
|
-
### Shell command mode
|
|
31
|
-
|
|
32
|
-
Kimi CLI is not only a coding agent, but also a shell. You can switch the shell command mode by pressing `Ctrl-X`. In this mode, you can directly run shell commands without leaving Kimi CLI.
|
|
33
|
-
|
|
34
|
-

|
|
35
|
-
|
|
36
|
-
> [!NOTE]
|
|
37
|
-
> Built-in shell commands like `cd` are not supported yet.
|
|
38
|
-
|
|
39
|
-
### VS Code extension
|
|
40
|
-
|
|
41
|
-
Kimi CLI can be integrated with [Visual Studio Code](https://code.visualstudio.com/) via the [Kimi Code VS Code Extension](https://marketplace.visualstudio.com/items?itemName=moonshot-ai.kimi-code).
|
|
42
|
-
|
|
43
|
-

|
|
44
|
-
|
|
45
|
-
### IDE integration via ACP
|
|
46
|
-
|
|
47
|
-
Kimi CLI supports [Agent Client Protocol] out of the box. You can use it together with any ACP-compatible editor or IDE.
|
|
48
|
-
|
|
49
|
-
[Agent Client Protocol]: https://github.com/agentclientprotocol/agent-client-protocol
|
|
50
|
-
|
|
51
|
-
To use Kimi CLI with ACP clients, make sure to run Kimi CLI in the terminal and send `/login` to complete the login first. Then, you can configure your ACP client to start Kimi CLI as an ACP agent server with command `kimi acp`.
|
|
52
|
-
|
|
53
|
-
For example, to use Kimi CLI with [Zed](https://zed.dev/) or [JetBrains](https://blog.jetbrains.com/ai/2025/12/bring-your-own-ai-agent-to-jetbrains-ides/), add the following configuration to your `~/.config/zed/settings.json` or `~/.jetbrains/acp.json` file:
|
|
54
|
-
|
|
55
|
-
```json
|
|
56
|
-
{
|
|
57
|
-
"agent_servers": {
|
|
58
|
-
"Kimi CLI": {
|
|
59
|
-
"type": "custom",
|
|
60
|
-
"command": "kimi",
|
|
61
|
-
"args": ["acp"],
|
|
62
|
-
"env": {}
|
|
63
|
-
}
|
|
64
|
-
}
|
|
65
|
-
}
|
|
66
|
-
```
|
|
67
|
-
|
|
68
|
-
Then you can create Kimi CLI threads in IDE's agent panel.
|
|
69
|
-
|
|
70
|
-

|
|
71
|
-
|
|
72
|
-
### Zsh integration
|
|
73
|
-
|
|
74
|
-
You can use Kimi CLI together with Zsh, to empower your shell experience with AI agent capabilities.
|
|
75
|
-
|
|
76
|
-
Install the [zsh-kimi-cli](https://github.com/MoonshotAI/zsh-kimi-cli) plugin via:
|
|
77
|
-
|
|
78
|
-
```sh
|
|
79
|
-
git clone https://github.com/MoonshotAI/zsh-kimi-cli.git \
|
|
80
|
-
${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/kimi-cli
|
|
81
|
-
```
|
|
82
|
-
|
|
83
|
-
> [!NOTE]
|
|
84
|
-
> If you are using a plugin manager other than Oh My Zsh, you may need to refer to the plugin's README for installation instructions.
|
|
85
|
-
|
|
86
|
-
Then add `kimi-cli` to your Zsh plugin list in `~/.zshrc`:
|
|
87
|
-
|
|
88
|
-
```sh
|
|
89
|
-
plugins=(... kimi-cli)
|
|
90
|
-
```
|
|
91
|
-
|
|
92
|
-
After restarting Zsh, you can switch to agent mode by pressing `Ctrl-X`.
|
|
93
|
-
|
|
94
|
-
### MCP support
|
|
95
|
-
|
|
96
|
-
Kimi CLI supports MCP (Model Context Protocol) tools.
|
|
97
|
-
|
|
98
|
-
**`kimi mcp` sub-command group**
|
|
99
|
-
|
|
100
|
-
You can manage MCP servers with `kimi mcp` sub-command group. For example:
|
|
101
|
-
|
|
102
|
-
```sh
|
|
103
|
-
# Add streamable HTTP server:
|
|
104
|
-
kimi mcp add --transport http context7 https://mcp.context7.com/mcp --header "CONTEXT7_API_KEY: ctx7sk-your-key"
|
|
105
|
-
|
|
106
|
-
# Add streamable HTTP server with OAuth authorization:
|
|
107
|
-
kimi mcp add --transport http --auth oauth linear https://mcp.linear.app/mcp
|
|
108
|
-
|
|
109
|
-
# Add stdio server:
|
|
110
|
-
kimi mcp add --transport stdio chrome-devtools -- npx chrome-devtools-mcp@latest
|
|
111
|
-
|
|
112
|
-
# List added MCP servers:
|
|
113
|
-
kimi mcp list
|
|
114
|
-
|
|
115
|
-
# Remove an MCP server:
|
|
116
|
-
kimi mcp remove chrome-devtools
|
|
117
|
-
|
|
118
|
-
# Authorize an MCP server:
|
|
119
|
-
kimi mcp auth linear
|
|
120
|
-
```
|
|
121
|
-
|
|
122
|
-
**Ad-hoc MCP configuration**
|
|
123
|
-
|
|
124
|
-
Kimi CLI also supports ad-hoc MCP server configuration via CLI option.
|
|
125
|
-
|
|
126
|
-
Given an MCP config file in the well-known MCP config format like the following:
|
|
127
|
-
|
|
128
|
-
```json
|
|
129
|
-
{
|
|
130
|
-
"mcpServers": {
|
|
131
|
-
"context7": {
|
|
132
|
-
"url": "https://mcp.context7.com/mcp",
|
|
133
|
-
"headers": {
|
|
134
|
-
"CONTEXT7_API_KEY": "YOUR_API_KEY"
|
|
135
|
-
}
|
|
136
|
-
},
|
|
137
|
-
"chrome-devtools": {
|
|
138
|
-
"command": "npx",
|
|
139
|
-
"args": ["-y", "chrome-devtools-mcp@latest"]
|
|
140
|
-
}
|
|
141
|
-
}
|
|
142
|
-
}
|
|
143
|
-
```
|
|
144
|
-
|
|
145
|
-
Run `kimi` with `--mcp-config-file` option to connect to the specified MCP servers:
|
|
146
|
-
|
|
147
|
-
```sh
|
|
148
|
-
kimi --mcp-config-file /path/to/mcp.json
|
|
149
|
-
```
|
|
150
|
-
|
|
151
|
-
### More
|
|
152
|
-
|
|
153
|
-
See more features in the [Documentation](https://moonshotai.github.io/kimi-cli/en/).
|
|
154
|
-
|
|
155
|
-
## Development
|
|
156
|
-
|
|
157
|
-
To develop Kimi CLI, run:
|
|
158
|
-
|
|
159
|
-
```sh
|
|
160
|
-
git clone https://github.com/MoonshotAI/kimi-cli.git
|
|
161
|
-
cd kimi-cli
|
|
162
|
-
|
|
163
|
-
make prepare # prepare the development environment
|
|
164
|
-
```
|
|
165
|
-
|
|
166
|
-
Then you can start working on Kimi CLI.
|
|
167
|
-
|
|
168
|
-
Refer to the following commands after you make changes:
|
|
169
|
-
|
|
170
|
-
```sh
|
|
171
|
-
uv run kimi # run Kimi CLI
|
|
172
|
-
|
|
173
|
-
make format # format code
|
|
174
|
-
make check # run linting and type checking
|
|
175
|
-
make test # run tests
|
|
176
|
-
make test-kimi-cli # run Kimi CLI tests only
|
|
177
|
-
make test-kosong # run kosong tests only
|
|
178
|
-
make test-pykaos # run pykaos tests only
|
|
179
|
-
make build-web # build the web UI and sync it into the package (requires Node.js/npm)
|
|
180
|
-
make build # build python packages
|
|
181
|
-
make build-bin # build standalone binary
|
|
182
|
-
make help # show all make targets
|
|
183
|
-
```
|
|
184
|
-
|
|
185
|
-
Note: `make build` and `make build-bin` automatically run `make build-web` to embed the web UI.
|
kimi_code-1.50.0/README.md
DELETED
|
@@ -1,177 +0,0 @@
|
|
|
1
|
-
# Kimi CLI
|
|
2
|
-
|
|
3
|
-
[](https://github.com/MoonshotAI/kimi-cli/graphs/commit-activity)
|
|
4
|
-
[](https://github.com/MoonshotAI/kimi-cli/actions)
|
|
5
|
-
[](https://pypi.org/project/kimi-cli/)
|
|
6
|
-
[](https://pypistats.org/packages/kimi-cli)
|
|
7
|
-
[](https://deepwiki.com/MoonshotAI/kimi-cli)
|
|
8
|
-
|
|
9
|
-
[Kimi Code](https://www.kimi.com/code/) | [Documentation](https://moonshotai.github.io/kimi-cli/en/) | [文档](https://moonshotai.github.io/kimi-cli/zh/)
|
|
10
|
-
|
|
11
|
-
> [!IMPORTANT]
|
|
12
|
-
> **Kimi CLI is evolving into [Kimi Code CLI](https://github.com/MoonshotAI/kimi-code)** — the next-generation terminal AI agent from the same team. Installing Kimi Code CLI automatically migrates your configuration and sessions. This project will be gradually wound down; the docs and existing installations remain available.
|
|
13
|
-
|
|
14
|
-
Kimi CLI is an AI agent that runs in the terminal, helping you complete software development tasks and terminal operations. It can read and edit code, execute shell commands, search and fetch web pages, and autonomously plan and adjust actions during execution.
|
|
15
|
-
|
|
16
|
-
## Getting Started
|
|
17
|
-
|
|
18
|
-
See [Getting Started](https://moonshotai.github.io/kimi-cli/en/guides/getting-started.html) for how to install and start using Kimi CLI.
|
|
19
|
-
|
|
20
|
-
## Key Features
|
|
21
|
-
|
|
22
|
-
### Shell command mode
|
|
23
|
-
|
|
24
|
-
Kimi CLI is not only a coding agent, but also a shell. You can switch the shell command mode by pressing `Ctrl-X`. In this mode, you can directly run shell commands without leaving Kimi CLI.
|
|
25
|
-
|
|
26
|
-

|
|
27
|
-
|
|
28
|
-
> [!NOTE]
|
|
29
|
-
> Built-in shell commands like `cd` are not supported yet.
|
|
30
|
-
|
|
31
|
-
### VS Code extension
|
|
32
|
-
|
|
33
|
-
Kimi CLI can be integrated with [Visual Studio Code](https://code.visualstudio.com/) via the [Kimi Code VS Code Extension](https://marketplace.visualstudio.com/items?itemName=moonshot-ai.kimi-code).
|
|
34
|
-
|
|
35
|
-

|
|
36
|
-
|
|
37
|
-
### IDE integration via ACP
|
|
38
|
-
|
|
39
|
-
Kimi CLI supports [Agent Client Protocol] out of the box. You can use it together with any ACP-compatible editor or IDE.
|
|
40
|
-
|
|
41
|
-
[Agent Client Protocol]: https://github.com/agentclientprotocol/agent-client-protocol
|
|
42
|
-
|
|
43
|
-
To use Kimi CLI with ACP clients, make sure to run Kimi CLI in the terminal and send `/login` to complete the login first. Then, you can configure your ACP client to start Kimi CLI as an ACP agent server with command `kimi acp`.
|
|
44
|
-
|
|
45
|
-
For example, to use Kimi CLI with [Zed](https://zed.dev/) or [JetBrains](https://blog.jetbrains.com/ai/2025/12/bring-your-own-ai-agent-to-jetbrains-ides/), add the following configuration to your `~/.config/zed/settings.json` or `~/.jetbrains/acp.json` file:
|
|
46
|
-
|
|
47
|
-
```json
|
|
48
|
-
{
|
|
49
|
-
"agent_servers": {
|
|
50
|
-
"Kimi CLI": {
|
|
51
|
-
"type": "custom",
|
|
52
|
-
"command": "kimi",
|
|
53
|
-
"args": ["acp"],
|
|
54
|
-
"env": {}
|
|
55
|
-
}
|
|
56
|
-
}
|
|
57
|
-
}
|
|
58
|
-
```
|
|
59
|
-
|
|
60
|
-
Then you can create Kimi CLI threads in IDE's agent panel.
|
|
61
|
-
|
|
62
|
-

|
|
63
|
-
|
|
64
|
-
### Zsh integration
|
|
65
|
-
|
|
66
|
-
You can use Kimi CLI together with Zsh, to empower your shell experience with AI agent capabilities.
|
|
67
|
-
|
|
68
|
-
Install the [zsh-kimi-cli](https://github.com/MoonshotAI/zsh-kimi-cli) plugin via:
|
|
69
|
-
|
|
70
|
-
```sh
|
|
71
|
-
git clone https://github.com/MoonshotAI/zsh-kimi-cli.git \
|
|
72
|
-
${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/kimi-cli
|
|
73
|
-
```
|
|
74
|
-
|
|
75
|
-
> [!NOTE]
|
|
76
|
-
> If you are using a plugin manager other than Oh My Zsh, you may need to refer to the plugin's README for installation instructions.
|
|
77
|
-
|
|
78
|
-
Then add `kimi-cli` to your Zsh plugin list in `~/.zshrc`:
|
|
79
|
-
|
|
80
|
-
```sh
|
|
81
|
-
plugins=(... kimi-cli)
|
|
82
|
-
```
|
|
83
|
-
|
|
84
|
-
After restarting Zsh, you can switch to agent mode by pressing `Ctrl-X`.
|
|
85
|
-
|
|
86
|
-
### MCP support
|
|
87
|
-
|
|
88
|
-
Kimi CLI supports MCP (Model Context Protocol) tools.
|
|
89
|
-
|
|
90
|
-
**`kimi mcp` sub-command group**
|
|
91
|
-
|
|
92
|
-
You can manage MCP servers with `kimi mcp` sub-command group. For example:
|
|
93
|
-
|
|
94
|
-
```sh
|
|
95
|
-
# Add streamable HTTP server:
|
|
96
|
-
kimi mcp add --transport http context7 https://mcp.context7.com/mcp --header "CONTEXT7_API_KEY: ctx7sk-your-key"
|
|
97
|
-
|
|
98
|
-
# Add streamable HTTP server with OAuth authorization:
|
|
99
|
-
kimi mcp add --transport http --auth oauth linear https://mcp.linear.app/mcp
|
|
100
|
-
|
|
101
|
-
# Add stdio server:
|
|
102
|
-
kimi mcp add --transport stdio chrome-devtools -- npx chrome-devtools-mcp@latest
|
|
103
|
-
|
|
104
|
-
# List added MCP servers:
|
|
105
|
-
kimi mcp list
|
|
106
|
-
|
|
107
|
-
# Remove an MCP server:
|
|
108
|
-
kimi mcp remove chrome-devtools
|
|
109
|
-
|
|
110
|
-
# Authorize an MCP server:
|
|
111
|
-
kimi mcp auth linear
|
|
112
|
-
```
|
|
113
|
-
|
|
114
|
-
**Ad-hoc MCP configuration**
|
|
115
|
-
|
|
116
|
-
Kimi CLI also supports ad-hoc MCP server configuration via CLI option.
|
|
117
|
-
|
|
118
|
-
Given an MCP config file in the well-known MCP config format like the following:
|
|
119
|
-
|
|
120
|
-
```json
|
|
121
|
-
{
|
|
122
|
-
"mcpServers": {
|
|
123
|
-
"context7": {
|
|
124
|
-
"url": "https://mcp.context7.com/mcp",
|
|
125
|
-
"headers": {
|
|
126
|
-
"CONTEXT7_API_KEY": "YOUR_API_KEY"
|
|
127
|
-
}
|
|
128
|
-
},
|
|
129
|
-
"chrome-devtools": {
|
|
130
|
-
"command": "npx",
|
|
131
|
-
"args": ["-y", "chrome-devtools-mcp@latest"]
|
|
132
|
-
}
|
|
133
|
-
}
|
|
134
|
-
}
|
|
135
|
-
```
|
|
136
|
-
|
|
137
|
-
Run `kimi` with `--mcp-config-file` option to connect to the specified MCP servers:
|
|
138
|
-
|
|
139
|
-
```sh
|
|
140
|
-
kimi --mcp-config-file /path/to/mcp.json
|
|
141
|
-
```
|
|
142
|
-
|
|
143
|
-
### More
|
|
144
|
-
|
|
145
|
-
See more features in the [Documentation](https://moonshotai.github.io/kimi-cli/en/).
|
|
146
|
-
|
|
147
|
-
## Development
|
|
148
|
-
|
|
149
|
-
To develop Kimi CLI, run:
|
|
150
|
-
|
|
151
|
-
```sh
|
|
152
|
-
git clone https://github.com/MoonshotAI/kimi-cli.git
|
|
153
|
-
cd kimi-cli
|
|
154
|
-
|
|
155
|
-
make prepare # prepare the development environment
|
|
156
|
-
```
|
|
157
|
-
|
|
158
|
-
Then you can start working on Kimi CLI.
|
|
159
|
-
|
|
160
|
-
Refer to the following commands after you make changes:
|
|
161
|
-
|
|
162
|
-
```sh
|
|
163
|
-
uv run kimi # run Kimi CLI
|
|
164
|
-
|
|
165
|
-
make format # format code
|
|
166
|
-
make check # run linting and type checking
|
|
167
|
-
make test # run tests
|
|
168
|
-
make test-kimi-cli # run Kimi CLI tests only
|
|
169
|
-
make test-kosong # run kosong tests only
|
|
170
|
-
make test-pykaos # run pykaos tests only
|
|
171
|
-
make build-web # build the web UI and sync it into the package (requires Node.js/npm)
|
|
172
|
-
make build # build python packages
|
|
173
|
-
make build-bin # build standalone binary
|
|
174
|
-
make help # show all make targets
|
|
175
|
-
```
|
|
176
|
-
|
|
177
|
-
Note: `make build` and `make build-bin` automatically run `make build-web` to embed the web UI.
|
kimi_code-1.50.0/pyproject.toml
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
[project]
|
|
2
|
-
name = "kimi-code"
|
|
3
|
-
version = "1.50.0"
|
|
4
|
-
description = "Kimi Code is a CLI agent that lives in your terminal."
|
|
5
|
-
readme = "README.md"
|
|
6
|
-
requires-python = ">=3.12"
|
|
7
|
-
dependencies = ["kimi-cli==1.50.0"]
|
|
8
|
-
|
|
9
|
-
[project.scripts]
|
|
10
|
-
kimi-code = "kimi_cli.__main__:main"
|
|
11
|
-
|
|
12
|
-
[build-system]
|
|
13
|
-
requires = ["uv_build>=0.8.5,<0.10.0"]
|
|
14
|
-
build-backend = "uv_build"
|
|
15
|
-
|
|
16
|
-
[tool.uv.build-backend]
|
|
17
|
-
module-name = ["kimi_code"]
|