kubefwd

Bulk port forwarding Kubernetes services for local development.

What is kubefwd?

Bulk port forwarding Kubernetes services for local development.

Overview of kubefwd

What it is

kubefwd is a command-line utility that bulk port forwards Kubernetes services to a local workstation. It assigns each service a unique loopback IP address (127.x.x.x) and updates /etc/hosts so services are accessible by their in-cluster names. It is designed for local development, allowing developers to connect to services running in a Kubernetes cluster without environment-specific configuration.

Key features

  • Interactive TUI with real-time service monitoring and traffic metrics - Unique loopback IP per service, eliminating port conflicts - Auto-reconnection when pods restart or connections drop - Bulk forwarding of all services in a namespace with one command - Live traffic monitoring showing bytes in/out and HTTP activity - Pod log streaming within the TUI - REST API for programmatic control - MCP support for integration with AI assistants (Claude Code, Cursor)

Use cases

  • Developing a new API that needs to connect to a database, auth service, and cache running in a development cluster, using the same service names as in production.
  • Reducing or eliminating environment-specific connection setup and configurations during local development.
  • Accessing Kubernetes services by name from a local machine without Docker Compose or local service setup.

Getting started

Install on macOS: bash brew install kubefwd Forward all services in a namespace with the interactive TUI: bash sudo -E kubefwd svc -n my-namespace --tui Press ? for help, q to quit. For installation on Linux, Windows, or via Docker, see the repository README.

License and pricing

The license is Apache License 2.0. The project is open source.

Based on the project's public README and repository metadata.

Add this badge to your README

Featured on YunoDB Badge styles & help

Maintain this project? Show that it is featured on YunoDB.

Markdown[![Featured on YunoDB](https://yunodb.com/badge/txn2kubefwd.svg)](https://yunodb.com/tools/txn2kubefwd?utm_source=github&utm_medium=badge)
HTML<a href="https://yunodb.com/tools/txn2kubefwd?utm_source=github&utm_medium=badge"><img src="https://yunodb.com/badge/txn2kubefwd.svg" alt="Featured on YunoDB" height="20"></a>