# 使用 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
- **软件包管理器页面:** <https://formulae.brew.sh/formula/ki>
- **版本:** 0.5.2
- **来源摘要:** Kotlin Language Interactive Shell
- **主页:** <https://github.com/Kotlin/kotlin-interactive-shell>
- **仓库:** <https://github.com/Kotlin/kotlin-interactive-shell>
- **许可证:** Apache-2.0
- **源码归档:** <https://github.com/Kotlin/kotlin-interactive-shell/archive/refs/tags/v0.5.2.tar.gz>
- **最后更新:** 2026-05-19T07:49:15-04:00
- **已生成:** 2026-08-04T22:13:35+00:00

## 可执行文件

- ki (cli)
- ki (别名)

## 依赖

- openjdk@21

## 构建依赖

- maven

## 安装行为

- post-install 钩子: 未定义
- Bottle: 可用 于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux

## 版本和新鲜度

- 页面生成时间: 2026-08-04
- 管理器版本: 0.5.2
- 管理器更新时间: 2026-05-19
- 本地数据: OK
- 上游仓库: https://github.com/Kotlin/kotlin-interactive-shell
- 检测到的最新版本: v0.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

## 源数据库详情

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** ki
- **Version Scheme:** 0
- **Revision:** 0
- **Head Version:** HEAD
- **Bottle Stable Root URL:** <https://ghcr.io/v2/homebrew/core>
- **Deprecated:** yes
- **Disabled:** no
- **Keg Only:** no
- **URL Keys:** head, stable

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

- 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


## 相关链接

- [Source-control packages](https://pkg.so/zh-hans/source-control-tools/) - Belongs to a source-control command family.
- [Secret-risk packages](https://pkg.so/zh-hans/secret-risk-packages/) - Has protected-tool coverage, approval-gate, or non-low Geiger security signals.
- [Terminal utility packages](https://pkg.so/zh-hans/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Language runtime packages](https://pkg.so/zh-hans/language-runtime-packages/) - Matched language runtime, compiler, or interpreter metadata.
- [openjdk@21](https://pkg.so/zh-hans/brew/openjdk-21/) - Runtime dependency declared by Homebrew.
- [maven](https://pkg.so/zh-hans/brew/maven/) - Build dependency declared by Homebrew.
- [frege-repl](https://pkg.so/zh-hans/brew/frege-repl/) - Shares pkgdb curated category or tags: cli, jvm, language-runtime, repl.
- [ammonite-repl](https://pkg.so/zh-hans/brew/ammonite-repl/) - Shares pkgdb curated category or tags: cli, language-runtime, repl.
- [psysh](https://pkg.so/zh-hans/brew/psysh/) - Shares pkgdb curated category or tags: cli, language-runtime, repl.
- [planck](https://pkg.so/zh-hans/brew/planck/) - Shares pkgdb curated category or tags: cli, language-runtime, repl.
- [clojure](https://pkg.so/zh-hans/brew/clojure/) - Shares pkgdb curated category or tags: cli, jvm, language-runtime, repl.
- [kawa](https://pkg.so/zh-hans/brew/kawa/) - Shares pkgdb curated category or tags: cli, jvm, language-runtime, repl.
- [kotlin](https://pkg.so/zh-hans/brew/kotlin/) - Shares pkgdb curated category or tags: cli, jvm, language-runtime.
- [groovysdk](https://pkg.so/zh-hans/brew/groovysdk/) - Shares pkgdb curated category or tags: cli, jvm, language-runtime.
- [frege](https://pkg.so/zh-hans/brew/frege/) - Local package facts share a topical domain. Shared terms: cli, jvm, language, language-runtime, openjdk.
- [arf](https://pkg.so/zh-hans/brew/arf/) - Local package facts share a topical domain. Shared terms: cli, language, language-runtime, repl, runtime.

## 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
- package-page enrichment
- curated package history
- package version freshness
- pkgdb category and tag curation
- package relationship graph
- external package-manager database matches
- cross-ecosystem install command graph
