# 使用 Homebrew, MacPorts, Nix 安装 kty

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

## 安装

```sh
sudo av install brew:kty
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install kty
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install kty
```

  证据: MacPorts ports tree: sysutils/kty/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1

### Linux

- Nix (92%):

```sh
nix profile install nixpkgs#kty
```

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

## 软件包事实

- **软件包键:** brew:kty
- **软件包管理器:** Homebrew
- **版本:** 0.3.1
- **来源摘要:** Terminal for Kubernetes
- **主页:** <https://kty.dev>
- **仓库:** <https://github.com/grampelberg/kty>
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- kty (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

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

kty is a Kubernetes terminal that exposes cluster interaction through SSH. Its documentation describes it as a standalone SSH server that maps Kubernetes concepts to familiar SSH workflows such as shells, logs, tunnels, scp, and sftp.

### 项目历史

The GitHub repository was created on 2024-07-17. The project is implemented in Rust and documents a server installed into a Kubernetes cluster plus a CLI used to install resources and connect over SSH.

kty's design centers on using OpenID providers such as GitHub or Google for identity, then relying on Kubernetes RBAC and user impersonation so that access follows cluster permissions in a way similar to kubectl authentication plugins.

### 采用历史

Public adoption evidence is early and package-manager oriented. The Homebrew formula shows kty being made available to CLI users while the project documentation focuses on installing the server-side cluster resources.

### 使用方式

Users install the kty CLI, install kty resources into a cluster namespace, and connect with SSH. The documented workflow can open a TUI dashboard, execute shells in pods, stream logs, forward traffic, and copy files through scp or sftp.

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

kty is package-nerd interesting because it replaces a pile of Kubernetes-specific local tooling with the very old SSH user interface. It is also a modern example of distributing a cluster access system as both a local package-manager binary and in-cluster Kubernetes resources.

### 时间线

- 2024-07-17: grampelberg/kty repository created on GitHub.
- 2024: kty documentation site identified the project as copyright 2024.
- 2026: Homebrew formula metadata listed kty as a packaged CLI.

### Related projects

- kty is related to kubectl, Kubernetes RBAC, OpenID Connect providers, OpenSSH-style clients, pod exec/log APIs, Kubernetes Services, and port-forwarding workflows.

### 来源

- <https://api.github.com/repos/grampelberg/kty>
- <https://formulae.brew.sh/formula/kty>
- <https://github.com/grampelberg/kty>
- <https://kty.dev/>
- <https://kty.dev/architecture>
- <https://kty.dev/getting-started>
- <https://raw.githubusercontent.com/grampelberg/kty/main/README.md>


## 安全说明

infrastructure mutation or orchestration signal.

- **Geiger 风险:** orange / 中
- infrastructure mutation or orchestration signal

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

- Nix - kty: normalized package name match | nixpkgs package indexes: pkgs/by-name/kt/kty/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- MacPorts - kty: normalized package name match | MacPorts ports tree: sysutils/kty/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1


## Combined YAML source

View the package source record on GitHub. [combined/kty.yml](https://github.com/mxcl/pkgdb/blob/main/combined/kty.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
