macOS
brew install kubectl-ailocal Homebrew formula metadata
安装
brew install kubectl-ailocal Homebrew formula metadata
nix profile install nixpkgs#kubectl-ainixpkgs package indexes · pkgs/by-name/ku/kubectl-ai/package.nix · 来源: api.github.com
概览
AI powered Kubernetes Assistant
历史
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.
安全态势
infrastructure mutation or orchestration signal.
orange 风险 · 中 置信度 · infrastructure
在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。
local files
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.
Config paths the tool may read or write during local use.
~/.config/kubectl-ai/config.yaml~/.config/kubectl-ai/tools.yaml~/.config/kubectl-ai/mcp.yaml~/.kube/config可执行文件
| 命令 | 类型 | 暴露范围 | 备注 |
|---|---|---|---|
kubectl-ai | cli | 全局可执行文件 |
新鲜度
这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。
https://github.com/GoogleCloudPlatform/kubectl-ai
安装元数据
| 软件包键 | brew:kubectl-ai |
|---|---|
| 版本 | 0.0.31 |
| 软件包管理器 | Homebrew |
| 软件包管理器页面 | https://formulae.brew.sh/formula/kubectl-ai |
| 主页 | https://github.com/GoogleCloudPlatform/kubectl-ai |
| 仓库 | https://github.com/GoogleCloudPlatform/kubectl-ai |
| 上游文档 | https://github.com/GoogleCloudPlatform/kubectl-ai#readme |
| 许可证 | Apache-2.0 |
| 源码归档 | https://github.com/GoogleCloudPlatform/kubectl-ai/archive/refs/tags/v0.0.31.tar.gz |
| 构建依赖 | go |
| Bottle | 可用 (于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux) |
| Homebrew post-install | 未定义 |
| 服务 | 未声明 |
注册表事实
| Source Database | Homebrew formula API |
|---|---|
| Tap | homebrew/core |
| Full Name | kubectl-ai |
| Version Scheme | 0 |
| Revision | 0 |
| Head Version | HEAD |
| Bottle Stable Root URL | https://ghcr.io/v2/homebrew/core |
| Deprecated | no |
| Disabled | no |
| Keg Only | no |
| URL Keys |
|
源数据库匹配
匹配项来自外部软件包管理器索引,并与本地 Automic Vault 软件包链接分开显示。
kubectl-ai
nix profile install nixpkgs#kubectl-ai来源线索
此页面由 av-web 从 scripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。
View the package source record on GitHub.