Directory Compare FCRS-1.0 /llms.txt
← Back to Directory

Krew

$ kubectl-krew Foundation Med Risk
Kubernetes SIGs · Cloud & Infra · Apache-2.0 · macos / linux / windows

Krew (kubectl krew) discovers, installs, and updates community kubectl plugins from the centralized Krew index. It runs non-interactively for search, list, info, install, and upgrade, storing binaries locally under ~/.krew.

FCRS-1.0 Score
75 /100
Good
Medium Confidence
Zero-Friction Install
brew install krew
CLI vs MCP Decision CLI Only

Krew manages local kubectl-* plugin binaries on the workstation PATH, which MCP servers cannot install for local shell use.

Agent-Readiness Checklist

— JSON Output
— Field Filtering
✓ Non-Interactive
— Dry-Run
— Read-Only Mode
— NO_COLOR Clean
✓ Self-Describing
— Official SKILL.md

Static evaluation (not yet probed on this host). Run npm run data:probe locally to capture live verification.

FCRS-1.0 6-Dimension Breakdown

Agent-Readiness 16 / 25

Clean non-interactive subcommands (list, search, info, install), though lacks --json output on list, search, and info.

  • Non-interactive search, list, install, upgrade
  • No --json output flag across subcommands
Trust & Safety 18 / 25

Local-only disk writes scoped to ~/.krew with SHA-256 archive verification, though installed third-party plugins execute with full local user and kubeconfig privileges.

  • SHA-256 checksum verification from index manifests
  • Installs third-party executables onto user PATH
Setup & Portability 14 / 15

Available on macOS, Linux, and Windows via Homebrew or binary install; requires kubectl and git, plus ~/.krew/bin added to PATH.

  • Cross-platform binary via brew install krew
Utility & Efficiency 11 / 15

Standardizes installation and upgrades across 200+ Kubernetes ecosystem plugins.

  • Centralized index for kubectl plugin lifecycle
Maintenance & Lineage 9 / 10

Official Kubernetes SIG CLI project (kubernetes-sigs/krew) under Apache-2.0.

  • Official kubernetes-sigs/krew repository
Docs & Verifiability 7 / 10

Clear quickstart and developer docs at krew.sigs.k8s.io.

  • Official user guide at krew.sigs.k8s.io

Security, Auth & Guardrails

Auth Modes
No Auth
Credential Storage

Requires no authentication for public index; stores index cache and installed plugin binaries in ~/.krew (KREW_ROOT).

Side Effects
Read-Only Local Write
Cost & Quotas

CLI is free (Apache-2.0); downloads public plugin binaries from GitHub/releases.

Copyable Guardrail for CLAUDE.md / AGENTS.md
# Krew Agent Rules
- Run `kubectl krew info <plugin>` to inspect plugin source and caveats before running `install`.
- Never install unverified third-party plugins or add untrusted custom Krew indexes automatically.
- Ensure `~/.krew/bin` is on `PATH` when invoking installed `kubectl` plugins.

Agent-Ready Command Recipes

Safe Read-Only Queries

List installed kubectl plugins and search index
kubectl krew list && kubectl krew search ctx

Displays locally installed plugins and searches the Krew index without modifying disk.

Inspect plugin manifest metadata
kubectl krew info oidc-login

Prints homepage, version, and caveats for a plugin before installing it.

Controlled Writes & Previews

Install a vetted kubectl plugin
kubectl krew update && kubectl krew install neat

Refreshes the local plugin index and installs the plugin binary into ~/.krew/bin.

Strengths for Agents

  • + Non-interactive plugin discovery, installation, and upgrades with SHA-256 verification.
  • + kubectl krew info lets agents inspect plugin metadata and caveats before installing.
  • + Backed by Kubernetes SIG CLI under Apache-2.0.

Caveats & Pitfalls

  • ! Lacks --json output on list, search, and info.
  • ! Third-party plugins run outside Krew's sandbox with full access to ~/.kube/config.
  • ! Requires adding ~/.krew/bin to PATH after installation.

Tested Agent Hosts

Claude Code Codex CLI Gemini CLI