SSH, Telnet and SFTP connection manager for Linux and Windows
Connection tree, tabbed terminals, file browser and a built-in editor for remote files – in one lean application.
Linux – one command for Debian, Ubuntu, Fedora, openSUSE, Arch and their derivatives:
curl -fsSL https://raw.githubusercontent.com/Suvukaraz/leanterm/main/install.sh | shWindows 10/11 – download and run leanterm_<version>_windows_amd64_setup.exe.
More options (packages, updates, uninstalling) are described below.

Connection tree, SFTP browser and SSH terminal

Local shell with the local file browser following the shell's folder

Built-in editor: syntax highlighting, KWrite-style menus, tabs and minimap
The screenshots show demo data only.
- Native protocols – SSH (jump hosts, SOCKS5 proxies, local/remote/dynamic port forwarding, agent forwarding, X11, keyboard-interactive/OTP), Telnet and SFTP implemented in Go; no external
ssh,sftporexpectrequired. - Terminals – tabs and split tabs, find bar, tab colours; local shell via PTY (Linux) or ConPTY (Windows).
- Two terminal engines – Rio's terminal core via rioterm or Ghostty's terminal core via ghostty-web (default), selectable in Settings → Terminal Options. Both run as WebAssembly inside LeanTerm, so Rio's and Ghostty's terminal emulation is available on Linux and Windows alike.
- File browser – SFTP and local files next to the terminal: drag and drop, parallel transfers with queue, follows the shell's folder, open with the default application and upload changes back.
- Editor (LeanEdit) – edits local and remote files directly over SSH; syntax highlighting for 50+ languages and configuration formats, KWrite-style Selection and Go menus, bookmarks, block selection and minimap. Also installed as a separate application, see LeanEdit.
- Automation – variables and prompts, Expect sequences, connection chains, clusters with broadcast input, pipe/tee of terminal output.
- Security – secrets encrypted with age and kept in the system keyring or behind a master password; KeePassXC integration; GUI lock.
- Organisation – connection tree with groups, favourites, history, quick connect, Wake-on-LAN and bulk edit.
The install script detects the distribution, installs the matching package with all dependencies and verifies the download against the release checksums. Running it again updates LeanTerm; options follow sh -s --:
curl -fsSL https://raw.githubusercontent.com/Suvukaraz/leanterm/main/install.sh | sh -s -- --version 1.2.1
curl -fsSL https://raw.githubusercontent.com/Suvukaraz/leanterm/main/install.sh | sh -s -- --uninstall| Distribution | Installed as |
|---|---|
| Debian 13+, Ubuntu 24.04+, Mint 22, Pop!_OS, Zorin | .deb package via apt |
| Fedora 39+, RHEL/Alma/Rocky 10, openSUSE Tumbleweed/Leap 16, Arch, Manjaro | libraries from the distribution, LeanTerm in /usr/local |
Requirements: x86_64, glibc 2.34+, GTK 4.10+ and WebKitGTK 6.0 – Debian 12 and Ubuntu 22.04 ship an older GTK and are not supported. The .deb and .tar.gz packages are also available on the releases page.
The installer puts LeanTerm into C:\Program Files\LeanTerm, adds Start menu and desktop shortcuts (optionally also for LeanEdit) and installs the WebView2 runtime if needed. It is not code-signed yet, so SmartScreen asks for confirmation on the first start. Windows 10 version 1809 or later is required.
| Linux | Windows | |
|---|---|---|
| Configuration | ~/.config/leanterm |
%APPDATA%\LeanTerm |
| Local shell | $SHELL |
PowerShell 7, Windows PowerShell or cmd.exe |
Commands (pre/post, <CMD:…>) |
/bin/sh |
cmd.exe |
| SSH agent | SSH_AUTH_SOCK |
Windows OpenSSH agent or a pipe in SSH_AUTH_SOCK (e.g. Pageant) |
| X11 forwarding | local X server | VcXsrv, X410 or another X server on localhost:0 |
LeanEdit is LeanTerm's text editor as an application of its own: it has its own menu entry and icon, is offered in the file manager's Open with for text files and runs independently of LeanTerm (leanterm --leanedit [file…]). By default it runs once: further files (double-click, Open with, command line) open as new tabs of the running LeanEdit. With Open files in the running LeanEdit switched off in its settings, every file opens in a new window; File → New Window (--new-window) always opens one. This is independent of LeanTerm, whose editor window stays separate; LeanTerm itself runs only once. When the window gets the focus, LeanEdit offers to reload files that were changed or deleted by another program (also by the editor in LeanTerm), and saving never overwrites such a change without asking. Started on its own, LeanEdit edits local files and needs no connection, sessions or passwords. Settings in its menu bar opens its own small settings window, in LeanTerm as well; the settings are shared with the editor in LeanTerm.
On Windows the installer offers LeanEdit as an option (Start menu and desktop shortcut, Open with for text files); on Linux the packages always install it.
Settings are edited in Settings and stored as TOML in config.toml (window layout in state/ui.toml); passwords are kept separately in the encrypted secrets.age. All options with their defaults are listed in docs/config-reference.md.
Terminal screenshots (Take Screenshot in the terminal's context menu) and session logs are saved in the folders set in Settings → Terminal Options (default: screenshots and session_logs in the configuration folder); Save session log… asks for the file name, starting in the session logs folder.
Start options such as --start-uuid, --start-shell, --edit <file>, --leanedit or --config-dir are listed with leanterm --help.
Requirements: Go 1.26+, Node.js 20.19+, and on Linux the GTK 4 / WebKitGTK 6.0 development packages (libgtk-4-dev, libwebkitgtk-6.0-dev).
npm --prefix frontend install
npm --prefix frontend run build
go build -o bin/leanterm .| Package | Command |
|---|---|
| Debian package | ./build/package-deb.sh 1.2.1 |
Linux archive (used by install.sh) |
./build/package-tarball.sh 1.2.1 |
Windows installer (cross-compiled, needs nsis and wails3) |
./build/package-windows.sh 1.2.1 |
Tests: go test ./internal/..., npm --prefix frontend test -- --run and npm --prefix frontend run check. The JavaScript bindings in frontend/bindings are generated with wails3 generate bindings -clean=true after changing a Go service.
LeanTerm is licensed under the GNU General Public License v3.0.
LeanTerm is inspired by Ásbrú Connection Manager and MobaXterm.