b4n
Terminal user interface for Kubernetes API management with resource CRUD, logs, shell access, and port forwarding
b4n is a terminal user interface (TUI) for the Kubernetes API, built with Rust using kube-rs and ratatui crates. It provides a k9s-inspired interface for viewing, filtering, and managing Kubernetes resources directly from the terminal. The tool supports complete CRUD operations on Kubernetes resources, along with the ability to view events, logs, and open shell sessions or attach to containers.
The TUI includes advanced filtering capabilities with namespace, name, annotation, and label prefixes that can be combined using logical operators. Users can enable port forwarding for containers, copy YAML configurations and logs to clipboard, and decode secrets. The interface supports mouse interaction across all views and includes configurable key bindings.
Developers and DevOps engineers working with Kubernetes clusters will find b4n useful for day-to-day cluster management tasks. The tool requires a Nerd Font for proper display and stores configuration, themes, and history in ~/.b4n directory. It supports context-specific settings and customizable themes for different environments.
Installation
# via Build from source
git clone https://github.com/fioletoven/b4n.git && cd b4n && cargo build --release

Alternatives & related tools
textual-astview
TUI tool for exploring Python Abstract Syntax Trees (AST) with interactive tree view and source highlighting
act3
CLI tool that displays the status of the last 3 GitHub Actions workflow runs for repositories
awsesh
TUI and CLI tool for managing AWS SSO sessions with fuzzy search, account switching, and shell integration.
termframe
Non-interactive terminal emulator that executes commands and exports their output as SVG screenshots.
cargo-selector
Cargo subcommand that provides an interactive TUI for selecting and executing binary or example targets in Rust projects
add a badge to your README
Maintain b4n? Show that it's featured on trmn. The badge links back to this page.
[](https://www.trmn.sh/tools/b4n?utm_source=badge)<a href="https://www.trmn.sh/tools/b4n?utm_source=badge"><img src="https://www.trmn.sh/badge/b4n.svg" alt="Featured on trmn" height="20"></a>