K9s
$ k9s Community Med RiskK9s (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.
brew install k9s Neither k9s (interactive TUI) nor heavy MCP wrappers beat kubectl get ... -o json for coding agents; keep k9s for human operators.
Agent-Readiness Checklist
Static evaluation (not yet probed on this host). Run npm run data:probe locally to capture live verification.
FCRS-1.0 6-Dimension Breakdown
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.
k9senters a full-screen TUI event loop that hangs non-TTY agent commands- Only
k9s info/k9s versionexit cleanly without a TTY
Supports --readonly mode and --context / -n scoping, though interactive hotkeys (ctrl-d, ctrl-k) allow pod/resource deletion.
- Supports
--readonlyflag to disable destructive TUI shortcuts
Single static Go binary available via Homebrew and GitHub releases on macOS, Linux, and Windows.
- Available via
brew install k9s
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
Active Apache-2.0 community project (derailed/k9s) maintained by Imhotep Software LLC.
- Popular
derailed/k9srepository under Apache-2.0
Documentation focuses on interactive keybindings and skins; note that --headless is frequently misunderstood as non-interactive.
- Published docs at k9scli.io
Security, Auth & Guardrails
Reads standard Kubernetes kubeconfig (~/.kube/config or KUBECONFIG) and stores UI skin/history in ~/.config/k9s/.
Apache-2.0 open-source TUI; free to use against any Kubernetes cluster.
# 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
k9s info
Prints version, config, log, and skin paths and exits immediately without launching the TUI.
Strengths for Agents
- + Offers
--readonlyflag to prevent accidental mutations during human cluster debugging. - +
k9s infoexits 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
kubectlinstead for automated queries. - !
--headlessonly hides the top banner/logo; it does NOT makek9snon-interactive.