# 使用 Homebrew, Nix 安装 ki

查看 ki 的安装路径、可执行文件、元数据以及面向 AI 代理工作流的安全说明。

## 安装

```sh
sudo av install brew:ki
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install ki
```

  证据: local Homebrew formula metadata

### Linux

- Nix (92%):

```sh
nix profile install nixpkgs#ki
```

  证据: nixpkgs package indexes: pkgs/by-name/ki/ki/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

## 软件包事实

- **软件包键:** brew:ki
- **软件包管理器:** Homebrew
- **版本:** 0.5.2
- **来源摘要:** Kotlin Language Interactive Shell
- **主页:** <https://github.com/Kotlin/kotlin-interactive-shell>
- **仓库:** <https://github.com/Kotlin/kotlin-interactive-shell>
- **最后更新:** 2026-05-19T07:49:15-04:00
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- ki (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

- 页面生成时间: 2026-08-03
- 管理器版本: 0.5.2
## 项目历史与用法

Kotlin Language Interactive Shell, usually invoked as `ki`, is JetBrains' richer terminal REPL for Kotlin: a shell with syntax highlighting, type inference commands, runtime Maven dependency loading, and symbol listing.

### 项目历史

The project grew out of Sparklin. The repository README describes it as the former Sparklin shell migrated to Kotlin's newer scripting and REPL infrastructure and generalized into the Kotlin Language Interactive Shell. Early GitHub releases in 2018 were still named Sparklin; by 2021 the release stream and JetBrains announcement presented it as `ki`.

### 采用历史

The README documents distribution through Maven Central archives, SDKMAN!, Arch Linux AUR, Homebrew, and MacPorts. JetBrains' 2021 Kotlin blog post positioned `ki` as a better standalone shell alongside the built-in `kotlinc` and IntelliJ IDEA REPL options.

### 使用方式

Package users install `ki` to try Kotlin snippets, load JVM dependencies from Maven coordinates during an interactive session, inspect declared symbols, and run a Kotlin REPL from a terminal without opening an IDE.

### 为什么软件包爱好者会关心

`ki` matters because it is an official Kotlin-team package that turns a language REPL into something closer to a shell-oriented package-manager experience: install a launcher, pull dependencies by coordinates, and explore JVM libraries interactively.

### 时间线

- 2017: Kotlin/kotlin-interactive-shell repository created on GitHub.
- 2018: GitHub releases were published under the Sparklin name.
- 2021: JetBrains announced `ki` as the next interactive shell for Kotlin.
- 2022: The 0.4.x release series continued under the Kotlin Language Interactive Shell repository.

### Related projects

- The README points to Kotlin/kotlin-spark-shell as the Apache Spark adaptation and keeps the earlier Sparklin version in a separate repository branch.

### 来源

- <https://blog.jetbrains.com/kotlin/2021/04/ki-the-next-interactive-shell-for-kotlin/>
- <https://github.com/Kotlin/kotlin-interactive-shell>
- <https://github.com/Kotlin/kotlin-interactive-shell/releases>
- <https://github.com/Kotlin/kotlin-spark-shell>


## 安全说明

generalized runtime or code generation signal.

- **Geiger 风险:** yellow / 中
- generalized runtime or code generation signal

## 其他软件包管理器记录

- Nix - ki: normalized package name match | nixpkgs package indexes: pkgs/by-name/ki/ki/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1


## Combined YAML source

View the package source record on GitHub. [combined/ki.yml](https://github.com/mxcl/pkgdb/blob/main/combined/ki.yml)


## 来源

- pkg.so package database
- Geiger risk classifier
- curated package history
- pkgdb category and tag curation
- external package-manager database matches
- cross-ecosystem install command graph
