# kubectl-ai を Homebrew, Nix でインストール

kubectl-ai のインストール経路、実行ファイル、メタデータ、AI エージェント向けセキュリティノートを確認します。

## インストール

```sh
sudo av install brew:kubectl-ai
```

追加のインストールコマンド:

### macOS

- Homebrew (100%):

```sh
brew install kubectl-ai
```

  証拠: local Homebrew formula metadata

### Linux

- Nix (92%):

```sh
nix profile install nixpkgs#kubectl-ai
```

  証拠: nixpkgs package indexes: pkgs/by-name/ku/kubectl-ai/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

## パッケージ情報

- **パッケージキー:** brew:kubectl-ai
- **パッケージマネージャ:** Homebrew
- **バージョン:** 0.0.31
- **ソース概要:** AI powered Kubernetes Assistant
- **ホームページ:** <https://github.com/GoogleCloudPlatform/kubectl-ai>
- **リポジトリ:** <https://github.com/GoogleCloudPlatform/kubectl-ai>
- **最終更新:** 2026-07-27T21:58:44+02:00
- **生成日時:** 2026-08-03T19:37:03+00:00

## 実行可能ファイル

- kubectl-ai (エイリアス)

## インストール挙動

- Bottle: 利用不可

## バージョンと鮮度

- ページ生成日: 2026-08-03
- マネージャ版: 0.0.31
## プロジェクトの歴史と使われ方

kubectl-ai is Google's AI-assisted Kubernetes command-line assistant. It translates natural-language intent into Kubernetes operations and can run as an interactive shell, stdin-driven command, kubectl plugin via Krew, MCP client, or MCP server.

### プロジェクトの歴史

The GitHub repository was created on 2025-01-20 under the GoogleCloudPlatform organization. Its README framed the tool around making Kubernetes management more accessible by turning user intent into precise operations, while still requiring kubectl to be installed and configured.

The project evolved quickly through many 0.0.x releases during 2025 and early 2026, adding provider breadth and integration modes rather than presenting itself as a stable, long-lived Kubernetes subcommand.

### 採用の歴史

kubectl-ai sits at the intersection of two high-adoption operator habits: kubectl-centric cluster work and AI-assisted terminal workflows. The README documents Gemini, Vertex AI, Azure OpenAI, OpenAI, Grok, Bedrock, Ollama, and llama.cpp support, which made the tool usable across hosted and local model setups.

The repository metadata observed on 2026-07-01 showed more than 7000 GitHub stars, a strong early signal for a project created in 2025.

### 使われ方

Users run `kubectl-ai` interactively, pass a task as an argument with quiet mode, pipe prompt text through stdin, or install it as the `kubectl ai` plugin via Krew. The README also describes environment-variable API keys for hosted providers and local model options for Ollama and llama.cpp.

Its package-manager role is to put an AI command generator and executor beside kubectl rather than inside the cluster, so installation is a developer-workstation concern.

### パッケージ好きにとっての重要性

For package nerds, kubectl-ai is a marker of the 2025 shift from Kubernetes CLIs that only wrap APIs to CLIs that broker human intent through LLM providers. The package is interesting because it carries both classic kubectl-plugin distribution and newer MCP integration in one small binary workflow.

### タイムライン

- 2025-01-20: GitHub repository created.
- 2025: README documented Krew installation as `kubectl krew install ai` and invocation as `kubectl ai`.
- 2025-11-03: Release v0.0.27 published.
- 2026-01-21: Release v0.0.29 published.
- 2026-03-27: Release v0.0.31 published.

### Related projects

- kubectl, Krew, MCP, Gemini, Vertex AI, OpenAI-compatible APIs, Bedrock, Ollama, and llama.cpp form the surrounding ecosystem. Unlike kubectl plugins that expose one Kubernetes resource domain, kubectl-ai is a general assistant layered over Kubernetes operations.

### ソース

- <https://api.github.com/repos/GoogleCloudPlatform/kubectl-ai>
- <https://github.com/GoogleCloudPlatform/kubectl-ai>
- <https://github.com/GoogleCloudPlatform/kubectl-ai#readme>
- <https://github.com/GoogleCloudPlatform/kubectl-ai/tree/main/docs>
- <https://krew.sigs.k8s.io/docs/user-guide/setup/install/>
- <https://kubernetes.io/docs/tasks/extend-kubectl/kubectl-plugins/>


## セキュリティノート

infrastructure mutation or orchestration signal.

- **Geiger リスク:** orange / 中
- infrastructure mutation or orchestration signal


## Configuration and credential file locations

These source-backed paths show where this package keeps local settings or durable credentials. Automic Vault can use them as review targets for secret scanning, migration, and command approval.


## Configuration files

- Unix: ~/.config/kubectl-ai/config.yaml, ~/.config/kubectl-ai/tools.yaml, ~/.config/kubectl-ai/mcp.yaml, ~/.kube/config
## 他のパッケージマネージャ記録

- Nix - kubectl-ai: normalized package name match | nixpkgs package indexes: pkgs/by-name/ku/kubectl-ai/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/kubectl-ai.yml](https://github.com/mxcl/pkgdb/blob/main/combined/kubectl-ai.yml)


## ソース

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