v1.1.1 · MIT · open source
The kubectl-aware TUI for Kubernetes & k3s.
k4s is a fast terminal UI for Kubernetes. Every keystroke prints the
kubectl equivalent in the footer — build CLI muscle memory while you
work. v1.1 adds in-process port-forwarding with persistent intent, plus instant logs scrolling and soft-wrap. Free, open-source, single binary, MIT-licensed.
≈ kubectl logs -f -c spammer log-spammer-… -n k4s-demo --tail=100 while you stream logs.
features
What's in the box.
The MVP is shipped. Nothing on this list is on the roadmap — it's all already in the binary.
Multi-pod log streaming
Stream every replica at once with per-pod FNV colour tags, search, smart auto-follow, two-step clear.
Live filter
/ substring filter on any list view. Works in pods, namespaces, deployments, services, contexts.
kubectl footer hints
Every shortcut prints its CLI equivalent. Learn kubectl by osmosis.
Describe view
kubectl-style sections including events, scrollable, syntax-aware.
Exec
Press e, drop into the pod shell via tea.ExecProcess. No reconnect dance.
Top
kubectl top pods/nodes via the metrics.k8s.io REST API. No extra dependency on k8s.io/metrics.
Context switcher
:ctx jumps between kubeconfig contexts. Drops stale navigation history automatically.
Watch
5s auto-refresh on every list view. Footer shows --watch. Toggle with w.
Centred help popup
? lists global, view-specific and command bar bindings. No memorising the cheat sheet.
Port-forward, persisted
f in services / pods / deployments opens an SPDY tunnel. State file remembers every intent — on next launch, one keystroke revives them all. v1.1.0
Logs that don't lag
Drain-batch render — --tail=5000 snaps to the bottom instantly. Soft-wrap with w; horizontal scroll with ←/→. v1.1.0
Logs from :svc too
Pressing l on a service tails every backing pod — no need to remember which Deployment owns it. v1.1.1
quickstart
Install & run.
One binary, no daemon, no agent in your cluster. Pick your platform.
go install github.com/LywwKkA-aD/k4s/cmd/k4s@latest
k4s
git clone https://github.com/LywwKkA-aD/k4s
cd k4s
make demo # local k3s + seed data
KUBECONFIG=$(pwd)/.kube/config make run
# brew install LywwKkA-aD/tap/k4s # planned for v0.2
Try k4s now.
Single binary. No daemon. Works on any cluster reachable through kubeconfig — k3s, k8s, EKS, GKE, AKS, Kind, Rancher, OrbStack.
go install github.com/LywwKkA-aD/k4s/cmd/k4s@latest