lazyfwd
Open-source Go terminal UI for managing SSH port forwards with a keyboard-driven interface and a CLI mode for scripts and agents.
At a Glance
lazyfwd core terminal UI and CLI released under the MIT License; free to use, copy, modify and distribute.
Engagement
Available On
Listed Dec 2026
About lazyfwd
lazyfwd is an open-source, MIT-licensed terminal UI written in Go for managing SSH port forwards, in the spirit of lazygit. You pick a host, find a listening port, and forward it to your local machine without remembering SSH flags. It also offers command-line commands for scripts and agents.
What It Is
lazyfwd is a keyboard-first SSH port-forwarding manager. It uses the system ssh, so your SSH config, agent, and ProxyJump continue to work. For example, if a web app runs on port 3000 on a remote host, you can select that port, press space, and open it in your local browser.
How the Terminal UI Works
The UI has four panels: Hosts (taken from your SSH config, with the option to add or pin hosts), Forwards (the selected host's saved forwards), Listening (listening ports and process names when available), and Live (running and failed forwards across hosts). A Details pane describes the selected item. You can forward TCP ports and Unix sockets in either direction (-L or -R). By default the local port matches the remote port, or the nearest free one is used. Hosts, pins, and forwards are saved in a workspace.json file in the user config directory. Forwards stop when you quit and return stopped on the next run.
Command Line for Scripts and Agents
Commands such as lazyfwd forward add and lazyfwd forward list --json go through the running lazyfwd process, so the UI shows changes at once. Without the UI, lazyfwd serve holds the connections. Commands that only list or change saved hosts and forwards work without a running UI or serve.
Install and Platform Notes
lazyfwd needs ssh on your PATH and runs on Linux, macOS, WSL, and Windows. It can be installed with an install script, a release archive, go install (Go 1.24 or later), or built from source. On Windows, each forward runs its own SSH. lazyfwd refuses hosts that require a password, passphrase, or 2FA on every connect, hosts whose SSH config defines forward directives, and Unix sockets as a forward's local end. The terminal UI in a real Windows console, browser opening, and host key login are not tested on Windows.
Collections
Popular collections
- Obsidian Agentic & AI plugins
Collection by @samofcode
- Codebase Context Generators
Collection by @joemseifi
- Frameworks
Collection by @joemseifi
- Run YOLO Mode Without Risking Your Laptop
Collection by @reproalex
Add lazyfwd to one of your collections.
Community Discussions
Be the first to start a conversation about lazyfwd
Share your experience with lazyfwd, ask questions, or help others learn from your insights.
Pricing
Open Source (MIT)
lazyfwd core terminal UI and CLI released under the MIT License; free to use, copy, modify and distribute.
- Keyboard-first terminal UI for managing SSH port forwards
- CLI mode for scripts and agents (lazyfwd serve, forward add/list --json)
- TCP ports and Unix sockets, local (-L) and remote (-R) forwards
- Runs on Linux, macOS, WSL and Windows (with documented Windows limitations)
- Uses your system ssh
Capabilities
Key Features
- Keyboard-driven terminal UI inspired by lazygit
- Hosts loaded from SSH config with add and pin support
- Lists listening ports and process names on remote hosts
- Forward TCP ports and Unix sockets with -L or -R
- Open forwarded port in local browser
- Live view of running and failed forwards across hosts
- Saved hosts, pins, and forwards in workspace.json
- CLI commands with JSON output for scripts and agents
- lazyfwd serve to hold connections without the UI
- Uses system ssh, honoring SSH config, agent, and ProxyJump
