# kubefwd (Kube Forward)

A command-line tool that bulk port-forwards every Kubernetes service in a namespace to a unique local loopback IP, so local code reaches them by their in-cluster service names.

kubefwd enables developers to work on their local machine while accessing services running in a Kubernetes cluster, reducing or eliminating environment-specific connection setup during local development. It discovers every service in a namespace, assigns each one its own unique loopback IP address, updates the local hosts file with the matching service names, and establishes port forwards through the Kubernetes API, so an application's existing connection strings work the same locally as they do in the cluster.

Because each service gets its own IP instead of sharing one address, there are no port conflicts between services that happen to listen on the same port. An interactive terminal UI shows real-time traffic metrics and streams pod logs while forwarding is active, forwarding automatically reconnects if a pod restarts or a connection drops, and a REST API and Model Context Protocol support allow the same bulk forwarding to be controlled programmatically.

Website: http://kubefwd.com/
