# 使用 Homebrew, Nix, scoop 安装 kanata

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

## 安装

```sh
sudo av install brew:kanata
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install kanata
```

  证据: local Homebrew formula metadata

### Linux

- Nix (92%):

```sh
nix profile install nixpkgs#kanata
```

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

### Windows

- Scoop (92%):

```sh
scoop install extras/kanata
```

  证据: Scoop official bucket manifest trees: bucket/kanata.json from https://api.github.com/repos/ScoopInstaller/Extras/git/trees/master?recursive=1

## 软件包事实

- **软件包键:** brew:kanata
- **软件包管理器:** Homebrew
- **版本:** 1.12.0
- **来源摘要:** Cross-platform software keyboard remapper for Linux, macOS and Windows
- **主页:** <https://github.com/jtroo/kanata>
- **仓库:** <https://github.com/jtroo/kanata>
- **最后更新:** 2026-07-05T09:17:54Z
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- kanata (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

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

Kanata is a cross-platform software keyboard remapper for Linux, macOS, and Windows. It brings firmware-style keyboard features such as layers, tap-hold behavior, macros, unicode output, and leader sequences into a user-space program configured with Lisp-like S-expressions.

### 项目历史

The GitHub repository was created on 2022-04-18, and v0.1.1 was published on 2022-04-24. A July 2022 Rust community announcement for v1.0.5 described it as an advanced keyboard remapper for Windows and Linux and explicitly compared its use case to QMK and KMonad.

The README frames the project around keyboard comfort and usability: users can apply the idea of Shift-style alternate layers to arbitrary keys, then customize those layers for personal workflows. The configuration guide documents the S-expression format that defines source keys, aliases, layers, and behavior.

By 2026-07-01, Kanata had grown into a mature workstation utility with prebuilt release binaries, Cargo installation, platform notes, sample configurations, optional TCP server behavior, Interception driver support on Windows, and companion tooling such as Kanata Tray.

### 采用历史

Kanata's adoption is driven by people who want programmable-keyboard behavior on ordinary laptop or desktop keyboards. The README's Repology badge and batch package metadata show distribution through package systems such as Homebrew, Nix, and Scoop, while Cargo remains the native Rust installation path.

Its cross-platform design distinguishes it from platform-specific remappers and from firmware projects that require programmable keyboard hardware. That makes it attractive to users who move layouts between operating systems or who want home-row mods and layers on built-in laptop keyboards.

### 使用方式

Users run `kanata --cfg <configuration-file>` with a `.kbd` configuration. On Linux and macOS, extra privileges or platform drivers may be needed because Kanata intercepts keyboard input; the README points to platform-specific setup discussions and release instructions.

Common configurations define base and alternate layers, tap-hold keys, macros, unicode actions, and leader sequences. The official configuration guide and sample files serve as the main learning path.

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

Kanata is package-nerd notable because it packages a hardware-keyboard customization culture as cross-platform user-space software. It sits between firmware projects such as QMK, Linux input-layer tools, macOS keyboard utilities, and Windows interception-driver workflows.

It also carries the operational concerns package maintainers care about: privileged input access, platform-specific drivers, release assets, sample configs, and companion tray wrappers.

### 时间线

- 2022: jtroo/kanata repository created and first GitHub releases published.
- 2022: v1.0.5 announced as an advanced Windows and Linux keyboard remapper in the Rust community.
- 2024: Configuration and platform discussions show active use across macOS, Linux, and Windows.
- 2026: v1.11.0 release published on GitHub.

### Related projects

- QMK and KMonad are related keyboard-customization projects referenced in Kanata community material.
- Kanata Tray is a companion tray wrapper for starting, stopping, and switching Kanata configurations.
- The Karabiner driver and Interception driver are platform-adjacent pieces for macOS and Windows input interception workflows.

### 来源

- <https://api.github.com/repos/jtroo/kanata>
- <https://github.com/jtroo/kanata>
- <https://github.com/jtroo/kanata/blob/main/docs/config.adoc>
- <https://github.com/jtroo/kanata/releases>
- <https://github.com/rszyma/kanata-tray>
- <https://www.reddit.com/r/rust/comments/w0zqk4/kanata_v105_an_advanced_keyboard_remapper_for/>


## 安全说明

formula declares a Homebrew service.

- **Geiger 风险:** orange / 中
- formula declares a Homebrew service

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

- Nix - kanata: normalized package name match | nixpkgs package indexes: pkgs/by-name/ka/kanata/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Scoop - extras/kanata: normalized package name match | Scoop official bucket manifest trees: bucket/kanata.json from https://api.github.com/repos/ScoopInstaller/Extras/git/trees/master?recursive=1


## Combined YAML source

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