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

K9s

$ k9s Community Med Risk
Derailed · Cloud & Infra · Apache-2.0 · macos / linux / windows

K9s (k9s) is a popular full-screen terminal UI (TUI) for browsing Kubernetes pods, deployments, logs, shells, and port-forwards across namespaces (-n) and contexts (--context). Because it always launches an interactive tcell event loop—even with --headless -c deploy—agents should prefer kubectl.

FCRS-1.0 Score
62 /100
Usable w/ Caveats
Medium Confidence
Zero-Friction Install
brew install k9s
CLI vs MCP Decision CLI Preferred vs MCP

Neither k9s (interactive TUI) nor heavy MCP wrappers beat kubectl get ... -o json for coding agents; keep k9s for human operators.

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 10 / 25

Full-screen interactive TUI (tcell) with no JSON resource output; even --headless only hides the ASCII header and still blocks in an interactive TUI loop.

  • k9s enters a full-screen TUI event loop that hangs non-TTY agent commands
  • Only k9s info / k9s version exit cleanly without a TTY
Trust & Safety 18 / 25

Supports --readonly mode and --context / -n scoping, though interactive hotkeys (ctrl-d, ctrl-k) allow pod/resource deletion.

  • Supports --readonly flag to disable destructive TUI shortcuts
Setup & Portability 14 / 15

Single static Go binary available via Homebrew and GitHub releases on macOS, Linux, and Windows.

  • Available via brew install k9s
Utility & Efficiency 7 / 15

Superb productivity tool for human Kubernetes operators, but nearly unusable by headless LLM coding agents compared to kubectl.

  • Designed for human keyboard-driven TUI exploration, not agent stdout parsing
Maintenance & Lineage 7 / 10

Active Apache-2.0 community project (derailed/k9s) maintained by Imhotep Software LLC.

  • Popular derailed/k9s repository under Apache-2.0
Docs & Verifiability 6 / 10

Documentation focuses on interactive keybindings and skins; note that --headless is frequently misunderstood as non-interactive.

  • Published docs at k9scli.io

Security, Auth & Guardrails

Auth Modes
Config File
Credential Storage

Reads standard Kubernetes kubeconfig (~/.kube/config or KUBECONFIG) and stores UI skin/history in ~/.config/k9s/.

Side Effects
Read-Only Remote Write Destructive
Cost & Quotas

Apache-2.0 open-source TUI; free to use against any Kubernetes cluster.

Copyable Guardrail for CLAUDE.md / AGENTS.md
# K9s Agent Rules
- DO NOT launch the `k9s` TUI inside non-TTY agent shells—it enters a full-screen event loop and hangs.
- Use `kubectl get ... -o json` or `stern -o json` for programmatic cluster inspection.
- Only run `k9s info` or `k9s version` if verifying local installation.

Agent-Ready Command Recipes

Safe Read-Only Queries

Inspect K9s version and config paths non-interactively
k9s info

Prints version, config, log, and skin paths and exits immediately without launching the TUI.

Strengths for Agents

  • + Offers --readonly flag to prevent accidental mutations during human cluster debugging.
  • + k9s info exits immediately and exposes active config/kubeconfig diagnostics.
  • + Single static Go binary with zero runtime dependencies.

Caveats & Pitfalls

  • ! Interactive TUI hangs non-TTY agent shells—use kubectl instead for automated queries.
  • ! --headless only hides the top banner/logo; it does NOT make k9s non-interactive.

Tested Agent Hosts

Claude Code Codex CLI Gemini CLI