kimi-cli 0.48__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_cli-0.48/PKG-INFO +189 -0
- kimi_cli-0.48/README.md +164 -0
- kimi_cli-0.48/pyproject.toml +66 -0
- kimi_cli-0.48/src/kimi_cli/CHANGELOG.md +432 -0
- kimi_cli-0.48/src/kimi_cli/__init__.py +0 -0
- kimi_cli-0.48/src/kimi_cli/agents/default/agent.yaml +24 -0
- kimi_cli-0.48/src/kimi_cli/agents/default/sub.yaml +11 -0
- kimi_cli-0.48/src/kimi_cli/agents/default/system.md +72 -0
- kimi_cli-0.48/src/kimi_cli/agentspec.py +115 -0
- kimi_cli-0.48/src/kimi_cli/app.py +202 -0
- kimi_cli-0.48/src/kimi_cli/cli.py +264 -0
- kimi_cli-0.48/src/kimi_cli/config.py +157 -0
- kimi_cli-0.48/src/kimi_cli/constant.py +4 -0
- kimi_cli-0.48/src/kimi_cli/exception.py +16 -0
- kimi_cli-0.48/src/kimi_cli/llm.py +141 -0
- kimi_cli-0.48/src/kimi_cli/metadata.py +54 -0
- kimi_cli-0.48/src/kimi_cli/prompts/__init__.py +4 -0
- kimi_cli-0.48/src/kimi_cli/prompts/compact.md +74 -0
- kimi_cli-0.48/src/kimi_cli/prompts/init.md +21 -0
- kimi_cli-0.48/src/kimi_cli/py.typed +0 -0
- kimi_cli-0.48/src/kimi_cli/session.py +81 -0
- kimi_cli-0.48/src/kimi_cli/share.py +8 -0
- kimi_cli-0.48/src/kimi_cli/soul/__init__.py +174 -0
- kimi_cli-0.48/src/kimi_cli/soul/agent.py +159 -0
- kimi_cli-0.48/src/kimi_cli/soul/approval.py +68 -0
- kimi_cli-0.48/src/kimi_cli/soul/compaction.py +105 -0
- kimi_cli-0.48/src/kimi_cli/soul/context.py +142 -0
- kimi_cli-0.48/src/kimi_cli/soul/denwarenji.py +37 -0
- kimi_cli-0.48/src/kimi_cli/soul/kimisoul.py +350 -0
- kimi_cli-0.48/src/kimi_cli/soul/message.py +76 -0
- kimi_cli-0.48/src/kimi_cli/soul/runtime.py +96 -0
- kimi_cli-0.48/src/kimi_cli/soul/toolset.py +26 -0
- kimi_cli-0.48/src/kimi_cli/tools/__init__.py +94 -0
- kimi_cli-0.48/src/kimi_cli/tools/bash/__init__.py +108 -0
- kimi_cli-0.48/src/kimi_cli/tools/bash/bash.md +31 -0
- kimi_cli-0.48/src/kimi_cli/tools/dmail/__init__.py +39 -0
- kimi_cli-0.48/src/kimi_cli/tools/dmail/dmail.md +15 -0
- kimi_cli-0.48/src/kimi_cli/tools/file/__init__.py +29 -0
- kimi_cli-0.48/src/kimi_cli/tools/file/glob.md +17 -0
- kimi_cli-0.48/src/kimi_cli/tools/file/glob.py +149 -0
- kimi_cli-0.48/src/kimi_cli/tools/file/grep.md +5 -0
- kimi_cli-0.48/src/kimi_cli/tools/file/grep.py +287 -0
- kimi_cli-0.48/src/kimi_cli/tools/file/patch.md +8 -0
- kimi_cli-0.48/src/kimi_cli/tools/file/patch.py +173 -0
- kimi_cli-0.48/src/kimi_cli/tools/file/read.md +14 -0
- kimi_cli-0.48/src/kimi_cli/tools/file/read.py +140 -0
- kimi_cli-0.48/src/kimi_cli/tools/file/replace.md +7 -0
- kimi_cli-0.48/src/kimi_cli/tools/file/replace.py +144 -0
- kimi_cli-0.48/src/kimi_cli/tools/file/write.md +5 -0
- kimi_cli-0.48/src/kimi_cli/tools/file/write.py +119 -0
- kimi_cli-0.48/src/kimi_cli/tools/mcp.py +88 -0
- kimi_cli-0.48/src/kimi_cli/tools/task/__init__.py +165 -0
- kimi_cli-0.48/src/kimi_cli/tools/task/task.md +26 -0
- kimi_cli-0.48/src/kimi_cli/tools/test.py +55 -0
- kimi_cli-0.48/src/kimi_cli/tools/think/__init__.py +21 -0
- kimi_cli-0.48/src/kimi_cli/tools/think/think.md +1 -0
- kimi_cli-0.48/src/kimi_cli/tools/todo/__init__.py +29 -0
- kimi_cli-0.48/src/kimi_cli/tools/todo/set_todo_list.md +15 -0
- kimi_cli-0.48/src/kimi_cli/tools/utils.py +150 -0
- kimi_cli-0.48/src/kimi_cli/tools/web/__init__.py +4 -0
- kimi_cli-0.48/src/kimi_cli/tools/web/fetch.md +1 -0
- kimi_cli-0.48/src/kimi_cli/tools/web/fetch.py +95 -0
- kimi_cli-0.48/src/kimi_cli/tools/web/search.md +1 -0
- kimi_cli-0.48/src/kimi_cli/tools/web/search.py +127 -0
- kimi_cli-0.48/src/kimi_cli/ui/__init__.py +0 -0
- kimi_cli-0.48/src/kimi_cli/ui/acp/__init__.py +436 -0
- kimi_cli-0.48/src/kimi_cli/ui/print/__init__.py +153 -0
- kimi_cli-0.48/src/kimi_cli/ui/shell/__init__.py +312 -0
- kimi_cli-0.48/src/kimi_cli/ui/shell/console.py +29 -0
- kimi_cli-0.48/src/kimi_cli/ui/shell/debug.py +187 -0
- kimi_cli-0.48/src/kimi_cli/ui/shell/keyboard.py +183 -0
- kimi_cli-0.48/src/kimi_cli/ui/shell/liveview.py +417 -0
- kimi_cli-0.48/src/kimi_cli/ui/shell/metacmd.py +262 -0
- kimi_cli-0.48/src/kimi_cli/ui/shell/prompt.py +810 -0
- kimi_cli-0.48/src/kimi_cli/ui/shell/replay.py +104 -0
- kimi_cli-0.48/src/kimi_cli/ui/shell/setup.py +192 -0
- kimi_cli-0.48/src/kimi_cli/ui/shell/update.py +210 -0
- kimi_cli-0.48/src/kimi_cli/ui/shell/visualize.py +115 -0
- kimi_cli-0.48/src/kimi_cli/ui/wire/README.md +109 -0
- kimi_cli-0.48/src/kimi_cli/ui/wire/__init__.py +340 -0
- kimi_cli-0.48/src/kimi_cli/ui/wire/jsonrpc.py +48 -0
- kimi_cli-0.48/src/kimi_cli/utils/aiohttp.py +10 -0
- kimi_cli-0.48/src/kimi_cli/utils/changelog.py +103 -0
- kimi_cli-0.48/src/kimi_cli/utils/clipboard.py +10 -0
- kimi_cli-0.48/src/kimi_cli/utils/logging.py +18 -0
- kimi_cli-0.48/src/kimi_cli/utils/message.py +22 -0
- kimi_cli-0.48/src/kimi_cli/utils/path.py +23 -0
- kimi_cli-0.48/src/kimi_cli/utils/pyinstaller.py +24 -0
- kimi_cli-0.48/src/kimi_cli/utils/signals.py +41 -0
- kimi_cli-0.48/src/kimi_cli/utils/string.py +20 -0
- kimi_cli-0.48/src/kimi_cli/wire/__init__.py +70 -0
- kimi_cli-0.48/src/kimi_cli/wire/message.py +178 -0
kimi_cli-0.48/PKG-INFO
ADDED
|
@@ -0,0 +1,189 @@
|
|
|
1
|
+
Metadata-Version: 2.3
|
|
2
|
+
Name: kimi-cli
|
|
3
|
+
Version: 0.48
|
|
4
|
+
Summary: Kimi CLI is your next CLI agent.
|
|
5
|
+
Requires-Dist: agent-client-protocol==0.6.3
|
|
6
|
+
Requires-Dist: aiofiles==25.1.0
|
|
7
|
+
Requires-Dist: aiohttp==3.13.2
|
|
8
|
+
Requires-Dist: click==8.3.0
|
|
9
|
+
Requires-Dist: kosong==0.18.0
|
|
10
|
+
Requires-Dist: loguru==0.7.3
|
|
11
|
+
Requires-Dist: patch-ng==1.19.0
|
|
12
|
+
Requires-Dist: prompt-toolkit==3.0.52
|
|
13
|
+
Requires-Dist: pillow==12.0.0
|
|
14
|
+
Requires-Dist: pyyaml==6.0.3
|
|
15
|
+
Requires-Dist: rich==14.2.0
|
|
16
|
+
Requires-Dist: ripgrepy==2.2.0
|
|
17
|
+
Requires-Dist: streamingjson==0.0.5
|
|
18
|
+
Requires-Dist: trafilatura==2.0.0
|
|
19
|
+
Requires-Dist: tenacity==9.1.2
|
|
20
|
+
Requires-Dist: fastmcp==2.12.5
|
|
21
|
+
Requires-Dist: pydantic==2.12.3
|
|
22
|
+
Requires-Dist: httpx[socks]==0.28.1
|
|
23
|
+
Requires-Python: >=3.13
|
|
24
|
+
Description-Content-Type: text/markdown
|
|
25
|
+
|
|
26
|
+
# Kimi CLI
|
|
27
|
+
|
|
28
|
+
[](https://github.com/MoonshotAI/kimi-cli/graphs/commit-activity)
|
|
29
|
+
[](https://github.com/MoonshotAI/kimi-cli/actions)
|
|
30
|
+
[](https://pypi.org/project/kimi-cli/)
|
|
31
|
+
[](https://pypistats.org/packages/kimi-cli)
|
|
32
|
+
[](https://deepwiki.com/MoonshotAI/kimi-cli)
|
|
33
|
+
|
|
34
|
+
[中文](https://www.kimi.com/coding/docs/kimi-cli.html)
|
|
35
|
+
|
|
36
|
+
Kimi CLI is a new CLI agent that can help you with your software development tasks and terminal operations.
|
|
37
|
+
|
|
38
|
+
> [!IMPORTANT]
|
|
39
|
+
> Kimi CLI is currently in technical preview.
|
|
40
|
+
|
|
41
|
+
## Key features
|
|
42
|
+
|
|
43
|
+
- Shell-like UI and raw shell command execution
|
|
44
|
+
- Zsh integration
|
|
45
|
+
- [Agent Client Protocol] support
|
|
46
|
+
- MCP support
|
|
47
|
+
- And more to come...
|
|
48
|
+
|
|
49
|
+
[Agent Client Protocol]: https://github.com/agentclientprotocol/agent-client-protocol
|
|
50
|
+
|
|
51
|
+
## Installation
|
|
52
|
+
|
|
53
|
+
> [!IMPORTANT]
|
|
54
|
+
> Kimi CLI currently only supports macOS and Linux. Windows support is coming soon.
|
|
55
|
+
|
|
56
|
+
Kimi CLI is published as a Python package on PyPI. We highly recommend installing it with [uv](https://docs.astral.sh/uv/). If you have not installed uv yet, please follow the instructions [here](https://docs.astral.sh/uv/getting-started/installation/) to install it first.
|
|
57
|
+
|
|
58
|
+
Once uv is installed, you can install Kimi CLI with:
|
|
59
|
+
|
|
60
|
+
```sh
|
|
61
|
+
uv tool install --python 3.13 kimi-cli
|
|
62
|
+
```
|
|
63
|
+
|
|
64
|
+
Run `kimi --help` to check if Kimi CLI is installed successfully.
|
|
65
|
+
|
|
66
|
+
> [!IMPORTANT]
|
|
67
|
+
> Due to the security checks on macOS, the first time you run `kimi` command may take 10 seconds or more depending on your system environment.
|
|
68
|
+
|
|
69
|
+
## Upgrading
|
|
70
|
+
|
|
71
|
+
Upgrade Kimi CLI to the latest version with:
|
|
72
|
+
|
|
73
|
+
```sh
|
|
74
|
+
uv tool upgrade kimi-cli --no-cache
|
|
75
|
+
```
|
|
76
|
+
|
|
77
|
+
## Usage
|
|
78
|
+
|
|
79
|
+
Run `kimi` command in the directory you want to work on, then send `/setup` to setup Kimi CLI:
|
|
80
|
+
|
|
81
|
+

|
|
82
|
+
|
|
83
|
+
After setup, Kimi CLI will be ready to use. You can send `/help` to get more information.
|
|
84
|
+
|
|
85
|
+
## Features
|
|
86
|
+
|
|
87
|
+
### Shell mode
|
|
88
|
+
|
|
89
|
+
Kimi CLI is not only a coding agent, but also a shell. You can switch the mode by pressing `Ctrl-X`. In shell mode, you can directly run shell commands without leaving Kimi CLI.
|
|
90
|
+
|
|
91
|
+
> [!NOTE]
|
|
92
|
+
> Built-in shell commands like `cd` are not supported yet.
|
|
93
|
+
|
|
94
|
+
### Zsh integration
|
|
95
|
+
|
|
96
|
+
You can use Kimi CLI together with Zsh, to empower your shell experience with AI agent capabilities.
|
|
97
|
+
|
|
98
|
+
Install the [zsh-kimi-cli](https://github.com/MoonshotAI/zsh-kimi-cli) plugin via:
|
|
99
|
+
|
|
100
|
+
```sh
|
|
101
|
+
git clone https://github.com/MoonshotAI/zsh-kimi-cli.git \
|
|
102
|
+
${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/kimi-cli
|
|
103
|
+
```
|
|
104
|
+
|
|
105
|
+
> [!NOTE]
|
|
106
|
+
> 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.
|
|
107
|
+
|
|
108
|
+
Then add `kimi-cli` to your Zsh plugin list in `~/.zshrc`:
|
|
109
|
+
|
|
110
|
+
```sh
|
|
111
|
+
plugins=(... kimi-cli)
|
|
112
|
+
```
|
|
113
|
+
|
|
114
|
+
After restarting Zsh, you can switch to agent mode by pressing `Ctrl-X`.
|
|
115
|
+
|
|
116
|
+
### ACP support
|
|
117
|
+
|
|
118
|
+
Kimi CLI supports [Agent Client Protocol] out of the box. You can use it together with any ACP-compatible editor or IDE.
|
|
119
|
+
|
|
120
|
+
For example, to use Kimi CLI with [Zed](https://zed.dev/), add the following configuration to your `~/.config/zed/settings.json`:
|
|
121
|
+
|
|
122
|
+
```json
|
|
123
|
+
{
|
|
124
|
+
"agent_servers": {
|
|
125
|
+
"Kimi CLI": {
|
|
126
|
+
"command": "kimi",
|
|
127
|
+
"args": ["--acp"],
|
|
128
|
+
"env": {}
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
```
|
|
133
|
+
|
|
134
|
+
Then you can create Kimi CLI threads in Zed's agent panel.
|
|
135
|
+
|
|
136
|
+
### Using MCP tools
|
|
137
|
+
|
|
138
|
+
Kimi CLI supports the well-established MCP config convention. For example:
|
|
139
|
+
|
|
140
|
+
```json
|
|
141
|
+
{
|
|
142
|
+
"mcpServers": {
|
|
143
|
+
"context7": {
|
|
144
|
+
"url": "https://mcp.context7.com/mcp",
|
|
145
|
+
"headers": {
|
|
146
|
+
"CONTEXT7_API_KEY": "YOUR_API_KEY"
|
|
147
|
+
}
|
|
148
|
+
},
|
|
149
|
+
"chrome-devtools": {
|
|
150
|
+
"command": "npx",
|
|
151
|
+
"args": ["-y", "chrome-devtools-mcp@latest"]
|
|
152
|
+
}
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
```
|
|
156
|
+
|
|
157
|
+
Run `kimi` with `--mcp-config-file` option to connect to the specified MCP servers:
|
|
158
|
+
|
|
159
|
+
```sh
|
|
160
|
+
kimi --mcp-config-file /path/to/mcp.json
|
|
161
|
+
```
|
|
162
|
+
|
|
163
|
+
## Development
|
|
164
|
+
|
|
165
|
+
To develop Kimi CLI, run:
|
|
166
|
+
|
|
167
|
+
```sh
|
|
168
|
+
git clone https://github.com/MoonshotAI/kimi-cli.git
|
|
169
|
+
cd kimi-cli
|
|
170
|
+
|
|
171
|
+
make prepare # prepare the development environment
|
|
172
|
+
```
|
|
173
|
+
|
|
174
|
+
Then you can start working on Kimi CLI.
|
|
175
|
+
|
|
176
|
+
Refer to the following commands after you make changes:
|
|
177
|
+
|
|
178
|
+
```sh
|
|
179
|
+
uv run kimi # run Kimi CLI
|
|
180
|
+
|
|
181
|
+
make format # format code
|
|
182
|
+
make check # run linting and type checking
|
|
183
|
+
make test # run tests
|
|
184
|
+
make help # show all make targets
|
|
185
|
+
```
|
|
186
|
+
|
|
187
|
+
## Contributing
|
|
188
|
+
|
|
189
|
+
We welcome contributions to Kimi CLI! Please refer to [CONTRIBUTING.md](./CONTRIBUTING.md) for more information.
|
kimi_cli-0.48/README.md
ADDED
|
@@ -0,0 +1,164 @@
|
|
|
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
|
+
[中文](https://www.kimi.com/coding/docs/kimi-cli.html)
|
|
10
|
+
|
|
11
|
+
Kimi CLI is a new CLI agent that can help you with your software development tasks and terminal operations.
|
|
12
|
+
|
|
13
|
+
> [!IMPORTANT]
|
|
14
|
+
> Kimi CLI is currently in technical preview.
|
|
15
|
+
|
|
16
|
+
## Key features
|
|
17
|
+
|
|
18
|
+
- Shell-like UI and raw shell command execution
|
|
19
|
+
- Zsh integration
|
|
20
|
+
- [Agent Client Protocol] support
|
|
21
|
+
- MCP support
|
|
22
|
+
- And more to come...
|
|
23
|
+
|
|
24
|
+
[Agent Client Protocol]: https://github.com/agentclientprotocol/agent-client-protocol
|
|
25
|
+
|
|
26
|
+
## Installation
|
|
27
|
+
|
|
28
|
+
> [!IMPORTANT]
|
|
29
|
+
> Kimi CLI currently only supports macOS and Linux. Windows support is coming soon.
|
|
30
|
+
|
|
31
|
+
Kimi CLI is published as a Python package on PyPI. We highly recommend installing it with [uv](https://docs.astral.sh/uv/). If you have not installed uv yet, please follow the instructions [here](https://docs.astral.sh/uv/getting-started/installation/) to install it first.
|
|
32
|
+
|
|
33
|
+
Once uv is installed, you can install Kimi CLI with:
|
|
34
|
+
|
|
35
|
+
```sh
|
|
36
|
+
uv tool install --python 3.13 kimi-cli
|
|
37
|
+
```
|
|
38
|
+
|
|
39
|
+
Run `kimi --help` to check if Kimi CLI is installed successfully.
|
|
40
|
+
|
|
41
|
+
> [!IMPORTANT]
|
|
42
|
+
> Due to the security checks on macOS, the first time you run `kimi` command may take 10 seconds or more depending on your system environment.
|
|
43
|
+
|
|
44
|
+
## Upgrading
|
|
45
|
+
|
|
46
|
+
Upgrade Kimi CLI to the latest version with:
|
|
47
|
+
|
|
48
|
+
```sh
|
|
49
|
+
uv tool upgrade kimi-cli --no-cache
|
|
50
|
+
```
|
|
51
|
+
|
|
52
|
+
## Usage
|
|
53
|
+
|
|
54
|
+
Run `kimi` command in the directory you want to work on, then send `/setup` to setup Kimi CLI:
|
|
55
|
+
|
|
56
|
+

|
|
57
|
+
|
|
58
|
+
After setup, Kimi CLI will be ready to use. You can send `/help` to get more information.
|
|
59
|
+
|
|
60
|
+
## Features
|
|
61
|
+
|
|
62
|
+
### Shell mode
|
|
63
|
+
|
|
64
|
+
Kimi CLI is not only a coding agent, but also a shell. You can switch the mode by pressing `Ctrl-X`. In shell mode, you can directly run shell commands without leaving Kimi CLI.
|
|
65
|
+
|
|
66
|
+
> [!NOTE]
|
|
67
|
+
> Built-in shell commands like `cd` are not supported yet.
|
|
68
|
+
|
|
69
|
+
### Zsh integration
|
|
70
|
+
|
|
71
|
+
You can use Kimi CLI together with Zsh, to empower your shell experience with AI agent capabilities.
|
|
72
|
+
|
|
73
|
+
Install the [zsh-kimi-cli](https://github.com/MoonshotAI/zsh-kimi-cli) plugin via:
|
|
74
|
+
|
|
75
|
+
```sh
|
|
76
|
+
git clone https://github.com/MoonshotAI/zsh-kimi-cli.git \
|
|
77
|
+
${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/kimi-cli
|
|
78
|
+
```
|
|
79
|
+
|
|
80
|
+
> [!NOTE]
|
|
81
|
+
> 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.
|
|
82
|
+
|
|
83
|
+
Then add `kimi-cli` to your Zsh plugin list in `~/.zshrc`:
|
|
84
|
+
|
|
85
|
+
```sh
|
|
86
|
+
plugins=(... kimi-cli)
|
|
87
|
+
```
|
|
88
|
+
|
|
89
|
+
After restarting Zsh, you can switch to agent mode by pressing `Ctrl-X`.
|
|
90
|
+
|
|
91
|
+
### ACP support
|
|
92
|
+
|
|
93
|
+
Kimi CLI supports [Agent Client Protocol] out of the box. You can use it together with any ACP-compatible editor or IDE.
|
|
94
|
+
|
|
95
|
+
For example, to use Kimi CLI with [Zed](https://zed.dev/), add the following configuration to your `~/.config/zed/settings.json`:
|
|
96
|
+
|
|
97
|
+
```json
|
|
98
|
+
{
|
|
99
|
+
"agent_servers": {
|
|
100
|
+
"Kimi CLI": {
|
|
101
|
+
"command": "kimi",
|
|
102
|
+
"args": ["--acp"],
|
|
103
|
+
"env": {}
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
```
|
|
108
|
+
|
|
109
|
+
Then you can create Kimi CLI threads in Zed's agent panel.
|
|
110
|
+
|
|
111
|
+
### Using MCP tools
|
|
112
|
+
|
|
113
|
+
Kimi CLI supports the well-established MCP config convention. For example:
|
|
114
|
+
|
|
115
|
+
```json
|
|
116
|
+
{
|
|
117
|
+
"mcpServers": {
|
|
118
|
+
"context7": {
|
|
119
|
+
"url": "https://mcp.context7.com/mcp",
|
|
120
|
+
"headers": {
|
|
121
|
+
"CONTEXT7_API_KEY": "YOUR_API_KEY"
|
|
122
|
+
}
|
|
123
|
+
},
|
|
124
|
+
"chrome-devtools": {
|
|
125
|
+
"command": "npx",
|
|
126
|
+
"args": ["-y", "chrome-devtools-mcp@latest"]
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
}
|
|
130
|
+
```
|
|
131
|
+
|
|
132
|
+
Run `kimi` with `--mcp-config-file` option to connect to the specified MCP servers:
|
|
133
|
+
|
|
134
|
+
```sh
|
|
135
|
+
kimi --mcp-config-file /path/to/mcp.json
|
|
136
|
+
```
|
|
137
|
+
|
|
138
|
+
## Development
|
|
139
|
+
|
|
140
|
+
To develop Kimi CLI, run:
|
|
141
|
+
|
|
142
|
+
```sh
|
|
143
|
+
git clone https://github.com/MoonshotAI/kimi-cli.git
|
|
144
|
+
cd kimi-cli
|
|
145
|
+
|
|
146
|
+
make prepare # prepare the development environment
|
|
147
|
+
```
|
|
148
|
+
|
|
149
|
+
Then you can start working on Kimi CLI.
|
|
150
|
+
|
|
151
|
+
Refer to the following commands after you make changes:
|
|
152
|
+
|
|
153
|
+
```sh
|
|
154
|
+
uv run kimi # run Kimi CLI
|
|
155
|
+
|
|
156
|
+
make format # format code
|
|
157
|
+
make check # run linting and type checking
|
|
158
|
+
make test # run tests
|
|
159
|
+
make help # show all make targets
|
|
160
|
+
```
|
|
161
|
+
|
|
162
|
+
## Contributing
|
|
163
|
+
|
|
164
|
+
We welcome contributions to Kimi CLI! Please refer to [CONTRIBUTING.md](./CONTRIBUTING.md) for more information.
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
[project]
|
|
2
|
+
name = "kimi-cli"
|
|
3
|
+
version = "0.48"
|
|
4
|
+
description = "Kimi CLI is your next CLI agent."
|
|
5
|
+
readme = "README.md"
|
|
6
|
+
requires-python = ">=3.13"
|
|
7
|
+
dependencies = [
|
|
8
|
+
"agent-client-protocol==0.6.3",
|
|
9
|
+
"aiofiles==25.1.0",
|
|
10
|
+
"aiohttp==3.13.2",
|
|
11
|
+
"click==8.3.0",
|
|
12
|
+
"kosong==0.18.0",
|
|
13
|
+
"loguru==0.7.3",
|
|
14
|
+
"patch-ng==1.19.0",
|
|
15
|
+
"prompt-toolkit==3.0.52",
|
|
16
|
+
"pillow==12.0.0",
|
|
17
|
+
"pyyaml==6.0.3",
|
|
18
|
+
"rich==14.2.0",
|
|
19
|
+
"ripgrepy==2.2.0",
|
|
20
|
+
"streamingjson==0.0.5",
|
|
21
|
+
"trafilatura==2.0.0",
|
|
22
|
+
"tenacity==9.1.2",
|
|
23
|
+
"fastmcp==2.12.5",
|
|
24
|
+
"pydantic==2.12.3",
|
|
25
|
+
"httpx[socks]==0.28.1",
|
|
26
|
+
]
|
|
27
|
+
|
|
28
|
+
[dependency-groups]
|
|
29
|
+
dev = [
|
|
30
|
+
"inline-snapshot[black]>=0.31.0",
|
|
31
|
+
"pyinstaller>=6.16.0",
|
|
32
|
+
"pyright>=1.1.407",
|
|
33
|
+
"pytest>=8.4.2",
|
|
34
|
+
"pytest-asyncio>=1.2.0",
|
|
35
|
+
"ruff>=0.14.1",
|
|
36
|
+
]
|
|
37
|
+
|
|
38
|
+
[build-system]
|
|
39
|
+
requires = ["uv_build>=0.8.5,<0.9.0"]
|
|
40
|
+
build-backend = "uv_build"
|
|
41
|
+
|
|
42
|
+
[tool.uv.build-backend]
|
|
43
|
+
module-name = ["kimi_cli"]
|
|
44
|
+
source-exclude = ["tests/**/*", "src/kimi_cli/deps/**/*"]
|
|
45
|
+
|
|
46
|
+
[project.scripts]
|
|
47
|
+
kimi = "kimi_cli.cli:main"
|
|
48
|
+
|
|
49
|
+
[tool.ruff]
|
|
50
|
+
line-length = 100
|
|
51
|
+
|
|
52
|
+
[tool.ruff.lint]
|
|
53
|
+
select = [
|
|
54
|
+
"E", # pycodestyle
|
|
55
|
+
"F", # Pyflakes
|
|
56
|
+
"UP", # pyupgrade
|
|
57
|
+
"B", # flake8-bugbear
|
|
58
|
+
"SIM", # flake8-simplify
|
|
59
|
+
"I", # isort
|
|
60
|
+
]
|
|
61
|
+
|
|
62
|
+
[tool.typos.files]
|
|
63
|
+
extend-exclude = ["kimi.spec", "pyinstaller.py"]
|
|
64
|
+
|
|
65
|
+
[tool.typos.default.extend-words]
|
|
66
|
+
datas = "datas"
|